/* RenaSci · 新科学宣言 — manifesto site
   Layout concept: full-bleed stages scrolled like a game trailer; copy sits in hard-edged
   cards anchored to the frame, over dithered print-era archive imagery (paper → pixels).
   One signal colour (fluorescent lime, print spot-colour equivalent Pantone 802 C) on near-black. */
:root {
  --void: #060607;
  --panel: #0d0e0f;
  --acid: #d4ff26;
  --acid-ink: #0b0c05;
  --paper: #ecede6;
  --paper-ink: #0b0b0b;
  --fg: #e9ebe3;
  --dim: #8f9486;
  --faint: #3b3f35;
  --line: rgba(212, 255, 38, .26);
  --line-soft: rgba(233, 235, 227, .12);
  --mag: #ff3d7f;
  --cy: #3de8ff;
  --f-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --f-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --f-disp: "Archivo", "Arial Narrow", "Noto Sans SC", sans-serif;
  --f-mono: "Martian Mono", "Noto Sans SC", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --bar: 56px;
  --gut: clamp(16px, 3.2vw, 44px);
  --gut-r: var(--gut);
  color-scheme: dark;
}
@media (min-width: 1180px) { :root { --gut-r: max(var(--gut), 92px); } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--void); color: var(--fg);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }
::selection { background: var(--acid); color: var(--acid-ink); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 8px; top: -80px; z-index: 100; background: var(--acid); color: var(--acid-ink); padding: 8px 12px; font-family: var(--f-mono); font-size: 12px; text-decoration: none; }
.skip:focus { top: 8px; }
.nb { display: inline-block; }
.serif { font-family: var(--f-serif); }
[hidden] { display: none !important; }

/* faint CRT lines over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px);
}

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 900; }
h2 {
  font-size: clamp(32px, 4.6vw, 76px); line-height: 1.08; letter-spacing: -.012em;
  margin: .28em 0 .38em; text-wrap: balance;
}
h2.serif { font-family: var(--f-serif); letter-spacing: -.02em; }
.lead { font-size: clamp(15px, 1.18vw, 18px); line-height: 1.85; max-width: 34em; color: rgba(233, 235, 227, .88); }
:lang(en) h2 {
  font-family: var(--f-disp); font-stretch: 118%; font-weight: 820; text-transform: uppercase;
  letter-spacing: -.004em; line-height: .98; font-size: clamp(28px, 3.7vw, 64px);
}
:lang(en) h2.serif { font-family: var(--f-disp); }
:lang(en) .lead { line-height: 1.62; }

.tag {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0;
  font-family: var(--f-mono); font-size: 11px; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--acid);
}
.tag span { display: inline-flex; align-items: center; gap: 10px; }
.tag span + span::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .55; }
.tag em { font-style: normal; }
.tag--center { justify-content: center; }

.caption {
  position: absolute; z-index: 3; margin: 0; max-width: 46ch;
  font-family: var(--f-mono); font-size: 10px; line-height: 1.5; letter-spacing: .03em; color: var(--dim);
}
.caption--br { right: var(--gut-r); bottom: 12px; text-align: right; }

/* ---------- buttons & hotspots ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn i { font-style: normal; opacity: .75; }
.btn--acid { background: var(--acid); color: var(--acid-ink); }
.btn--acid:hover { background: var(--paper); }
.btn--ink { background: var(--acid-ink); color: var(--acid); }
.btn--ink:hover { background: var(--void); color: var(--paper); }
.btn--line { border-color: currentColor; }
.btn--line:hover:not(:disabled) { background: var(--acid); color: var(--acid-ink); border-color: var(--acid); }
.btn--paper { background: var(--paper); color: var(--paper-ink); }
.btn--paper:hover { background: var(--acid); }
.btn--big { min-height: 56px; font-size: 13px; padding: 0 24px; }
.btn:disabled { opacity: .32; cursor: not-allowed; }

.hot { display: flex; flex-wrap: wrap; gap: 8px; }
.hs {
  display: inline-flex; align-items: stretch; min-height: 40px; font-size: 14px; line-height: 1.3; text-decoration: none;
  border: 1px solid var(--line); background: rgba(6, 6, 7, .78); transition: background .15s, color .15s;
}
.hs > i {
  flex: 0 0 38px; display: grid; place-items: center; font-style: normal; font-family: var(--f-mono); font-size: 16px; font-weight: 600;
  background: var(--acid); color: var(--acid-ink);
}
.hs > span { display: flex; align-items: center; padding: 8px 14px 8px 12px; }
.hs:hover, .hs:focus-visible { background: var(--acid); color: var(--acid-ink); }
.hs:hover > i, .hs:focus-visible > i { background: var(--acid-ink); color: var(--acid); }
.hs--go > i { background: transparent; color: var(--acid); border-right: 1px solid var(--line); }

/* ---------- top bar ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: stretch;
  height: calc(var(--bar) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
  background: var(--void); border-bottom: 1px solid var(--line-soft);
}
.bar__logo { flex: 0 0 var(--bar); display: grid; place-items: center; background: var(--acid); color: var(--acid-ink); }
.bar__logo svg { width: 22px; height: 24px; fill: currentColor; }
.bar__brand {
  display: flex; flex-direction: column; justify-content: center; padding: 0 18px;
  font-family: var(--f-mono); font-size: 10px; line-height: 1.35; letter-spacing: .06em; color: var(--dim);
  border-right: 1px solid var(--line-soft);
}
.bar__brand b { font-family: var(--f-disp); font-stretch: 115%; font-weight: 800; font-size: 15px; letter-spacing: .01em; color: var(--fg); }
.bar__nav { flex: 1; min-width: 0; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); padding: 0 clamp(14px, 2.2vw, 30px); }
.bar__nav a { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.bar__nav a i, .menu a i { font-style: normal; font-size: 10px; color: var(--dim); }
.bar__nav a:hover { color: var(--acid); }
.bar__lang { padding: 0 20px; font-family: var(--f-mono); font-size: 12px; border-left: 1px solid var(--line-soft); }
.bar__lang:hover { color: var(--acid); }
.bar__cta {
  flex: 0 0 clamp(150px, 20vw, 290px); display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--acid); color: var(--acid-ink); text-decoration: none;
  font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.bar__cta:hover { background: var(--paper); }
.bar__menu { display: none; width: var(--bar); flex-direction: column; justify-content: center; align-items: center; gap: 6px; border-left: 1px solid var(--line-soft); }
.bar__menu span { width: 20px; height: 2px; background: var(--fg); transition: transform .2s; }
.bar__menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.bar__menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu {
  position: fixed; left: 0; right: 0; bottom: 0; top: calc(var(--bar) + env(safe-area-inset-top, 0px)); z-index: 59;
  display: flex; flex-direction: column; padding: 18px var(--gut); background: var(--void); overflow-y: auto;
}
.menu a { font-size: 28px; font-weight: 900; text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
:lang(en) .menu a { font-family: var(--f-disp); font-stretch: 115%; text-transform: uppercase; font-size: 24px; }
@media (max-width: 960px) {
  .bar__nav, .bar__brand span { display: none; }
  .bar__brand { flex: 1; border-right: 0; }
  .bar__menu { display: flex; }
  .bar__cta { flex: 0 0 auto; padding: 0 16px; font-size: 12px; }
  .bar__lang { padding: 0 14px; }
}

/* ---------- chapter rail ---------- */
.rail {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 45;
  display: none; flex-direction: column; align-items: flex-end; gap: 1px; transition: opacity .3s;
}
@media (min-width: 1180px) { .rail { display: flex; } }
body.at-hero .rail, body.at-foot .rail { opacity: 0; pointer-events: none; }
.rail a { display: flex; align-items: center; gap: 8px; padding: 3px 0; text-decoration: none; font-family: var(--f-mono); font-size: 10px; color: var(--dim); }
.rail a b { font-weight: 400; min-width: 18px; text-align: right; }
.rail a span { order: -1; opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; white-space: nowrap; background: var(--void); padding: 1px 6px; border: 1px solid var(--line); pointer-events: none; }
.rail a::after { content: ""; width: 10px; height: 2px; background: currentColor; transition: width .2s; }
.rail a:hover, .rail a.is-on { color: var(--acid); }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; }
.rail a.is-on::after { width: 24px; }
.rail__meter { display: block; width: 2px; height: 60px; margin: 8px 11px 0 0; background: var(--faint); position: relative; }
.rail__meter i { position: absolute; left: 0; right: 0; top: 0; height: 0; background: var(--acid); }

/* ---------- chapter shells ---------- */
.ch { position: relative; }
.stage { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.ch[data-pin] { height: var(--h, 200vh); }
.ch[data-pin] > .stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
.stage--flow { min-height: 0; }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; pointer-events: none; }
.ui { position: relative; z-index: 2; padding: calc(var(--bar) + clamp(28px, 6vh, 64px)) var(--gut-r) clamp(28px, 6vh, 56px) var(--gut); }
.ch[data-pin] .ui { height: 100%; }
.copy { position: relative; z-index: 2; min-width: 0; }
.copy--wide h2 { max-width: 20em; }
.copy--panel { background: rgba(6, 6, 7, .84); padding: 18px 22px 8px; border-left: 2px solid var(--acid); }
.copy--card { background: rgba(6, 6, 7, .93); border: 1px solid var(--line); padding: clamp(18px, 2.4vw, 28px); max-width: 660px; }

/* reveal (only below the fold, only with JS) */
.js .rv { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .rv.rv-wait { opacity: 0; transform: translateY(28px); }

/* ---------- 00 hero ---------- */
.hero { --h: 230vh; }
.hero .stage { background: var(--void); }
.hero__readout .ro { position: absolute; z-index: 1; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; color: rgba(212, 255, 38, .42); white-space: nowrap; }
.hero__readout em { font-style: normal; color: var(--acid); }
.ro--1 { top: calc(var(--bar) + 18px); left: 42%; }
.ro--2 { top: 38%; left: 40%; }
.ro--3 { top: 56%; right: calc(clamp(180px, 20vw, 290px) + 28px); }
.ro--4 { bottom: 22%; left: 47%; }
.ro--5 { top: calc(var(--bar) + 18px); right: calc(clamp(180px, 20vw, 290px) + 28px); }
.hero__copy { position: absolute; z-index: 3; left: var(--gut); top: calc(var(--bar) + 6vh); max-width: min(60vw, 920px); pointer-events: none; }
.hero__title { position: relative; margin: .18em 0 0; font-size: clamp(64px, 11vw, 190px); line-height: .9; letter-spacing: -.05em; font-weight: 900; }
.hero__a, .hero__b { display: block; }
.hero__a { opacity: clamp(0, calc(1 - (var(--p, 0) - .26) * 5), 1); transform: translateY(calc(clamp(0, var(--p, 0) - .26, 1) * -80px)); }
.hero__b { position: absolute; left: 0; top: .12em; color: var(--acid); opacity: clamp(0, calc((var(--p, 0) - .38) * 5), 1); font-size: .56em; line-height: 1; white-space: nowrap; }
:lang(en) .hero__title { font-family: var(--f-disp); font-stretch: 122%; font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; font-size: clamp(52px, 8.6vw, 150px); line-height: .88; }
:lang(en) .hero__b { font-size: .5em; }
.hero__lede { margin: .7em 0 0; font-size: clamp(18px, 1.9vw, 28px); font-weight: 700; line-height: 1.35; }
.hero__lede::before { content: "▸ "; color: var(--acid); }
:lang(en) .hero__lede { font-family: var(--f-disp); font-stretch: 112%; text-transform: uppercase; letter-spacing: .01em; }
.hero__card { position: absolute; z-index: 4; left: 0; bottom: 0; width: min(640px, 58vw); background: var(--acid); color: var(--acid-ink); padding: 20px var(--gut) 0; }
.hero__card h2 { font-size: clamp(22px, 2.1vw, 32px); margin: 0 0 .3em; line-height: 1.1; letter-spacing: 0; }
:lang(en) .hero__card h2 { font-stretch: 125%; font-weight: 900; font-size: clamp(22px, 2.1vw, 32px); }
.hero__card p { margin: 0 0 16px; max-width: 36em; font-size: 15px; line-height: 1.7; font-weight: 500; }
:lang(en) .hero__card p { font-size: 14.5px; line-height: 1.55; }
.hero__btns { display: flex; flex-wrap: wrap; margin: 0 calc(var(--gut) * -1); border-top: 1px solid rgba(11, 12, 5, .25); }
.hero__btns .btn { flex: 1 1 auto; min-height: 52px; }
.hero__btns .btn--line { border: 0; border-left: 1px solid rgba(11, 12, 5, .25); }
.hero__btns .btn--line:hover { background: var(--acid-ink); color: var(--acid); }
.hero__panel {
  position: absolute; z-index: 3; top: var(--bar); right: 0; bottom: 0; width: clamp(180px, 20vw, 290px);
  background: var(--acid); color: var(--acid-ink); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 14px 0 18px;
}
.hero__plus { font-family: var(--f-mono); font-size: 22px; line-height: 1; }
.hero__meta { display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-align: center; }
.hero__meta b { font-family: var(--f-sans); font-size: 15px; letter-spacing: .3em; margin-bottom: 4px; }
.vword {
  writing-mode: vertical-rl; font-family: var(--f-disp); font-stretch: 62%; font-weight: 900; line-height: .78; letter-spacing: -.02em;
  font-size: min(9.4vw, calc((100svh - var(--bar) - 190px) / 5.9)); user-select: none;
}
.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 20px; margin: 0; transform: translateX(-50%); font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 5px); } }
@media (max-width: 860px) {
  .hero .fx { opacity: .55; }
  .hero__panel, .hero__readout, .hero__scroll { display: none; }
  .hero__copy { max-width: none; right: var(--gut); top: calc(var(--bar) + 4vh); }
  .hero__card { width: 100%; }
}

/* ---------- 01 press ---------- */
.press .stage { background: var(--void); }
.fx--press { left: auto; right: 0; width: 60%; opacity: .92; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%); mask-image: linear-gradient(90deg, transparent 0, #000 26%); }
.press__year {
  position: absolute; z-index: 1; left: -.03em; bottom: -.14em; pointer-events: none;
  font-family: var(--f-disp); font-stretch: 125%; font-weight: 900; font-size: clamp(130px, 24vw, 420px); line-height: .8; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(212, 255, 38, .32);
}
.press__ui { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); align-items: center; gap: 32px; min-height: 100svh; }
.press__page { margin: 0; justify-self: start; align-self: end; width: min(250px, 20vw); padding: 8px; background: var(--void); border: 1px solid var(--line); transform: rotate(-3.5deg); box-shadow: 10px 10px 0 rgba(212, 255, 38, .12); }
.press__page img { width: 100%; height: auto; image-rendering: pixelated; }
.press__page figcaption { font-family: var(--f-mono); font-size: 9px; line-height: 1.4; color: var(--dim); padding-top: 6px; }
@media (max-width: 860px) {
  .fx--press { width: 100%; height: 48%; -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 40%); mask-image: linear-gradient(0deg, transparent 0, #000 40%); }
  .press__ui { grid-template-columns: 1fr; padding-top: calc(var(--bar) + 38vh); }
  .press__page { display: none; }
}

/* ---------- 02 city ---------- */
.city .stage { background: var(--void); cursor: crosshair; touch-action: pan-y; }
.city__under {
  position: absolute; z-index: 1; left: 0; right: 0; top: 60%; bottom: 0;
  -webkit-mask-image: radial-gradient(circle var(--r, 150px) at var(--mx, 50%) var(--my, 40%), #000 55%, transparent 100%);
  mask-image: radial-gradient(circle var(--r, 150px) at var(--mx, 50%) var(--my, 40%), #000 55%, transparent 100%);
}
.city__under span { position: absolute; white-space: nowrap; font-size: 12px; line-height: 1.2; color: var(--acid); border: 1px solid var(--line); padding: 3px 7px; background: rgba(6, 6, 7, .6); }
.city__under span:nth-child(3n) { font-family: var(--f-mono); font-size: 11px; }
.city__ui { display: grid; grid-template-columns: minmax(0, 700px) minmax(0, 1fr); align-items: start; gap: 24px; min-height: 100svh; }
.stats--col { justify-self: end; display: flex; flex-direction: column; gap: 8px; width: min(340px, 100%); }
.stat { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 14px; background: rgba(6, 6, 7, .84); border: 1px solid var(--line); transition: background .15s, color .15s; }
.stat b { font-family: var(--f-disp); font-stretch: 115%; font-weight: 850; font-size: clamp(26px, 2.5vw, 38px); line-height: 1; color: var(--acid); font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; line-height: 1.45; }
.stat em { font-family: var(--f-mono); font-style: normal; font-size: 10px; color: var(--dim); }
.stat:hover { background: var(--acid); color: var(--acid-ink); }
.stat:hover b, .stat:hover em { color: var(--acid-ink); }
.city__hint { position: absolute; z-index: 3; left: var(--gut); top: calc(60% + 14px); margin: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--acid); }
.city__hint i { font-style: normal; }
.only-coarse { display: none; }
@media (hover: none), (pointer: coarse) { .only-coarse { display: inline; } .only-fine { display: none; } }
.hot--br { position: absolute; z-index: 3; right: var(--gut-r); bottom: 30px; justify-content: flex-end; max-width: 60%; }
@media (max-width: 860px) {
  .city .stage { min-height: 136svh; }
  .city__ui { grid-template-columns: 1fr; min-height: 0; }
  .stats--col { justify-self: stretch; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .stat { padding: 8px; }
  .stat b { font-size: 20px; }
  .stat span { font-size: 11px; }
  .city__under, .city__hint { top: 72%; }
  .hot--br { left: var(--gut); right: var(--gut); max-width: none; justify-content: flex-start; bottom: 18px; }
}

/* ---------- 03 flood ---------- */
.flood { --h: 190vh; }
.flood .stage { background: var(--void); }
.flood .stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(6, 6, 7, .9) 0, rgba(6, 6, 7, .72) 38%, rgba(6, 6, 7, 0) 60%); }
.flood__ui { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); grid-template-rows: minmax(0, 1fr) auto; gap: 18px 56px; }
.counters { align-self: center; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ctr { background: rgba(6, 6, 7, .88); padding: clamp(12px, 1.6vw, 20px); }
.ctr b { display: block; font-family: var(--f-disp); font-stretch: 118%; font-weight: 900; font-size: clamp(26px, 3.2vw, 52px); line-height: 1; color: var(--acid); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ctr span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: rgba(233, 235, 227, .8); }
.stairs { grid-column: 1 / -1; position: relative; }
.stairs__cap { margin: 0 0 8px; font-family: var(--f-mono); font-size: 11px; color: var(--dim); }
.stairs ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 6px; height: clamp(96px, 17vh, 168px); }
.st { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px 10px; border: 1px solid var(--line); background: rgba(6, 6, 7, .9); }
.st--hu::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 100%; height: calc(clamp(0, var(--p, 1) * 1.6 - .2, 1) * (64px - var(--k) * 10px)); background: repeating-linear-gradient(0deg, rgba(212, 255, 38, .85) 0 2px, transparent 2px 5px); }
.st:nth-child(1) { --k: 0; height: 36%; } .st:nth-child(2) { --k: 1; height: 52%; } .st:nth-child(3) { --k: 2; height: 68%; } .st:nth-child(4) { --k: 3; height: 84%; } .st:nth-child(5) { --k: 4; height: 100%; }
.st em { font-family: var(--f-mono); font-style: normal; font-size: 10px; }
.st b { font-size: clamp(14px, 1.4vw, 20px); line-height: 1.2; }
.st--ai { background: var(--acid); color: var(--acid-ink); border-color: var(--acid); }
.st--hu { background: repeating-linear-gradient(-45deg, rgba(212, 255, 38, .16) 0 6px, rgba(6, 6, 7, .92) 6px 14px); animation: jam 1.6s steps(2) infinite; }
@keyframes jam { 50% { border-color: var(--mag); } }
.stairs__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 0; font-size: 12px; color: var(--dim); }
.k { display: inline-block; font-family: var(--f-mono); font-size: 10px; padding: 1px 6px; }
.k--ai { background: var(--acid); color: var(--acid-ink); }
.k--hu { border: 1px solid var(--mag); color: var(--mag); }
@media (max-width: 860px) {
  .flood { --h: 150vh; }
  .flood__ui { grid-template-columns: 1fr; grid-template-rows: auto; align-content: start; gap: 14px; }
  .flood .lead { display: none; }
  .flood .stage::before { background: rgba(6, 6, 7, .62); }
  .ctr b { font-size: 26px; }
  .ctr span { font-size: 11.5px; }
  .stairs ol { height: 84px; }
  .stairs__cap, .stairs__legend { display: none; }
}

/* ---------- 04 2026 ---------- */
.y2026 .stage { background: var(--void); }
.y__ui { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 22px 56px; min-height: 100svh; }
.tx-bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--acid); }
.tx-bar__dots { animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.erdos { margin: 0; align-self: center; min-width: 0; }
.erdos__frame { position: relative; aspect-ratio: 41 / 30; border: 1px solid var(--line); background: rgba(212, 255, 38, .02); }
.fx--inset { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
.erdos figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 10px; font-family: var(--f-mono); font-size: 11px; }
.erdos figcaption b { color: var(--acid); font-weight: 500; }
.erdos__note { flex-basis: 100%; color: var(--dim); font-size: 10px; }
.sw { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.sw--on { background: var(--acid); } .sw--off { border: 1px solid var(--dim); }
.bignums { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.bn { display: flex; flex-direction: column; gap: 8px; padding: clamp(14px, 2vw, 24px); background: var(--void); transition: background .15s, color .15s; }
.bn b { font-family: var(--f-disp); font-stretch: 125%; font-weight: 900; font-size: clamp(40px, 5.4vw, 92px); line-height: .9; color: var(--acid); }
.bn span { font-size: 14px; line-height: 1.5; max-width: 22em; }
.bn:hover { background: var(--acid); color: var(--acid-ink); }
.bn:hover b { color: var(--acid-ink); text-shadow: -3px 0 var(--cy), 3px 0 var(--mag); }
@media (max-width: 860px) {
  .y__ui { grid-template-columns: 1fr; }
  .bignums { grid-template-columns: 1fr; }
  .bn { gap: 4px; }
  .bn b { font-size: 40px; }
}

/* ---------- 05 knowledge object ---------- */
.object { --h: 210vh; }
.object .stage { background: radial-gradient(ellipse at 68% 50%, rgba(212, 255, 38, .06), transparent 60%), var(--void); }
.obj__ui { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 14px 40px; }
.stack { position: relative; align-self: center; justify-self: center; width: min(560px, 42vw, 64vh); aspect-ratio: 1; perspective: 1400px; --gap: calc(9px + var(--p, 0) * 6.2vmin); }
.stack__scene { position: absolute; inset: 0; }
.plate { position: absolute; left: 50%; top: 58%; width: 50%; aspect-ratio: 1; margin: 0; }
.plate::before {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--acid);
  background: linear-gradient(135deg, rgba(212, 255, 38, .16), rgba(6, 6, 7, .86) 60%);
  transform: translate(-50%, -50%) translateY(calc(var(--i) * -1 * var(--gap))) rotateX(60deg) rotateZ(-45deg);
  transition: background .2s, box-shadow .2s;
}
.plate--paper::before { background: url("../img/d-page.png") center / cover, var(--void); image-rendering: pixelated; }
.plate:hover::before, .plate:focus-visible::before, .plate.is-hot::before { background: rgba(212, 255, 38, .55); box-shadow: 0 0 0 2px var(--acid); }
.plate:focus-visible { outline: none; }
.plate__lbl {
  position: absolute; left: calc(36% + 22px); top: 0; transform: translateY(calc(-50% - var(--i) * var(--gap)));
  display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; white-space: nowrap; pointer-events: auto; text-align: left;
}
.plate__lbl em { font-family: var(--f-mono); font-style: normal; font-size: 10px; color: var(--acid); }
.plate__lbl b { font-size: clamp(13px, 1.15vw, 16px); }
.plate__lbl small { grid-column: 2; font-size: 11px; color: var(--dim); opacity: 0; transition: opacity .2s; }
.plate:hover .plate__lbl small, .plate.is-hot .plate__lbl small, .plate:focus-visible .plate__lbl small { opacity: 1; }
.plate:hover .plate__lbl b, .plate.is-hot .plate__lbl b { color: var(--acid); }
.stack__hint { position: absolute; left: 0; right: 0; bottom: -6px; margin: 0; text-align: center; font-family: var(--f-mono); font-size: 10px; color: var(--dim); }
.doors { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; }
.doors__lbl { display: flex; align-items: center; padding-right: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--acid); text-transform: uppercase; }
.doors button { flex: 1 1 90px; min-height: 58px; display: flex; align-items: flex-end; padding: 8px 10px; border: 1px solid var(--line); background: linear-gradient(0deg, rgba(212, 255, 38, .12), transparent 70%); font-size: 14px; transition: background .15s, color .15s; }
.doors button:hover { background: var(--acid); color: var(--acid-ink); }
@media (max-width: 860px) {
  .object { --h: 170vh; }
  .obj__ui { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto; align-content: start; }
  .object .lead { display: none; }
  .stack { width: min(300px, 62vw); }
  .plate__lbl small { display: none; }
  .doors button { flex-basis: 30%; min-height: 40px; font-size: 12px; }
  .doors__lbl { flex-basis: 100%; }
}

/* ---------- 06 play ---------- */
.play .stage { background: var(--void); }
.play .fx { opacity: .75; }
.play__ui { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 48px; align-items: center; min-height: 100svh; }
.play h2 { font-size: clamp(30px, 3.5vw, 56px); }
:lang(en) .play h2, :lang(en) .moat h2 { font-size: clamp(26px, 3vw, 50px); }
.hud { position: relative; border: 1px solid var(--acid); background: rgba(6, 6, 7, .93); box-shadow: 10px 10px 0 rgba(212, 255, 38, .14); font-family: var(--f-mono); font-size: 12px; max-width: 760px; justify-self: end; width: 100%; }
.hud__top { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: var(--acid); color: var(--acid-ink); font-size: 11px; letter-spacing: .06em; }
.hud__top em { font-style: normal; }
.hud__live { display: inline-flex; align-items: center; gap: 6px; }
.hud__live i { width: 8px; height: 8px; background: var(--mag); animation: blink 1s steps(2) infinite; }
.hud__title { margin: 0; padding: 14px 14px 4px; font-family: var(--f-sans); font-size: clamp(16px, 1.5vw, 21px); font-weight: 900; line-height: 1.35; }
:lang(en) .hud__title { font-family: var(--f-disp); font-stretch: 110%; font-weight: 800; }
.hud__turn { display: flex; align-items: center; gap: 8px; padding: 4px 14px 10px; color: var(--dim); }
.hud__turn b { font-size: 20px; color: var(--acid); font-weight: 500; }
.hud__pips { display: inline-flex; gap: 3px; margin-left: 8px; }
.hud__pips s { display: block; width: 12px; height: 8px; border: 1px solid var(--line); text-decoration: none; }
.hud__pips s.on { background: var(--acid); border-color: var(--acid); }
.hud__pips s.rw { background: var(--mag); border-color: var(--mag); }
.hud__team { list-style: none; margin: 0; padding: 4px 14px 10px; display: grid; gap: 6px; border-top: 1px solid var(--line-soft); }
.hud__team li { display: grid; grid-template-columns: 5.5em minmax(60px, 1fr) 9.5em; align-items: center; gap: 10px; }
:lang(en) .hud__team li { grid-template-columns: 7em minmax(60px, 1fr) 9em; }
.hud__team b { font-family: var(--f-sans); font-weight: 700; font-size: 13px; }
.hud__team i { height: 8px; border: 1px solid var(--line); position: relative; }
.hud__team i em { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v, 0) * 100%); background: var(--acid); transition: width .35s linear; }
.hud__team span { color: var(--dim); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud__report { margin: 0 14px 12px; padding: 10px 12px; background: var(--paper); color: var(--paper-ink); }
.hud__report.is-flash { animation: flash .5s ease 2; }
@keyframes flash { 50% { background: var(--acid); } }
.hud__rt { margin: 0 0 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.hud__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 3px 8px; border: 1px solid currentColor; font-size: 11px; }
.chip b { font-weight: 600; }
.chip--ok { background: var(--acid-ink); color: var(--acid); border-color: var(--acid-ink); }
.chip--warn { color: #c2185b; }
.hud__note { margin: 0; font-family: var(--f-sans); font-size: 13px; line-height: 1.55; }
.hud__actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; }
.hud__actions .btn { min-height: 38px; padding: 0 12px; font-size: 11px; }
.hud__disc { margin: 0; padding: 8px 14px; border-top: 1px solid var(--line-soft); color: var(--dim); font-size: 10.5px; }
.hud__disc b { color: var(--acid); font-weight: 500; }
@media (max-width: 960px) {
  .play__ui { grid-template-columns: 1fr; gap: 28px; }
  .hud { justify-self: stretch; }
  .hud__team li { grid-template-columns: 5em minmax(40px, 1fr) 7.5em; }
}

/* ---------- 07 roles ---------- */
.roles .stage { background: linear-gradient(180deg, var(--void), #0a0b08); }
.roles__ui { padding-bottom: clamp(40px, 8vh, 90px); }
.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: clamp(20px, 4vh, 40px); }
.rc {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: min(62vh, 560px); padding: 16px;
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(212, 255, 38, .07), rgba(6, 6, 7, 0) 45%);
  transition: transform .2s, background .2s, color .2s;
}
.rc__no { font-family: var(--f-mono); font-size: 11px; color: var(--dim); }
.rc__icon { width: clamp(56px, 5.2vw, 84px); aspect-ratio: 1; color: var(--acid); }
.rc__icon svg { width: 100%; height: 100%; fill: currentColor; shape-rendering: crispEdges; }
.rc__en { margin-top: auto; font-family: var(--f-disp); font-stretch: 62%; font-weight: 900; font-size: clamp(30px, 3.1vw, 50px); line-height: .88; color: var(--acid); letter-spacing: -.01em; }
.rc__name { font-size: clamp(22px, 2vw, 30px); line-height: 1.1; }
:lang(en) .rc__name { display: none; }
.rc__txt { font-size: 14px; line-height: 1.6; color: rgba(233, 235, 227, .78); }
.rc__stats { display: grid; grid-template-columns: auto 1fr; gap: 5px 8px; width: 100%; font-family: var(--f-mono); font-size: 10px; align-items: center; }
.rc__stats i { height: 7px; border: 1px solid currentColor; background: linear-gradient(90deg, currentColor calc(var(--v) * 20%), transparent 0); opacity: .85; }
.rc:hover, .rc:focus-visible { transform: translateY(-6px); background: var(--acid); color: var(--acid-ink); }
.rc:hover .rc__en, .rc:hover .rc__icon, .rc:focus-visible .rc__en, .rc:focus-visible .rc__icon, .rc:hover .rc__no, .rc:hover .rc__txt { color: var(--acid-ink); }
@media (max-width: 1000px) {
  .cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(230px, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .rc { scroll-snap-align: start; min-height: 420px; }
}

/* ---------- 08 stands ---------- */
.stands .stage { background: var(--void); }
.fx--dim { opacity: .55; }
.dm { position: absolute; z-index: 2; left: 0; right: 0; top: calc(var(--bar) + 64px); height: 50%; overflow: hidden; pointer-events: none; }
.dm span { position: absolute; left: 100%; white-space: nowrap; font-size: clamp(15px, 1.35vw, 21px); font-weight: 700; color: var(--paper); text-shadow: 0 1px 0 #000, 0 0 8px #000, 0 0 2px #000; will-change: transform; }
.dm span.hi { color: var(--acid); }
.dm span.me { background: var(--acid); color: var(--acid-ink); padding: 2px 10px; text-shadow: none; }
.dm span.star { color: var(--acid); font-size: 26px; }
.live-badge { position: absolute; z-index: 3; top: calc(var(--bar) + 18px); left: var(--gut); display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; background: var(--mag); color: #fff; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; }
.live-badge i { width: 7px; height: 7px; background: #fff; animation: blink 1s steps(2) infinite; }
.stands__ui { display: flex; align-items: flex-end; min-height: 100svh; }
.dm-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.dm-form input { flex: 1 1 200px; min-width: 0; height: 44px; padding: 0 12px; background: var(--void); border: 1px solid var(--line); color: var(--fg); font: inherit; font-size: 15px; border-radius: 0; }
.dm-form input:focus { outline: 2px solid var(--acid); outline-offset: -1px; }
.dm-note { font-family: var(--f-mono); font-size: 10.5px; color: var(--dim); margin: 0 0 14px; }

/* ---------- 09 rules ---------- */
.rules .stage { background: var(--void); }
.fx--dim2 { opacity: .58; }
.rules .stage::after, .start .stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 62% 52% at 50% 50%, rgba(6, 6, 7, .9) 0, rgba(6, 6, 7, .55) 55%, rgba(6, 6, 7, 0) 100%); }
.hazard { position: absolute; z-index: 2; left: 0; right: 0; height: 22px; background: repeating-linear-gradient(-45deg, var(--acid) 0 12px, transparent 12px 24px); }
.hazard--top { top: var(--bar); } .hazard--bot { bottom: 0; }
.rules__ui { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 100svh; }
.rules__ui h2 { max-width: 16em; }
.rules__ui .lead { margin-left: auto; margin-right: auto; }
.stamps { list-style: none; margin: 8px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: min(1080px, 100%); }
.stamps li { --r: -2deg; padding: 18px 14px 16px; border: 3px solid var(--acid); background: rgba(6, 6, 7, .88); color: var(--acid); transform: rotate(var(--r)); }
.stamps li:nth-child(2) { --r: 1.5deg; } .stamps li:nth-child(3) { --r: -1deg; }
.stamps em { display: block; margin-bottom: 6px; font-family: var(--f-mono); font-style: normal; font-size: 11px; }
.stamps b { display: block; font-size: clamp(20px, 2.3vw, 34px); line-height: 1.2; }
:lang(en) .stamps b { font-family: var(--f-disp); font-stretch: 115%; text-transform: uppercase; font-size: clamp(18px, 1.9vw, 28px); }
.stamps.is-in li { animation: slam .55s cubic-bezier(.2, 1.5, .45, 1) both; }
.stamps.is-in li:nth-child(2) { animation-delay: .18s; } .stamps.is-in li:nth-child(3) { animation-delay: .36s; }
@keyframes slam { from { opacity: 0; transform: scale(1.7) rotate(-9deg); } to { opacity: 1; transform: scale(1) rotate(var(--r)); } }
.rules__q { margin: 0 auto 16px; max-width: 44em; }
.rules__q p { margin: 0; font-family: var(--f-serif); font-size: clamp(17px, 1.55vw, 23px); line-height: 1.6; }
.rules__q cite { display: block; margin-top: 6px; font-family: var(--f-mono); font-style: normal; font-size: 11px; color: var(--acid); }
.hot--center { justify-content: center; }
@media (max-width: 760px) { .stamps { grid-template-columns: 1fr; } }

/* ---------- 10 moat ---------- */
.moat .stage { background: var(--void); }
.moat .fx { opacity: .8; }
.moat__ui { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 48px; align-items: center; min-height: 100svh; }
.swap { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); background: rgba(6, 6, 7, .88); font-family: var(--f-mono); font-size: 12px; max-width: 420px; }
.swap__row { margin: 0 0 6px; color: var(--dim); }
.swap__row b { color: var(--acid); font-weight: 500; }
#swap-model { display: inline-block; min-width: 9ch; }
#swap-model.glitch { animation: gl .45s steps(3) 1; }
@keyframes gl { 33% { transform: translateX(-3px); text-shadow: 3px 0 var(--mag); } 66% { transform: translateX(3px); text-shadow: -3px 0 var(--cy); } }
.swap .btn { margin-top: 6px; }
.swap__toast { margin: 8px 0 0; min-height: 1.4em; color: var(--acid); font-size: 11px; }
.scard { justify-self: center; width: min(380px, 100%); }
.scard__flip { position: relative; display: block; width: 100%; aspect-ratio: 7 / 8; perspective: 1400px; }
.scard__face {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; padding: 20px; text-align: left;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .7s cubic-bezier(.3, .8, .2, 1);
  background: var(--paper); color: var(--paper-ink); box-shadow: 12px 12px 0 rgba(212, 255, 38, .22);
}
.scard__back { transform: rotateY(180deg); background: var(--acid); color: var(--acid-ink); }
.scard.is-flipped .scard__front { transform: rotateY(-180deg); }
.scard.is-flipped .scard__back { transform: rotateY(0); }
.scard__top { display: flex; gap: 14px; align-items: center; }
.scard__top > span:last-child { display: flex; flex-direction: column; }
.scard__av { flex: 0 0 64px; height: 64px; background: var(--acid-ink); color: var(--acid); display: grid; place-items: center; }
.scard__av svg { width: 44px; height: 44px; fill: currentColor; shape-rendering: crispEdges; }
.scard em { font-family: var(--f-mono); font-style: normal; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.scard__top b { font-size: 20px; line-height: 1.2; }
.scard__top small { font-size: 12px; }
.scard__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(11, 11, 11, .2); border: 1px solid rgba(11, 11, 11, .2); }
.scard__stats > span { display: flex; flex-direction: column; background: var(--paper); padding: 8px 10px; }
.scard__stats b { font-family: var(--f-disp); font-stretch: 115%; font-weight: 900; font-size: 24px; line-height: 1; }
.scard__stats small { font-size: 11px; }
.scard__trophies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.scard__trophies > span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border: 1px solid rgba(11, 11, 11, .2); font-size: 10.5px; line-height: 1.2; text-align: center; }
.scard__trophies svg { width: 26px; height: 26px; fill: currentColor; shape-rendering: crispEdges; }
.scard__hint { margin-top: auto; font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; opacity: .7; }
.tl { display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--acid-ink); margin-left: 6px; }
.tl > span { display: flex; flex-direction: column; padding: 8px 0 8px 14px; position: relative; font-size: 14px; line-height: 1.45; }
.tl > span::before { content: ""; position: absolute; left: -7px; top: 13px; width: 12px; height: 12px; background: var(--acid-ink); }
.tl b { font-family: var(--f-mono); font-size: 11px; }
.scard__cap { margin: 18px 0 0; text-align: center; font-family: var(--f-mono); font-size: 10px; color: var(--dim); }
@media (max-width: 960px) { .moat__ui { grid-template-columns: 1fr; } }

/* ---------- 11 kit ---------- */
.kit .stage { background: var(--void); }
.kit__ui { padding-bottom: clamp(40px, 8vh, 90px); }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin-top: clamp(20px, 4vh, 40px); background: var(--line); border: 1px solid var(--line); }
.tile { display: flex; flex-direction: column; gap: 10px; min-height: 280px; padding: 18px; background: var(--void); }
.tile--journal { background: linear-gradient(160deg, rgba(212, 255, 38, .1), var(--void) 55%); }
.tile__st { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; color: var(--dim); text-transform: uppercase; }
.dot { width: 8px; height: 8px; background: var(--acid); }
.dot--live { background: var(--mag); animation: blink 1.1s steps(2) infinite; }
.tile h3 { display: flex; flex-direction: column; gap: 2px; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.15; }
:lang(en) .tile h3 { font-family: var(--f-disp); font-stretch: 112%; text-transform: uppercase; font-size: clamp(18px, 1.5vw, 22px); }
.tile h3 em { font-family: var(--f-mono); font-style: normal; font-weight: 400; font-size: 10px; letter-spacing: .12em; color: var(--acid); }
.tile p { margin: 0; font-size: 14px; line-height: 1.65; color: rgba(233, 235, 227, .82); }
.tile__go { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.tile__go .hs { font-size: 13px; min-height: 36px; }
.tile__go .hs > i { flex-basis: 34px; }
.road { margin-top: 28px; }
.road__t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 0 0 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--acid); text-transform: uppercase; }
.road__t small { color: var(--dim); letter-spacing: .04em; text-transform: none; }
.road ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--line); }
.road li { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px 12px 0 0; }
.road li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--void); border: 2px solid var(--acid); }
.road li.is-now::before { background: var(--acid); }
.road em { font-family: var(--f-mono); font-style: normal; font-size: 11px; color: var(--acid); }
.road b { font-size: 16px; line-height: 1.3; }
.road span { font-size: 13px; line-height: 1.5; color: var(--dim); }
.road i { position: absolute; top: 12px; right: 12px; font-family: var(--f-mono); font-style: normal; font-size: 9px; background: var(--acid); color: var(--acid-ink); padding: 1px 5px; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile { min-height: 220px; } }
@media (max-width: 860px) { .road ol { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--line); } .road li { padding: 0 0 14px 16px; } .road li::before { top: 4px; left: -7px; } .road i { position: static; align-self: flex-start; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- 12 theses ---------- */
.theses .stage { background: var(--void); }
.theses__ui { padding-bottom: clamp(40px, 8vh, 90px); }
.theses h2 { font-family: var(--f-serif); font-size: clamp(44px, 7vw, 120px); }
:lang(en) .theses h2 { font-family: var(--f-disp); }
.th { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.th li { border-top: 1px solid var(--line-soft); }
.th button { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto; gap: 12px; align-items: baseline; width: 100%; padding: 16px 0; }
.th em { font-family: var(--f-serif); font-style: normal; font-weight: 900; font-size: clamp(18px, 1.6vw, 24px); color: var(--acid); }
.th b { font-size: clamp(16px, 1.35vw, 20px); line-height: 1.45; }
.th i { font-style: normal; font-family: var(--f-mono); color: var(--acid); transition: transform .2s; }
.th button:hover b { color: var(--acid); }
.th button[aria-expanded="true"] i { transform: rotate(45deg); }
.th__full { margin: -4px 0 16px 3.4em; padding-left: 14px; border-left: 2px solid var(--acid); font-size: 15px; line-height: 1.85; color: rgba(233, 235, 227, .88); }
@media (max-width: 860px) { .th { grid-template-columns: 1fr; } }

/* ---------- finale ---------- */
.start .stage { background: var(--void); }
.start__ui { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 100svh; }
.start h2 { font-size: clamp(44px, 8.2vw, 142px); line-height: 1; text-shadow: 0 0 30px rgba(6, 6, 7, .9); }
:lang(en) .start h2 { font-size: clamp(38px, 6.4vw, 110px); }
.start .lead { margin-left: auto; margin-right: auto; background: rgba(6, 6, 7, .8); padding: 4px 10px; }
.start__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 2; background: var(--void); border-top: 1px solid var(--line); }
.foot__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr .45fr 1.2fr; border-bottom: 1px solid var(--line); }
.foot__cell { display: flex; flex-direction: column; gap: 8px; padding: 26px var(--gut); border-right: 1px solid var(--line); min-width: 0; }
.foot__cell:last-child { border-right: 0; }
.foot__quote p.serif { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.55; margin: 0; }
.foot__by { font-family: var(--f-mono); font-size: 10.5px; color: var(--dim); margin: 0; }
.foot__h { margin: 0 0 4px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.foot__h em { font-style: normal; color: var(--acid); }
.foot__cell a { font-family: var(--f-mono); font-size: 12px; color: var(--acid); text-decoration: none; }
.foot__cell a i { font-style: normal; color: var(--dim); }
.foot__cell a:hover { color: var(--paper); }
.foot__small { margin: 0; font-size: 11px; line-height: 1.6; color: var(--dim); }
.foot__stripe { background: repeating-linear-gradient(-45deg, var(--acid) 0 16px, transparent 16px 32px); min-height: 120px; }
.foot__word { padding: 16px var(--gut) 0; font-family: var(--f-disp); font-stretch: 62%; font-weight: 900; font-size: clamp(64px, 17.4vw, 330px); line-height: .78; letter-spacing: -.02em; color: var(--acid); white-space: nowrap; overflow: hidden; }
@media (max-width: 960px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__quote { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .foot__stripe { display: none; }
  .foot__cell:nth-child(3) { border-right: 0; }
  .foot__cell:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
}

/* ---------- dossier panel ---------- */
.dz { position: fixed; inset: 0; z-index: 90; }
.dz__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .66); }
.dz__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(660px, 100%); display: flex; flex-direction: column;
  background: var(--void); border-left: 1px solid var(--acid); animation: dzin .35s cubic-bezier(.2, .8, .2, 1);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); outline: none;
}
@keyframes dzin { from { transform: translateX(48px); opacity: 0; } }
.dz__head { display: flex; align-items: center; gap: 14px; min-height: 56px; padding-left: 20px; background: var(--acid); color: var(--acid-ink); font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.dz__code { font-weight: 600; }
.dz__x { margin-left: auto; width: 56px; align-self: stretch; font-size: 28px; line-height: 1; background: var(--acid-ink); color: var(--acid); }
.dz__x:hover { background: var(--void); color: var(--paper); }
.dz__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 26px clamp(18px, 3vw, 30px) 36px; }
.dz__body h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; margin: 0 0 14px; }
:lang(en) .dz__body h3 { font-family: var(--f-disp); font-stretch: 115%; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.02; }
.dz__lead { font-size: 17px; font-weight: 700; line-height: 1.6; }
.dz__body p { line-height: 1.85; color: rgba(233, 235, 227, .9); }
:lang(en) .dz__body p { line-height: 1.65; }
.dz__fig { margin: 0 0 18px; }
.dz__fig img { width: 100%; height: auto; image-rendering: pixelated; border: 1px solid var(--line); background: var(--void); }
.dz__fig figcaption { margin-top: 6px; font-family: var(--f-mono); font-size: 10px; line-height: 1.5; color: var(--dim); }
.dz__figs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dz__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 16px 0 20px; background: var(--line); border: 1px solid var(--line); }
.dz__stats > div { background: var(--void); padding: 12px 14px; }
.dz__stats b { display: block; font-family: var(--f-disp); font-stretch: 112%; font-weight: 900; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; color: var(--acid); white-space: nowrap; }
.dz__stats span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: rgba(233, 235, 227, .78); }
.dz__list { margin: 12px 0 20px; }
.dz__list > div { display: grid; grid-template-columns: minmax(7em, 30%) 1fr; gap: 14px; padding: 11px 8px; border-top: 1px solid var(--line-soft); transition: background .3s; }
.dz__list > div:last-child { border-bottom: 1px solid var(--line-soft); }
.dz__list dt { font-weight: 900; color: var(--acid); line-height: 1.5; }
.dz__list dd { margin: 0; line-height: 1.7; }
.dz__list > div.is-focus { background: rgba(212, 255, 38, .14); }
.dz__q { margin: 18px 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--acid); }
.dz__q p { margin: 0; font-family: var(--f-serif); font-size: 18px; line-height: 1.75; color: var(--fg); }
.dz__q cite { display: block; margin-top: 8px; font-family: var(--f-mono); font-size: 10.5px; font-style: normal; color: var(--dim); }
.dz__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.dz__tags span { padding: 4px 9px; border: 1px solid var(--line); font-size: 13px; }
.dz__note { font-family: var(--f-mono); font-size: 11px; color: var(--dim); }
.dz__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.dz__src { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); }
.dz__src h4 { margin: 0 0 10px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--acid); }
.dz__src ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dz__src li { display: grid; grid-template-columns: 2.6em 1fr; gap: 6px; font-size: 13px; line-height: 1.5; }
.dz__src li > span { font-family: var(--f-mono); font-size: 10px; color: var(--acid); padding-top: 2px; }
.dz__src a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; word-break: break-word; }
.dz__src a:hover { color: var(--acid); }
.dz__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px clamp(12px, 2vw, 20px); border-top: 1px solid var(--line-soft); }
.dz__foot .btn { min-height: 38px; font-size: 11px; }
.dz__count { font-family: var(--f-mono); font-size: 11px; color: var(--dim); }
.mini-stairs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 4px; height: 120px; margin: 8px 0 18px; }
.mini-stairs span { display: flex; align-items: flex-end; padding: 6px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); }
.mini-stairs span:nth-child(-n+2) { background: var(--acid); color: var(--acid-ink); }
.mini-stairs span:nth-child(n+3) { background: repeating-linear-gradient(-45deg, rgba(212, 255, 38, .16) 0 5px, transparent 5px 11px); }
body.dz-open { overflow: hidden; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .rv.rv-wait { opacity: 1; transform: none; }
}
/* links into the topic network (v0.7) */
.hs--net > i { background: var(--acid); color: var(--acid-ink); border-right: 1px solid var(--acid); font-style: normal; }
.hs--net:hover > i { background: var(--paper); }
/* v0.8: question links into the question network */
.hs--q > i { font-family: var(--f-mono); font-weight: 700; }
.hs--q > span { font-weight: 600; }
/* v0.8: the English nav labels are longer; drop the [↗] markers before they overflow (the menu takes over up to 1420px since the Submit link was added) */
@media (max-width: 1600px) { html[lang="en"] .bar__nav a i { display: none; } }
@media (max-width: 1180px) { .bar__nav a i { display: none; } }
@media (min-width: 961px) and (max-width: 1420px) {
  html[lang="en"] .bar__nav, html[lang="en"] .bar__brand span { display: none; }
  html[lang="en"] .bar__brand { flex: 1; border-right: 0; }
  html[lang="en"] .bar__menu { display: flex; }
}

/* ======================================================================
   v0.8 · “科学的复兴 / The Renaissance of Science”
   ====================================================================== */
/* hero: the English title wraps to two lines (THE RENAISSANCE / OF SCIENCE) */
/* English hero: two lines, THE RENAISSANCE / OF SCIENCE (forced break in hero.a). At width 100 the first line is
   ~10em, so 4.2vw clears the shattering page at 1440×900 and 1280×800, and 8.7vw fits 390×844. */
:lang(en) .hero__title { font-stretch: 100%; font-size: clamp(32px, 4.2vw, 84px); line-height: .9; }
@media (max-width: 860px) { :lang(en) .hero__title { font-size: min(8.7vw, 56px); } }
:lang(en) .hero__b { white-space: normal; max-width: none; font-size: .62em; line-height: 1; }
:lang(en) .hero__lede { text-transform: none; font-stretch: 108%; letter-spacing: 0; max-width: 34em; font-size: clamp(17px, 1.6vw, 24px); }

/* 01 joy: the press pattern mirrored (engraving on the left, copy on the right) */
.fx--left { left: 0; right: auto; -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 30%); mask-image: linear-gradient(270deg, transparent 0, #000 30%); }
.joy .press__ui { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
.joy .press__ui > .copy { grid-column: 2; grid-row: 1; }
.press__year--word { left: auto; right: -.05em; font-size: clamp(100px, 14.5vw, 250px); }
.slip {
  grid-column: 1; grid-row: 1; justify-self: end; align-self: end; position: relative; z-index: 2; margin: 0 2vw 7vh 0; width: min(300px, 23vw);
  display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 12px; text-align: left;
  background: var(--paper); color: var(--paper-ink); transform: rotate(2.5deg); box-shadow: 10px 10px 0 rgba(212, 255, 38, .18); transition: transform .25s;
}
.slip:hover, .slip:focus-visible { transform: rotate(0) translateY(-4px); }
.slip__k { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; opacity: .7; }
.slip__gr { font-family: "Times New Roman", "Noto Serif", "DejaVu Serif", Georgia, serif; font-style: italic; font-size: 15px; line-height: 1.45; }
.slip__q { font-family: var(--f-serif); font-weight: 900; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; }
:lang(en) .slip__q { font-family: var(--f-disp); font-stretch: 112%; text-transform: uppercase; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.12; }
.slip__by { font-size: 12px; line-height: 1.4; }
.slip__hint, .badge__hint { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .03em; }
.slip__hint { margin-top: 2px; padding-top: 8px; border-top: 1px solid rgba(11, 11, 11, .2); }
.slip__hint i, .badge__hint i { flex: 0 0 20px; height: 20px; display: grid; place-items: center; font-style: normal; background: var(--acid-ink); color: var(--acid); }

/* 02 line: a staff pass and a conveyor belt of research chores */
.badge {
  justify-self: start; align-self: end; position: relative; z-index: 2; margin: 0 0 12vh 3vw; width: min(260px, 20vw);
  display: flex; flex-direction: column; gap: 10px; padding: 26px 14px 12px; text-align: left;
  background: var(--acid); color: var(--acid-ink); transform: rotate(-4deg); box-shadow: 10px 10px 0 rgba(212, 255, 38, .14); transition: transform .25s;
}
.badge::before { content: ""; position: absolute; top: 9px; left: 50%; width: 40px; height: 7px; margin-left: -20px; border-radius: 4px; background: var(--void); }
.badge:hover, .badge:focus-visible { transform: rotate(0) translateY(-4px); }
.badge__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; }
.badge__top em { font-style: normal; opacity: .7; }
.badge__body { display: flex; align-items: center; gap: 12px; }
.badge__ph { flex: 0 0 60px; height: 70px; display: grid; place-items: center; background: var(--acid-ink); color: var(--acid); }
.badge__ph svg { width: 36px; height: 36px; fill: currentColor; shape-rendering: crispEdges; }
.badge__id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.badge__id b { font-size: clamp(22px, 2vw, 30px); line-height: 1.05; font-weight: 900; }
:lang(en) .badge__id b { font-family: var(--f-disp); font-stretch: 118%; font-weight: 900; font-size: clamp(17px, 1.5vw, 22px); }
.badge__en { font-family: var(--f-disp); font-stretch: 118%; font-weight: 800; font-size: 12px; letter-spacing: .06em; }
:lang(en) .badge__en { display: none; }
.badge__since { font-family: var(--f-mono); font-size: 11px; }
.badge__bar { height: 24px; background: repeating-linear-gradient(90deg, var(--acid-ink) 0 2px, transparent 2px 4px, var(--acid-ink) 4px 5px, transparent 5px 8px, var(--acid-ink) 8px 11px, transparent 11px 13px, var(--acid-ink) 13px 14px, transparent 14px 17px); }
.belt { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 42px; overflow: hidden; border-top: 1px solid var(--line); background: rgba(6, 6, 7, .92); }
.belt::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: repeating-linear-gradient(90deg, rgba(212, 255, 38, .5) 0 10px, transparent 10px 20px); animation: belt-roll .5s linear infinite; }
.belt__track { display: flex; width: max-content; height: 37px; animation: belt 80s linear infinite; }
.belt__run { display: flex; align-items: center; gap: 8px; padding-right: 8px; }
.belt__item { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border: 1px solid var(--line); background: rgba(212, 255, 38, .06); font-size: 12px; white-space: nowrap; color: rgba(233, 235, 227, .86); }
.belt__item em { font-family: var(--f-mono); font-style: normal; font-size: 9.5px; color: var(--acid); }
.belt__item:nth-child(12n) { background: var(--acid); color: var(--acid-ink); border-color: var(--acid); }
.belt__item:nth-child(12n) em { color: var(--acid-ink); }
@keyframes belt { to { transform: translateX(-50%); } }
@keyframes belt-roll { to { background-position: -20px 0; } }
.line .caption--br { bottom: 54px; }
.line .press__ui { padding-bottom: 72px; }

@media (max-width: 860px) {
  .fx--left { width: 100%; height: 48%; -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 40%); mask-image: linear-gradient(0deg, transparent 0, #000 40%); }
  .joy .press__ui { grid-template-columns: 1fr; }
  .joy .press__ui > .copy { grid-column: auto; grid-row: auto; }
  .slip, .badge { display: none; }
  .press__year--word { font-size: clamp(80px, 24vw, 200px); }
  .belt { height: 34px; }
  .belt__track { height: 29px; }
  .belt__item { height: 21px; font-size: 11px; padding: 0 7px; }
  .line .caption--br { bottom: 44px; }
}

/* footer: AI disclosure */
.foot__ai { padding: 18px var(--gut); border-bottom: 1px solid var(--line); }
.foot__ai p { margin: 0; max-width: 78em; font-size: 12.5px; line-height: 1.8; color: rgba(233, 235, 227, .8); }
.foot__ai b { color: var(--acid); font-weight: 700; }

/* v0.8 layout fixes (visual pass 1) */
@media (min-width: 861px) {
  /* the five-character title and the longer lede must clear the shattering page on the right */
  .hero__copy { max-width: min(44vw, 920px); }
  .hero__title { font-size: clamp(64px, 8.6vw, 164px); }
}
@media (min-width: 961px) { .foot__grid { grid-template-columns: 1.55fr 1.15fr 1fr .45fr 1.2fr; } }
.press__year--word { right: var(--gut-r); bottom: 30px; font-size: clamp(70px, 8.2vw, 150px); line-height: .8; }
.caption--br { background: rgba(6, 6, 7, .86); padding: 3px 8px; }
.ctr b[data-fmt="a4s"] { font-size: clamp(22px, 2.5vw, 40px); line-height: 1.3; }
.rail a b { padding: 0 3px; background: rgba(6, 6, 7, .72); }

/* English: CJK fonts draw ‘ ’ “ ” as full-width glyphs (“ school ”, don’ t). Take those few characters from a
   local Latin font; everything else still comes from the stacks below. */
@font-face { font-family: "RS Latin Punct"; src: local("Helvetica Neue"), local("HelveticaNeue"), local("Helvetica"), local("Arial"), local("ArialMT"), local("Segoe UI"), local("Roboto"), local("Roboto-Regular"), local("Liberation Sans"), local("LiberationSans"), local("DejaVu Sans"), local("DejaVuSans"); unicode-range: U+2018-201F, U+2026, U+2032-2033; }
@font-face { font-family: "RS Latin Punct Serif"; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Times"), local("Georgia"), local("Liberation Serif"), local("LiberationSerif"), local("DejaVu Serif"), local("DejaVuSerif"); unicode-range: U+2018-201F, U+2026, U+2032-2033; }
:lang(en) {
  --f-sans: "RS Latin Punct", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --f-serif: "RS Latin Punct Serif", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}
/* English flood: longer heading and copy must clear the five stairs inside the pinned 100vh stage */
@media (min-width: 861px) {
  :lang(en) .flood h2 { font-size: clamp(24px, 2.6vw, 44px); }
  :lang(en) .flood .lead { font-size: 15px; line-height: 1.55; }
  :lang(en) .flood .stairs ol { height: clamp(80px, 13vh, 130px); }
}
:lang(en) .ro--2 { top: 47%; }
.st { min-height: 54px; }
@media (min-width: 861px) and (max-height: 860px) {
  :lang(en) .flood .stairs__cap { display: none; }
  :lang(en) .flood .stairs ol { height: 96px; }
}
@media (max-width: 860px) {
  /* 04: six buttons no longer fit as an overlay; let them follow the stats */
  .city .hot--br { position: static; margin-top: 16px; }
  .line .press__ui { padding-bottom: 132px; }
  .joy .press__ui, .press .press__ui { padding-bottom: 72px; }
}
@media (max-width: 860px) {
  /* room for the conveyor belt and a caption of up to five lines (English) */
  .press.line .press__ui { padding-bottom: 150px; }
}
/* English tags already say THE STANDS / SOCIAL LAYER / HOW: drop the decorative duplicate */
:lang(en) .tag__dup { display: none; }
@media (max-width: 860px) {
  .st { padding: 6px; }
  :lang(en) .st b { font-size: 11px; letter-spacing: -.01em; }
}
/* 05 on phones: the pinned stage is exactly one screen tall, so the copy, buttons, counters and stairs must fit in it */
@media (max-width: 860px) {
  .flood .ui { padding-top: calc(var(--bar) + 18px); padding-bottom: 16px; }
  .flood h2 { margin-bottom: .25em; }
  .flood .hot { gap: 6px; }
  .flood .hot .hs { min-height: 34px; font-size: 13px; }
  .flood .hot .hs > i { flex-basis: 34px; font-size: 14px; }
  .flood .hot .hs > span { padding: 5px 10px; }
  :lang(en) .flood h2 { font-size: 23px; }
  .flood .ctr { padding: 9px 12px; }
  .flood .ctr b { font-size: 24px; }
}
:lang(en) .hero__meta b { font-family: var(--f-disp); font-stretch: 118%; font-weight: 800; font-size: 13px; letter-spacing: .14em; }
:lang(en) .th em { font-family: var(--f-disp); font-stretch: 112%; font-size: clamp(15px, 1.3vw, 20px); }

/* ==========================================================================
   v0.8.1 排版修补（2026-10-03）
   ========================================================================== */
/* 1. 热点按钮不再用嵌套的 flex。有的浏览器量“内层是 flex 的按钮”有多宽时会漏掉内层的左右内边距，
      按钮被挤窄，“六扇门”竖成三行。改成普通的块：左边的小方块绝对定位，文字留出左内边距，
      宽度直接由文字加内边距算出；一行放不下就整颗换行，不再压缩。 */
.hot { align-items: flex-start; }
.hs { position: relative; display: inline-block; flex: 0 0 auto; max-width: 100%; padding: 10px 14px 10px 50px; text-align: left; vertical-align: top; }
.hs > i { position: absolute; left: 0; top: 0; bottom: 0; width: 38px; }
.hs > span { display: inline; padding: 0; }
.tile__go .hs { padding: 8px 12px 8px 46px; }
.tile__go .hs > i { width: 34px; }
@media (max-width: 860px) {
  .flood .hot .hs { padding: 7px 10px 7px 44px; }
  .flood .hot .hs > i { width: 34px; }
  .flood .hot .hs > span { padding: 0; }
}

/* 2. 第 10 屏的七层：层还叠在一起时标签会摞成一团，等层张开到放得下再显出来 */
.plate__lbl { opacity: clamp(0, calc((var(--p, 1) - .22) * 7), 1); }

/* 3. 矮屏（笔记本常见的 600–780 像素高）：固定舞台的第 5、10 屏放不下，下面的台阶和“六扇门”会压住按钮。
      收紧上边距、标题和按钮，让整屏装得下 */
@media (min-width: 861px) and (max-height: 800px) {
  .flood .ui, .object .ui { padding-top: calc(var(--bar) + 16px); padding-bottom: 16px; }
  .flood h2, .object h2 { font-size: clamp(30px, min(4.6vw, 6.8vh), 64px); margin: .18em 0 .3em; }
  :lang(en) .flood h2, :lang(en) .object h2 { font-size: clamp(24px, min(3.7vw, 5.6vh), 56px); }
  .flood .lead, .object .lead { font-size: 15px; line-height: 1.7; margin-bottom: .8em; }
  :lang(en) .flood .lead, :lang(en) .object .lead { font-size: 14.5px; line-height: 1.55; }
  .flood .hot, .object .hot { gap: 6px; }
  .flood .hot .hs, .object .hot .hs { min-height: 34px; padding-top: 7px; padding-bottom: 7px; }
  .flood__ui { gap: 14px 48px; }
  .stairs ol { height: clamp(64px, 12vh, 110px); }
  .stairs__cap { margin-bottom: 4px; }
  .stairs__legend { margin-top: 4px; }
  .obj__ui { gap: 10px 40px; }
  .doors button { min-height: 44px; padding: 6px 10px; }
}
@media (min-width: 861px) and (max-height: 680px) {
  .stairs__cap { display: none; }
  .flood .lead, .object .lead { font-size: 14px; line-height: 1.62; }
}
/* 第 10 屏：层张开的幅度也看屏幕高度，矮屏上最上面一层不再钻到顶栏底下。
   不用 min()：Chrome 算 calc(-50% - 1 * calc(9px + … min(…))) 会把正负号算错，第二层的标签会掉到最底下 */
.stack { --gap: calc(9px + var(--p, 1) * 6.2vmin); }
@media (min-aspect-ratio: 4/5) { .stack { --gap: calc(9px + var(--p, 1) * 5vh); } }

/* 4. 矮屏的首屏：大标题、导语按高度缩放，左下角的“宣言 v0.8 已发布”卡片收紧，导语不再被卡片盖住 */
@media (min-width: 861px) and (max-height: 800px) {
  .hero__copy { top: calc(var(--bar) + 3vh); }
  .hero__title { font-size: clamp(52px, min(8.6vw, 19vh), 164px); }
  :lang(en) .hero__title { font-size: clamp(32px, min(4.2vw, 8.4vh), 84px); }
  .hero__lede { font-size: clamp(16px, min(1.9vw, 3.3vh), 28px); }
  :lang(en) .hero__lede { font-size: clamp(15px, min(1.6vw, 3vh), 24px); }
  .hero__card { padding-top: 14px; }
  .hero__card h2 { font-size: clamp(20px, min(2.1vw, 4vh), 32px); }
  .hero__card p { font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
  :lang(en) .hero__card p { font-size: 13.5px; line-height: 1.5; }
  .hero__btns .btn { min-height: 46px; }
  .ro--2, .ro--4 { display: none; }
}
@media (min-width: 861px) and (max-height: 600px) {
  .hero__card p { font-size: 13px; line-height: 1.45; }
  :lang(en) .hero__card p { font-size: 13px; line-height: 1.42; }
}

/* 5. 矮屏的第 4 屏：右上角的三个数字收紧，右下角的按钮不再顶到数字上 */
@media (min-width: 861px) and (max-height: 800px) {
  .stats--col { gap: 6px; }
  .stat { padding: 8px 12px; }
  .stat b { font-size: clamp(22px, min(2.2vw, 4.4vh), 34px); }
  .stat span { font-size: 12.5px; line-height: 1.4; }
  .hot--br { bottom: 16px; }
}

/* 6. 矮屏的第 5 屏：五级台阶挪到右栏的数字下面，左栏只放标题、导语和按钮，互不相压 */
@media (min-width: 1100px) and (max-height: 800px) {
  .flood__ui { grid-template-rows: minmax(0, 1fr) auto; }
  .flood__ui > .copy { grid-column: 1; grid-row: 1 / 3; align-self: center; }
  .flood__ui > .counters { grid-column: 2; grid-row: 1; align-self: end; }
  .flood__ui > .stairs { grid-column: 2; grid-row: 2; }
  .flood .st { padding: 6px 8px; }
  .flood .st b { font-size: 14px; }
  .flood .ctr { padding: 10px 14px; }
  .flood .ctr b { font-size: clamp(24px, min(2.6vw, 5.2vh), 44px); }
}
@media (min-width: 861px) and (max-width: 1099px) and (max-height: 800px) {
  .flood .lead { display: none; }
}

/* 7. 手机上的第 10 屏：按钮紧凑一些，层张开的幅度小一些，整屏才装得下标题、按钮、七层和六扇门 */
@media (max-width: 860px) {
  .object .hot { gap: 6px; }
  .object .hot .hs { min-height: 34px; font-size: 13px; padding: 7px 10px 7px 44px; }
  .object .hot .hs > i { width: 34px; font-size: 14px; }
  .obj__ui { gap: 18px; }
  .stack { --gap: calc(9px + var(--p, 1) * 3.6vw); }
  .plate__lbl { opacity: clamp(0, calc((var(--p, 1) - .38) * 6), 1); }
}
@media (max-width: 860px) and (min-aspect-ratio: 5/6) { .stack { --gap: calc(9px + var(--p, 1) * 3vh); } }
/* 矮的手机屏（比如 iPhone SE 的浏览器窗口）连这样也放不下，这一屏就不固定了，跟着页面滚动 */
@media (max-width: 860px) and (max-height: 760px) {
  .object[data-pin] { height: auto; }
  .object[data-pin] > .stage { position: relative; height: auto; min-height: 100vh; min-height: 100svh; }
  .object .ui { height: auto; }
  .obj__ui { grid-template-rows: auto auto auto; }
}
/* 矮的手机屏：首屏的大标题和左下角卡片也收紧，导语不被卡片盖住；第 5 屏同样改成跟着页面滚动 */
@media (max-width: 860px) and (max-height: 700px) {
  .hero__title { font-size: 52px; }
  :lang(en) .hero__title { font-size: min(7.6vw, 44px); }
  .hero__lede { font-size: 16px; }
  .hero__card { padding-top: 14px; }
  .hero__card h2 { font-size: 20px; }
  .hero__card p { font-size: 13.5px; line-height: 1.55; margin-bottom: 12px; }
  :lang(en) .hero__card p { font-size: 13px; line-height: 1.5; }
  .hero__btns .btn { min-height: 44px; }
}
@media (max-width: 860px) and (max-height: 760px) {
  .flood[data-pin] { height: auto; }
  .flood[data-pin] > .stage { position: relative; height: auto; min-height: 100vh; min-height: 100svh; }
  .flood .ui { height: auto; }
}
@media (max-width: 860px) and (max-height: 820px) {
  /* 英文版卡片的摘要有十来行，矮手机屏放不下：只留标题和按钮，摘要在宣言正文里 */
  :lang(en) .hero__card p { display: none; }
  :lang(en) .hero__card h2 { margin-bottom: 12px; }
  :lang(en) .hero__btns .btn { font-size: 11px; padding: 0 10px; }
}
/* 8. 顶栏：窄屏上菜单按钮曾被挤出屏幕（英文的“START A RUN”较长）。菜单按钮不缩，其余收紧 */
.bar__menu { flex: 0 0 var(--bar); }
.bar__brand { min-width: 0; overflow: hidden; }
@media (max-width: 440px) {
  html[lang="en"] .bar__brand { padding: 0 12px; }
  html[lang="en"] .bar__lang { padding: 0 10px; }
  html[lang="en"] .bar__cta { padding: 0 12px; gap: 6px; letter-spacing: .03em; }
  html[lang="en"] .bar__cta b { display: none; }
}
@media (max-width: 359px) {
  .bar__brand { padding: 0 12px; }
  .bar__lang { padding: 0 10px; }
  .bar__cta { padding: 0 12px; gap: 6px; letter-spacing: .03em; }
  .bar__cta b { display: none; }
}
@media (max-width: 350px) { html[lang="en"] .bar__brand b { display: none; } }
