/* ============================================================
   168体育赛场 · 共享站点样式 /assets/site.css
   夜间赛场指挥中心：深空底 + 极细边界 + 荧光锚点
   ============================================================ */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

img, svg, video { max-width: 100%; }

button { font: inherit; color: inherit; }

a { color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #050B18;
  --panel: #0B1526;
  --panel-2: #0E1B30;
  --line: #16233A;
  --line-warm: rgba(198, 255, 61, 0.18);
  --text: #E8F1FF;
  --text-soft: #C7D4E6;
  --muted: #7E8DA6;
  --lime: #C6FF3D;
  --amber: #FFB020;
  --cyan: #2BE0C8;
  --red: #FF4D6D;
  --paper: #F4F7FB;
  --paper-ink: #101A2B;
  --paper-muted: #4A5A73;

  --rail-w: 88px;
  --deck-top-h: 44px;
  --deck-nav-h: 64px;
  --deck-h: 108px;

  --font-display: "Barlow Condensed", "Arial Narrow", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-left: var(--rail-w);
  padding-top: var(--deck-h);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(116deg, rgba(22, 35, 58, 0.62) 0 1px, transparent 1px 104px),
    radial-gradient(1100px 560px at 84% -12%, rgba(43, 224, 200, 0.07), transparent 70%),
    radial-gradient(880px 520px at -6% 104%, rgba(198, 255, 61, 0.05), transparent 72%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

main { flex: 1 0 auto; }

#main-content:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(30px, 4.4vw, 54px); }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: clamp(19px, 2.1vw, 24px); }
h4 { font-size: clamp(16px, 1.7vw, 18px); letter-spacing: 0; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

a {
  text-decoration: none;
  color: var(--lime);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

::selection { background: var(--lime); color: #0A1200; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 1px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ---------- 4. Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 56px);
}

.section { padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); }
.section--plain { border-top: 0; }
.section--paper { background: var(--paper); color: var(--paper-ink); }
.section--paper h1,
.section--paper h2,
.section--paper h3 { color: var(--paper-ink); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

/* ---------- 5. Type utilities ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--lime);
  flex: none;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: var(--muted);
  white-space: nowrap;
}

.display-num {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 180px);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--lime);
}

.lead {
  max-width: 62ch;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.8;
  color: var(--text-soft);
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover { border-color: rgba(198, 255, 61, 0.55); color: var(--lime); }

.btn--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: #1A0F00;
  font-weight: 700;
  box-shadow: 0 0 0 rgba(255, 176, 32, 0);
}
.btn--amber:hover {
  background: #FFC552;
  border-color: #FFC552;
  color: #1A0F00;
  box-shadow: 0 0 22px rgba(255, 176, 32, 0.28);
}

.btn--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: #0A1200;
  font-weight: 700;
}
.btn--lime:hover { background: #D6FF6E; border-color: #D6FF6E; color: #0A1200; }

.btn--ghost { border-color: rgba(198, 255, 61, 0.42); color: var(--lime); }
.btn--ghost:hover { background: rgba(198, 255, 61, 0.08); color: var(--lime); }

/* ---------- 7. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 2px;
  background: var(--lime);
  color: #0A1200;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.18s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); outline-offset: 2px; }

/* ---------- 8. Header · brand rail ---------- */
.site-header { position: relative; z-index: 80; }

.brand-rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 75;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 18px 0 16px;
  background: linear-gradient(180deg, #071021 0%, #050B18 52%, #08121F 100%);
  border-right: 1px solid var(--line);
  box-shadow: inset -1px 0 0 rgba(198, 255, 61, 0.05);
}

.rail-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.rail-logo__num {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--text);
  transition: color 0.2s var(--ease);
}
.rail-logo__cn {
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--muted);
  line-height: 1;
}
.rail-logo:hover .rail-logo__num { color: var(--lime); }

.rail-season {
  display: flex;
  flex-direction: column;
  gap: 6px;
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-align: center;
}
.rail-season span:first-child { color: rgba(198, 255, 61, 0.6); }

.rail-scale {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin-top: auto;
}
.rail-scale span {
  display: block;
  width: 10px;
  height: 1px;
  background: var(--line);
}
.rail-scale span:nth-child(3n) { width: 18px; background: #1F3050; }
.rail-scale span.is-current {
  width: 24px;
  height: 2px;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(198, 255, 61, 0.65);
}

.rail-link {
  writing-mode: vertical-rl;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--muted);
}
.rail-link:hover { border-color: rgba(198, 255, 61, 0.5); color: var(--lime); }

/* ---------- 9. Header · deck ---------- */
.header-deck {
  position: fixed;
  left: var(--rail-w);
  right: 0;
  top: 0;
  z-index: 70;
  background: linear-gradient(180deg, #060E1D 0%, #070F1E 100%);
  border-bottom: 1px solid var(--line);
}

.deck-top {
  height: var(--deck-top-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding-inline: clamp(18px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}

.deck-statement {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck-round {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--lime);
  white-space: nowrap;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(198, 255, 61, 0.16);
  animation: live-pulse 2.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(198, 255, 61, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(198, 255, 61, 0.04); }
}

.deck-cta {
  margin-left: auto;
  padding: 6px 15px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.deck-nav {
  position: relative;
  height: var(--deck-nav-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding-inline: clamp(18px, 3vw, 32px);
}

.site-nav { display: flex; align-items: center; min-width: 0; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.site-nav__list a {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  color: #B9C7DB;
  white-space: nowrap;
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease);
}

.site-nav__list a:hover { color: var(--text); }
.site-nav__list a:hover::after { background: #2B3C5A; transform: scaleX(1); }

.site-nav__list a[aria-current="page"] { color: var(--text); }
.site-nav__list a[aria-current="page"]::after { background: var(--lime); transform: scaleX(1); }

.deck-shortcut {
  margin-left: auto;
  flex: none;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  white-space: nowrap;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.deck-shortcut::after { content: " →"; color: var(--cyan); }
.deck-shortcut:hover {
  border-color: rgba(43, 224, 200, 0.55);
  color: var(--cyan);
  background: rgba(43, 224, 200, 0.06);
}

.deck-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 14px;
  height: 1px;
  background: var(--lime);
}
.nav-toggle__bar:last-of-type { width: 8px; background: var(--muted); }
.nav-toggle__text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.nav-toggle[aria-expanded="true"] { border-color: rgba(198, 255, 61, 0.55); }
.nav-toggle[aria-expanded="true"] .nav-toggle__text { color: var(--lime); }

/* ---------- 10. Footer ---------- */
.site-footer {
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #07101F 0%, #050B18 60%);
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(-6deg, rgba(255, 176, 32, 0.06) 0 1px, transparent 1px 16px),
    linear-gradient(90deg, rgba(255, 176, 32, 0.12), rgba(255, 176, 32, 0.02) 62%, transparent);
}

.footer-cta__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(190px, 0.9fr) minmax(280px, 1.5fr);
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(40px, 6vw, 64px);
}

.footer-brand__mark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--lime);
  line-height: 1;
}
.footer-brand__mark span {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-soft);
}

.footer-brand__line {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.footer-brand__note { margin: 0; font-size: 13.5px; line-height: 1.8; color: var(--muted); }

.footer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-title::before {
  content: "";
  width: 12px;
  height: 2px;
  background: var(--lime);
  flex: none;
}

.footer-list {
  display: grid;
  gap: 9px;
  margin-bottom: 28px;
}
.footer-list a {
  font-size: 14px;
  color: #B9C7DB;
  border-left: 2px solid transparent;
  padding-left: 0;
  transition: color 0.18s var(--ease), padding-left 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer-list a:hover {
  color: var(--lime);
  padding-left: 8px;
  border-left-color: var(--lime);
}

.footer-contact__list { display: grid; gap: 0; }

.footer-contact__row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding-block: 10px;
  border-bottom: 1px solid rgba(22, 35, 58, 0.85);
}
.footer-contact__row:first-child { border-top: 1px solid rgba(22, 35, 58, 0.85); }

.footer-contact__row dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.footer-contact__row dd {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  font-size: 13.5px;
  color: var(--text-soft);
  word-break: break-all;
}

.footer-contact__note {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

.copy-btn {
  flex: none;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.copy-btn:hover { color: var(--lime); border-color: rgba(198, 255, 61, 0.55); background: rgba(198, 255, 61, 0.06); }
.copy-btn.is-copied { color: var(--amber); border-color: rgba(255, 176, 32, 0.6); background: rgba(255, 176, 32, 0.08); }

.footer-legal {
  border-top: 1px solid var(--line);
  background: #040A14;
}
.footer-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding-block: 16px;
  font-size: 11.5px;
  color: var(--muted);
}
.footer-legal__meta { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--text-soft); }
.footer-legal__region { margin: 0; color: var(--cyan); letter-spacing: 0.16em; }
.footer-legal__copy { margin: 0; }
.footer-legal__note { margin: 0; margin-left: auto; }

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(11, 21, 38, 0.94);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.to-top[data-visible] { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { border-color: rgba(198, 255, 61, 0.55); color: var(--lime); }

/* ---------- 11. Content components ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--panel) 0%, #08111F 100%);
  box-shadow: inset 0 0 0 1px rgba(198, 255, 61, 0.045), 0 1px 0 rgba(0, 0, 0, 0.45);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 26px;
  width: 2px;
  height: 0;
  background: var(--lime);
  transition: height 0.28s var(--ease);
}
.card:hover,
.card:focus-within {
  border-color: rgba(198, 255, 61, 0.5);
  box-shadow: inset 0 0 0 1px rgba(198, 255, 61, 0.12), 0 0 24px rgba(198, 255, 61, 0.06);
}
.card:hover::before,
.card:focus-within::before { height: 42px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--muted); }

.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    repeating-linear-gradient(-6deg, rgba(22, 35, 58, 0.9) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, #0B1526 0%, #060D1A 100%);
}
.media img,
.media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 11, 24, 0.62) 100%);
  pointer-events: none;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }

.media__caption {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.breadcrumb {
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: #2C3E5B; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb [aria-current="page"] { color: var(--text-soft); }

.prose { max-width: 68ch; font-size: 16.5px; line-height: 1.8; color: var(--text-soft); }
.prose > h2 { margin-top: 2em; margin-bottom: 0.7em; }
.prose > h3 { margin-top: 1.8em; margin-bottom: 0.6em; }
.prose p { margin-bottom: 1.2em; }
.prose a { color: var(--lime); border-bottom: 1px solid rgba(198, 255, 61, 0.35); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.5em; }

.prose--paper {
  max-width: 680px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid #DCE5F0;
  background: var(--paper);
  color: var(--paper-ink);
}
.prose--paper h2,
.prose--paper h3 { color: var(--paper-ink); }
.prose--paper a { color: #1F6BFF; border-bottom-color: rgba(31, 107, 255, 0.35); }
.prose--paper strong { color: #000; }
.prose--paper .label { border-color: #DCE5F0; color: var(--paper-muted); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid rgba(198, 255, 61, 0.35);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--lime);
}
.tag--amber { border-color: rgba(255, 176, 32, 0.45); color: var(--amber); }
.tag--cyan { border-color: rgba(43, 224, 200, 0.45); color: var(--cyan); }
.tag--red { border-color: rgba(255, 77, 109, 0.45); color: var(--red); }

.anchor-nav {
  position: sticky;
  top: calc(var(--deck-h) + 24px);
  display: grid;
  gap: 2px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.anchor-nav a {
  display: block;
  margin-left: -15px;
  padding: 7px 0 7px 14px;
  border-left: 2px solid transparent;
  font-size: 13px;
  color: var(--muted);
}
.anchor-nav a:hover { color: var(--text); }
.anchor-nav a.is-active { color: var(--lime); border-left-color: var(--lime); }

.slant-band {
  height: clamp(40px, 6vw, 72px);
  border-block: 1px solid var(--line);
  background: repeating-linear-gradient(-6deg, rgba(198, 255, 61, 0.14) 0 1px, transparent 1px 15px);
}

/* ---------- 12. Motion / reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 13. Responsive ---------- */
@media (max-width: 1180px) {
  .deck-statement { display: none; }
  .deck-round { margin-left: auto; }
  .deck-cta { margin-left: 0; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: span 2; }
  .footer-legal__note { margin-left: 0; }
  .span-3, .span-4, .span-5 { grid-column: span 6; }
}

@media (max-width: 960px) {
  body {
    padding-left: 0;
    padding-top: 0;
    background-image:
      repeating-linear-gradient(116deg, rgba(22, 35, 58, 0.55) 0 1px, transparent 1px 96px),
      radial-gradient(700px 420px at 90% -6%, rgba(43, 224, 200, 0.08), transparent 70%);
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
  }

  .brand-rail {
    position: static;
    inset: auto;
    width: 100%;
    height: 56px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 clamp(14px, 4vw, 22px);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail-logo { flex-direction: row; align-items: baseline; gap: 8px; }
  .rail-logo__num { font-size: 22px; }
  .rail-logo__cn { writing-mode: horizontal-tb; font-size: 10.5px; letter-spacing: 0.18em; }

  .rail-season {
    writing-mode: horizontal-tb;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 10px;
  }

  .rail-scale,
  .rail-link { display: none; }

  .header-deck { position: static; inset: auto; border-bottom: 0; }

  .deck-top {
    height: 46px;
    gap: 10px;
    padding-inline: clamp(14px, 4vw, 22px);
  }
  .deck-statement { display: block; font-size: 11.5px; letter-spacing: 0.02em; }
  .deck-round { display: none; }
  .deck-cta { margin-left: auto; padding: 6px 12px; font-size: 12px; }

  .deck-nav {
    height: 56px;
    gap: 10px;
    padding-inline: clamp(14px, 4vw, 22px);
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    z-index: 88;
    background: #060E1D;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 44px rgba(0, 0, 0, 0.6);
    max-height: calc(100vh - 160px);
    overflow-y: auto;
  }
  .site-nav[data-open] { display: block; }

  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list a {
    display: block;
    padding: 15px clamp(18px, 4vw, 22px);
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    color: var(--text-soft);
  }
  .site-nav__list a::after { display: none; }
  .site-nav__list a[aria-current="page"] {
    color: var(--lime);
    background: linear-gradient(90deg, rgba(198, 255, 61, 0.12), transparent 70%);
    border-left: 2px solid var(--lime);
    padding-left: calc(clamp(18px, 4vw, 22px) - 2px);
  }

  .deck-shortcut { margin-left: auto; font-size: 10.5px; padding: 7px 10px; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .footer-brand { grid-column: auto; }
  .footer-cta { padding-inline: clamp(18px, 4vw, 22px); }
  .footer-contact__row { grid-template-columns: 68px minmax(0, 1fr); }

  .anchor-nav { position: static; top: auto; }
  .to-top { right: 14px; bottom: 14px; padding: 8px 12px; }
}

@media (max-width: 720px) {
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9 { grid-column: span 12; }
  .footer-legal__inner { gap: 8px 16px; font-size: 11px; }
  .prose--paper { padding: 20px; }
  .deck-statement { max-width: 46vw; }
}

@media (max-width: 420px) {
  .deck-cta { padding: 6px 10px; font-size: 11.5px; }
  .deck-shortcut { display: none; }
}

/* ---------- 14. Reduced motion ---------- */
@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;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .live-dot { animation: none; }
}
