/* =============================================================
   PROBABLY STOLEN — Unofficial Player's Handbook
   Design system: pawn-ticket ledger meets station neon
   ============================================================= */

:root {
  /* surface */
  --bg: #0a0b0c;
  --bg-2: #0d0f11;
  --panel: #121518;
  --panel-2: #171b1f;
  --line: #242a30;
  --line-2: #333b44;

  /* ink */
  --text: #e9e3d6;
  --muted: #9c978c;
  --dim: #726e66;

  /* accent */
  --amber: #ffab2e;
  --amber-2: #ff7b1c;
  --cyan: #5fe3d0;
  --red: #ff5b6e;
  --green: #94d05b;

  --font-body: "Archivo", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Chakra Petch", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-pixel: "Silkscreen", "Chakra Petch", monospace;

  --max: 1200px;
  --pad: clamp(18px, 4vw, 40px);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 80% -12%, rgba(255, 171, 46, 0.11), transparent 62%),
    radial-gradient(720px 520px at 4% 4%, rgba(95, 227, 208, 0.055), transparent 58%),
    linear-gradient(180deg, #0a0b0c 0%, #08090a 62%, #0a0b0c 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

::selection { background: var(--amber); color: #0a0b0c; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: #0a0b0c;
  padding: 10px 16px;
  z-index: 99;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- ink helpers ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.eyebrow {
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(255, 171, 46, 0.7);
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- top ticker ---------- */

.topbar {
  background: #0c0e10;
  border-bottom: 1px solid var(--line);
  height: 34px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee 64s linear infinite;
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--dim);
}
.tgroup { display: flex; flex: none; }
.ticker span { padding: 0 24px; }
.ticker span em { color: var(--amber); font-style: normal; }
.ticker span i { color: var(--cyan); font-style: normal; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 11, 12, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-pixel);
  font-size: 12px;
  box-shadow: 3px 3px 0 rgba(255, 171, 46, 0.22);
}
.brand-txt { line-height: 1.05; }
.brand-txt b {
  display: block;
  font-family: var(--font-pixel);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text);
}
.brand-txt small {
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--muted);
  padding: 8px 11px;
  border-radius: 2px;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-links a[aria-current="page"] {
  color: var(--amber);
  box-shadow: inset 0 -2px 0 var(--amber);
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line-2);
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 0.1em;
  overflow: hidden;
}
.lang a {
  padding: 7px 11px;
  color: var(--dim);
  transition: background 0.2s, color 0.2s;
}
.lang a[aria-current="true"] { background: var(--amber); color: #0a0b0c; }
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"]:hover { color: #0a0b0c; }

.burger {
  display: none;
  width: 38px;
  height: 34px;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text);
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
  margin: 3px auto;
}

.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.mobile-menu.open { display: block; }
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 10px var(--pad) 26px;
  columns: 2;
}
.mobile-menu a {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.mobile-menu a b {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--dim);
  padding-top: 4px;
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(46px, 6vw, 88px) 0 clamp(30px, 4vw, 46px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 70px);
  line-height: 1.03;
  letter-spacing: -0.015em;
  margin: 18px 0 0;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--amber);
  display: inline-block;
  position: relative;
}
.hero-lede {
  color: var(--muted);
  font-size: 16.5px;
  max-width: 46ch;
  margin: 20px 0 0;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 18px;
  border: 1px solid var(--amber);
  color: var(--amber);
  background: transparent;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s;
  box-shadow: 4px 4px 0 rgba(255, 171, 46, 0.18);
}
.btn:hover {
  background: var(--amber);
  color: #0a0b0c;
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(255, 171, 46, 0.28);
}
.btn.ghost {
  border-color: var(--line-2);
  color: var(--muted);
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.04);
}
.btn.ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: transparent;
  box-shadow: 6px 6px 0 rgba(95, 227, 208, 0.16);
}

/* ---------- ticket ---------- */

.ticket {
  position: relative;
  background: linear-gradient(180deg, #171b1f 0%, #101316 100%);
  border: 1px solid var(--line-2);
  padding: 26px 24px 30px;
  box-shadow: 12px 16px 0 -8px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 171, 46, 0.1);
  overflow: hidden;
}
.ticket::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}
.ticket::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 84px;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
}
.ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-pixel);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--dim);
  margin-bottom: 30px;
}
.ticket-top .no { color: var(--amber); }
.ticket dl {
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 18px;
  align-items: baseline;
}
.ticket dt {
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--dim);
  text-transform: uppercase;
}
.ticket dd {
  margin: 0;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.ticket dd .unit {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--dim);
  margin-left: 4px;
}
.ticket dd.hl { color: var(--amber); }
.stamp {
  margin-top: 26px;
  display: inline-block;
  transform: rotate(-4deg);
  border: 2px solid rgba(255, 91, 110, 0.62);
  color: rgba(255, 91, 110, 0.9);
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.16em;
  padding: 5px 9px;
  text-transform: uppercase;
}

.hero-note {
  margin-top: 22px;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.6;
  max-width: 30ch;
}

/* ---------- stat strip ---------- */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.014);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.strip-cell {
  padding: 22px var(--pad) 24px;
  border-left: 1px solid var(--line);
}
.strip-cell:first-child { border-left: 0; }
.strip-cell b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1;
  color: var(--amber);
  letter-spacing: -0.02em;
}
.strip-cell small {
  display: block;
  margin-top: 7px;
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
}

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

.sec {
  padding: clamp(44px, 6vw, 76px) 0 0;
}
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 26px;
}
.sec-no {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.1em;
  padding-top: 2px;
}
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
.sec-head .sec-hint {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--dim);
  max-width: 34ch;
  text-align: right;
}
.sec-body > * + * { margin-top: 18px; }

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 14px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px 22px 20px;
  min-height: 190px;
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.22s, box-shadow 0.22s;
  position: relative;
}
.card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--amber);
  box-shadow: 5px 5px 0 rgba(255, 171, 46, 0.18);
}
.card-no {
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--dim);
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  margin: 12px 0 8px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}
.card-more {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--amber);
  text-transform: uppercase;
}
.card:hover .card-more { color: var(--text); }

/* ---------- tables ---------- */

.tablewrap {
  border: 1px solid var(--line);
  background: var(--panel);
  overflow-x: auto;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 540px;
}
table.data thead th {
  text-align: left;
  padding: 12px 16px;
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  background: #0f1215;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
table.data tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: var(--text);
  vertical-align: top;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: rgba(255, 171, 46, 0.035); }
table.data td.num, table.data th.num {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--amber);
  white-space: nowrap;
}
table.data tbody td:first-child { color: var(--text); font-weight: 600; }
table.data caption {
  caption-side: bottom;
  text-align: left;
  padding: 10px 16px 14px;
  font-size: 11.5px;
  color: var(--dim);
  border-top: 1px solid var(--line);
}

/* ---------- callouts ---------- */

.callout {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 8px 16px;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
}
.callout .callout-tag {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  padding-top: 4px;
}
.callout > :not(.callout-tag) {
  grid-column: 2;
  text-align: left;
}
.callout p { margin: 0; font-size: 14px; color: var(--text); }
.callout p + p { margin-top: 8px; }
.callout.tip { border-left-color: var(--cyan); }
.callout.tip .callout-tag { color: var(--cyan); }
.callout.warn { border-left-color: var(--red); }
.callout.warn .callout-tag { color: var(--red); }
.callout.quote {
  border-left-color: var(--line-2);
  background: #0f1214;
  font-style: italic;
}
.callout.quote .callout-tag { color: var(--dim); }
.callout.quote p { color: var(--muted); font-size: 14.5px; }

/* ---------- steps ---------- */

ol.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
ol.steps li {
  counter-increment: step;
  background: var(--panel);
  padding: 18px 20px 18px 62px;
  position: relative;
}
ol.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 18px;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 0.08em;
}
ol.steps li b {
  display: block;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 4px;
}
ol.steps li p { margin: 0; color: var(--muted); font-size: 13.8px; }

/* ---------- prose ---------- */

.prose { max-width: 100%; }
.prose h2, .prose h3, .prose h4 {
  font-family: var(--font-display);
  letter-spacing: -0.005em;
}
.prose h3 {
  font-size: 21px;
  font-weight: 600;
  margin: 34px 0 12px;
  padding-left: 14px;
  border-left: 2px solid var(--amber);
  line-height: 1.35;
}
.prose h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text);
}
.prose p { margin: 0 0 16px; }
.prose p strong { color: #fff; font-weight: 600; }
.prose ul, .prose ol:not(.steps) {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
}
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--amber); }
.prose a {
  color: var(--text);
  border-bottom: 1px solid rgba(255, 171, 46, 0.45);
  transition: color 0.15s, border-color 0.15s;
}
.prose a:hover { color: var(--amber); border-color: var(--amber); }

/* ---------- page head ---------- */

.pagehead {
  padding: clamp(42px, 6vw, 72px) 0 clamp(26px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.pagehead::after {
  content: attr(data-ghost);
  position: absolute;
  right: 14px;
  bottom: -30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(90px, 14vw, 180px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.028);
  pointer-events: none;
  letter-spacing: -0.04em;
}
.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.crumbs a:hover { color: var(--amber); }
.crumbs span { color: var(--line-2); }
.pagehead h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  max-width: 20ch;
  text-wrap: balance;
}
.pagehead .lede {
  color: var(--muted);
  font-size: 16px;
  max-width: 62ch;
  margin: 0;
}
.pagehead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
}
.pagehead-meta span b { color: var(--amber); font-weight: 400; }

/* ---------- layout with TOC ---------- */

.layout {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  padding-top: clamp(30px, 4vw, 46px);
  padding-bottom: clamp(50px, 6vw, 80px);
  align-items: start;
}
.layout .prose > .sec:first-child { padding-top: 0; }
.layout > .prose:only-child { grid-column: 1 / -1; }
.toc {
  position: sticky;
  top: 92px;
  font-size: 12.5px;
}
.toc-title {
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 7px 0 7px 12px;
  color: var(--dim);
  border-left: 1px solid transparent;
  transition: color 0.16s, border-color 0.16s;
  line-height: 1.45;
}
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--amber); border-left-color: var(--amber); }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--amber-2), var(--amber));
  z-index: 50;
  transition: width 0.1s linear;
}

/* ---------- spec cards ---------- */

.specs { display: grid; gap: 14px; }
.spec {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px 26px;
  position: relative;
}
.spec::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 46px;
  background: var(--amber);
}
.spec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.spec-head h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}
.tag {
  font-family: var(--font-pixel);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 7px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  white-space: nowrap;
}
.tag.hot { border-color: rgba(255, 171, 46, 0.5); color: var(--amber); }
.tag.adv { border-color: rgba(95, 227, 208, 0.4); color: var(--cyan); }
.tag.hard { border-color: rgba(255, 91, 110, 0.45); color: var(--red); }
.tag.wip { border-color: rgba(255, 255, 255, 0.12); color: var(--dim); }
.spec-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 16px 0 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spec-stats span {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 11px;
  color: var(--dim);
  font-family: var(--font-pixel);
  letter-spacing: 0.06em;
}
.spec-stats b {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--amber);
  font-weight: 700;
}
.spec p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.spec ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--muted); }
.spec li { margin-bottom: 5px; }
.spec li::marker { color: var(--amber); }

/* ---------- timeline ---------- */

.timeline {
  position: relative;
  padding-left: 26px;
  margin: 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 7px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--amber);
  background: var(--bg);
  transform: rotate(45deg);
}
.timeline .t-date {
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--amber);
  text-transform: uppercase;
}
.timeline h4 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 7px 0 6px;
}
.timeline p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ---------- faq ---------- */

.qa { border-top: 1px solid var(--line); }
.qa details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.qa details summary {
  cursor: pointer;
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.qa details summary::-webkit-details-marker { display: none; }
.qa details summary::after {
  content: "+";
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--amber);
  flex: none;
}
.qa details[open] summary::after { content: "−"; }
.qa details[open] summary { color: var(--amber); }
.qa .a {
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  max-width: 78ch;
}
.qa .a p { margin: 0 0 10px; }
.qa .a p:last-child { margin-bottom: 0; }

/* ---------- related ---------- */

.related {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.014);
  padding: clamp(34px, 4vw, 52px) 0;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.related a {
  display: block;
  border: 1px solid var(--line);
  padding: 18px 20px;
  background: var(--panel);
  transition: border-color 0.2s, transform 0.2s;
}
.related a:hover { border-color: var(--amber); transform: translate(-2px, -2px); }
.related a small {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--dim);
  letter-spacing: 0.1em;
}
.related a b {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  margin-top: 8px;
  font-weight: 600;
}

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-2);
  aspect-ratio: 16 / 9;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 14px 12px;
  font-size: 12px;
  color: #e9e3d6;
  background: linear-gradient(to top, rgba(8, 9, 10, 0.92), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.gallery figure:hover figcaption { opacity: 1; }
.gallery-credit {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--dim);
  line-height: 1.7;
}
.gallery-credit a { color: var(--muted); border-bottom: 1px dotted var(--line-2); }
.gallery-credit a:hover { color: var(--amber); }

/* ---------- footer ---------- */

.sitefoot {
  border-top: 1px solid var(--line);
  padding: clamp(38px, 5vw, 60px) 0 26px;
  background: #08090a;
}
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.foot-brand b {
  font-family: var(--font-pixel);
  font-size: 14px;
  letter-spacing: 0.06em;
  display: block;
  color: var(--text);
}
.foot-brand p {
  color: var(--dim);
  font-size: 12.5px;
  max-width: 34ch;
  margin: 12px 0 0;
  line-height: 1.7;
}
.foot-col h5 {
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
  margin: 0 0 14px;
}
.foot-col a {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  padding: 4px 0;
}
.foot-col a:hover { color: var(--amber); }
.foot-legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--dim);
  line-height: 1.65;
}
.foot-legal p { margin: 0; max-width: 60ch; }

/* ---------- motion ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 1; }
html.js .reveal { opacity: 0; }
html.js .reveal.in { opacity: 1; animation: rise 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; }
  .ticker { animation: none; padding-left: 0; }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .ticket { max-width: 420px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .lang { display: none; }
  .burger { display: block; }
  .nav-in { height: 58px; gap: 12px; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-cell { border-left: 0; border-top: 1px solid var(--line); }
  .strip-cell:nth-child(odd) { border-right: 1px solid var(--line); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .sec-body > *, .prose > *, .prose p, .prose li { max-width: 100% !important; }
  .tablewrap { max-width: 100%; }
  .sec-head { flex-direction: column; gap: 6px; }
  .sec-hint { margin-left: 0; text-align: left; }
  .foot-top { grid-template-columns: 1fr; gap: 26px; }
  .spec { padding: 18px; }
  .card { min-height: 0; }
  table.data { font-size: 12.5px; }
  table.data thead th { padding: 10px 12px; }
  table.data tbody td { padding: 10px 12px; }
}

@media print {
  .topbar, .nav, .toc, .related, .progress, .sitefoot { display: none; }
  body { background: #fff; color: #000; }
}

/* ---- Wiki components ---- */
.wiki-fig {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2);
}
.wiki-fig img {
  width: 100%;
  height: auto;
  display: block;
}
.wiki-fig figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.wiki-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.wcard {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, transform 0.18s;
}
.wcard:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.wcard .w-no {
  display: inline-block;
  font-family: "Chakra Petch", sans-serif;
  font-size: 13px;
  color: var(--amber);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.wcard h3 {
  margin: 0 0 8px;
  font-family: "Chakra Petch", sans-serif;
  font-size: 18px;
  color: var(--text);
}
.wcard p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

p.src {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
p.src a {
  color: var(--cyan);
  text-decoration: none;
}
p.src a:hover { text-decoration: underline; }

.prose blockquote {
  margin: 16px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--amber);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  border-radius: 0 8px 8px 0;
}

@media (max-width: 860px) {
  .wiki-cards { grid-template-columns: 1fr; }
}
