/* 1011 · 一周年 —— 版画 / 木刻风格 */
:root {
  --ink: #111111;
  --char: #1d1d1f;
  --char-2: #151517;
  --red: #b3241c;
  --wine: #561f20;
  --paper: #f1efea;
  --paper-2: #e7e3db;
  --white: #fbfaf7;
  --blue: #5db4e6;
  --grey: #8a8a8a;
  --gutter: clamp(16px, 6vw, 96px);
  --display: 'Cinzel', 'Times New Roman', serif;
  --cn-display: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --label: 'Rubik', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --screen: 100vh;
  color-scheme: dark;
}
@supports (height: 100svh) {
  :root { --screen: 100svh; }
}

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--char);
  color: var(--paper);
  font-family: var(--body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; height: var(--screen); }

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, video, canvas, svg { display: block; max-width: 100%; }

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

/* ---------- 字体 ---------- */
.display { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1; }
.cn-display { font-family: var(--cn-display); font-weight: 900; letter-spacing: 0.02em; line-height: 1.2; text-wrap: balance; }
.small, .toll__note, .token__lede, .spiral__lede { text-wrap: pretty; }
.label { font-family: var(--label); font-weight: 900; text-transform: uppercase; font-size: 13px; letter-spacing: 0.04em; line-height: 1.3; }
.mono { font-family: var(--mono); }
.small { font-size: 14px; line-height: 1.75; opacity: 0.78; }
.red { color: var(--red); }
.blue { color: var(--blue); }

/* ---------- 加载 ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--char);
}
.loader__word { position: absolute; top: 32px; left: 0; right: 0; text-align: center; font-size: 22px; letter-spacing: 0.3em; }
.loader__emblem { width: clamp(140px, 18vw, 200px); color: var(--paper); }
.loader__bar { position: absolute; bottom: 64px; left: 50%; width: min(300px, 70vw); height: 12px; transform: translateX(-50%); overflow: visible; }
.loader__track, .loader__fill { fill: none; stroke-linecap: round; }
.loader__track { stroke: rgba(241, 239, 234, 0.12); stroke-width: 2; }
.loader__fill { stroke: var(--paper); stroke-width: 3; }

/* ---------- 入场门 ---------- */
.gate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; text-align: center; }
.gate__half { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--char-2); }
.gate__half--top { top: 0; border-bottom: 2px solid #000; }
.gate__half--bottom { bottom: 0; }
.gate__inner { position: relative; z-index: 2; padding: 0 var(--gutter); display: grid; justify-items: center; gap: 22px; }
.gate__time { display: inline-flex; align-items: center; gap: 10px; color: var(--grey); }
.gate__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: blink 1s steps(2) infinite; }
.gate__title { font-size: clamp(54px, 10vw, 150px); line-height: 1.05; }
.gate__sub { font-family: var(--cn-display); font-weight: 600; font-size: clamp(18px, 2vw, 24px); opacity: 0.8; }
.gate__hint { color: var(--grey); font-size: 11px; margin-top: 12px; }
@keyframes blink { 50% { opacity: 0; } }

/* 按住按钮 */
.hold {
  position: relative; width: 120px; height: 120px; margin-top: 12px;
  border: 0; border-radius: 50%;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 0 0 3px var(--ink);
  cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.hold:hover { transform: scale(1.04); }
.hold.is-holding { transform: scale(0.93); }
.hold:focus-visible { outline: 3px solid var(--red); outline-offset: 16px; }
.hold__ring { position: absolute; top: -12px; left: -12px; width: calc(100% + 24px); height: calc(100% + 24px); max-width: none; transform: rotate(-90deg); pointer-events: none; overflow: visible; }
.hold__track, .hold__fill { fill: none; }
.hold__track { stroke: rgba(241, 239, 234, 0.22); stroke-width: 2; }
.hold__fill { stroke: var(--red); stroke-width: 5; stroke-linecap: round; }
.hold__label { font-size: 15px; line-height: 1.25; pointer-events: none; }
.hold--blue .hold__fill { stroke: var(--blue); }
.hold--blue .hold__track { stroke: rgba(17, 17, 17, 0.2); }

/* ---------- 全局 UI ---------- */
.pill {
  position: fixed; top: 22px; right: 26px; z-index: 60;
  display: flex; align-items: center; gap: 18px;
  padding: 8px 22px;
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 2px 3px 0 var(--ink);
}
.pill__link { text-decoration: none; color: var(--grey); font-size: 14px; transition: color 0.3s; }
.pill__link.is-active, .pill__link:hover { color: var(--ink); }
.pill__mark { display: block; width: 34px; height: 34px; color: var(--red); transition: transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1); }
.pill__mark:hover { transform: rotate(-30deg) scale(1.1); }
.pill__mark svg { width: 100%; height: 100%; }

.progress { position: fixed; top: 10px; bottom: 84px; right: 6px; width: 7px; z-index: 55; pointer-events: none; }
.progress__thumb { display: block; width: 7px; height: 104px; border-radius: 7px; background: var(--red); box-shadow: 0 0 0 2px var(--ink); }

.sound {
  position: fixed; right: 26px; bottom: 22px; z-index: 95;
  display: flex; align-items: center; justify-content: center; gap: 3px; width: 48px; height: 44px; padding: 0;
  background: var(--white); border: 3px solid var(--ink); box-shadow: 2px 3px 0 var(--ink); cursor: pointer;
}
.sound span { display: block; width: 3px; height: 20px; border-radius: 3px; background: var(--ink); transform-origin: 50% 50%; }
.sound span:nth-child(2) { height: 15px; }
.sound span:nth-child(3) { height: 9px; }
.sound span:nth-child(4) { height: 4px; }
.sound.is-on span { background: var(--red); }
.sound.is-on span { animation: eq 0.9s ease-in-out infinite alternate; }
.sound.is-on span:nth-child(2) { animation-delay: -0.3s; }
.sound.is-on span:nth-child(3) { animation-delay: -0.6s; }
.sound.is-on span:nth-child(4) { animation-delay: -0.15s; }
.sound:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
@keyframes eq { from { transform: scaleY(0.25); } to { transform: scaleY(1.1); } }

.grain {
  position: fixed; inset: -50%; z-index: 80; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.16;
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-1%, 3%); }
  80% { transform: translate(3%, 1%); }
  100% { transform: translate(0, 0); }
}

/* ---------- 场景通用 ---------- */
.scene { position: relative; overflow: hidden; }

/* 0 · 标题 */
.hero { height: var(--screen); background: var(--char); }
.hero .brush { position: absolute; top: -10%; left: 0; width: 140%; height: 120%; }
.hero__inner {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 var(--gutter) 8vh;
}
.hero__kicker { color: var(--grey); margin-bottom: 18px; letter-spacing: 0.2em; }
.hero__title { display: flex; flex-direction: column; align-items: center; font-weight: inherit; }
.hero__the { font-weight: 700; font-size: clamp(26px, 3.6vw, 58px); letter-spacing: 0.06em; }
.hero__num { display: grid; font-family: var(--display); font-weight: 900; font-size: clamp(130px, 27vw, 420px); line-height: 0.86; letter-spacing: -0.01em; margin: 0.04em 0 0.08em; }
.hero__half { grid-area: 1 / 1; color: var(--paper); text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); }
.hero__half--a { clip-path: polygon(0 0, 52% 0, 47% 28%, 55% 50%, 46% 74%, 51% 100%, 0 100%); }
.hero__half--b { clip-path: polygon(52% 0, 100% 0, 100% 100%, 51% 100%, 46% 74%, 55% 50%, 47% 28%); }
.hero__cn { font-size: clamp(26px, 4vw, 62px); letter-spacing: 0.32em; padding-left: 0.32em; }
.hero__sub { margin-top: 22px; font-size: 14px; letter-spacing: 0.12em; opacity: 0.6; }
.hero__ground { position: absolute; left: -2%; width: 104%; top: 80%; height: 135vh; z-index: 3; pointer-events: none; }
.hero__ground .torn { width: 100%; height: 100%; }
.scroll-hint { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 4; text-align: center; color: var(--ink); font-size: 12px; letter-spacing: 0.2em; }
.scroll-hint span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(6px); } }

/* 1 · 崩塌 */
.crash { height: var(--screen); background: var(--paper); color: var(--ink); }
.crash__stage {
  height: 100%; display: grid; grid-template-columns: minmax(300px, 0.9fr) 1.3fr; gap: 3vw; align-items: center;
  padding: 110px var(--gutter) 50px;
}
.crash__copy { display: grid; color: var(--ink); }
.crash__step { grid-area: 1 / 1; opacity: 0; transform: translateY(24px); transition: opacity 0.5s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none; }
.crash__step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.crash__step > * + * { margin-top: 18px; }
.crash__h { font-size: clamp(28px, 3.4vw, 52px); line-height: 1.18; }
.crash__price { display: flex; align-items: baseline; gap: 14px; }
.crash__price b { font-size: clamp(40px, 5.2vw, 84px); color: var(--red); }
.crash__lows { display: grid; gap: 6px; }
.crash__lows li { display: flex; align-items: baseline; gap: 16px; border-bottom: 2px solid currentColor; padding-bottom: 6px; }
.crash__lows .mono { width: 48px; font-size: 14px; }
.crash__lows b { font-size: clamp(40px, 5vw, 76px); }
.crash__chart { width: 100%; height: 100%; max-height: 72vh; overflow: visible; }

/* 2 · 时间线 */
.timeline { height: var(--screen); background: var(--red); color: var(--paper); }
.timeline__rain { position: absolute; inset: 0; opacity: 0.32; mix-blend-mode: multiply; background-size: 700px 700px; }
.timeline__stage {
  position: relative; height: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: center;
  padding: 100px var(--gutter) 70px;
}
.timeline__clock { display: grid; justify-items: center; gap: 12px; }
.clock { width: min(36vw, 52vh); filter: drop-shadow(10px 10px 0 rgba(0, 0, 0, 0.55)); }
.timeline__digital { font-size: clamp(52px, 6vw, 96px); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.timeline__tz { opacity: 0.75; }
.timeline__list { display: grid; gap: 14px; }
.timeline__list li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 10px 0 10px 18px; border-left: 3px solid transparent; opacity: 0.32; transition: opacity 0.4s, transform 0.5s, border-color 0.4s; }
.timeline__list li.is-past { opacity: 0.55; }
.timeline__list li.is-active { opacity: 1; transform: translateX(-10px); border-color: var(--paper); }
.timeline__list time { font-size: 18px; font-weight: 700; padding-top: 3px; }
.timeline__list h3 { font-family: var(--cn-display); font-weight: 900; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.3; }
.timeline__list p { font-size: 14px; line-height: 1.7; opacity: 0.88; margin-top: 4px; }
.timeline__src { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 18px; font-size: 12px; opacity: 0.7; }

/* 3 · 数字 */
.toll { height: var(--screen); background: var(--char-2); }
.toll__dots { position: absolute; inset: 0; width: 100%; height: 100%; }
.toll__inner {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px;
  padding: 0 var(--gutter) 12vh;
  background: radial-gradient(ellipse 46% 40% at 50% 46%, rgba(21, 21, 23, 0.94) 30%, rgba(21, 21, 23, 0) 100%);
}
.toll__amount { font-size: clamp(36px, 8.4vw, 140px); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.toll__unit { font-size: clamp(20px, 2.4vw, 34px); letter-spacing: 0.2em; }
.toll__people { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; padding: 8px 18px; border: 2px solid var(--paper); background: var(--char-2); }
.toll__people .display { font-size: clamp(28px, 3.4vw, 54px); font-variant-numeric: tabular-nums; }
.toll__legend { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--grey); font-size: 11px; }
.toll__legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.toll__note {
  position: absolute; z-index: 3; left: 50%; bottom: 5vh; transform: translateX(-50%);
  width: min(720px, calc(100% - 2 * var(--gutter)));
  padding: 16px 22px; background: rgba(21, 21, 23, 0.92); border: 1px solid #333;
  font-size: 14px; text-align: center;
}
.toll__note strong { display: block; margin-top: 6px; font-family: var(--cn-display); font-weight: 900; font-size: 18px; }

/* 4 · 清算螺旋 */
.spiral { height: var(--screen); background: var(--paper); color: var(--ink); }
.spiral__stage {
  height: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; column-gap: 5vw;
  padding: 110px var(--gutter) 40px;
}
.spiral__head { grid-column: 1; }
.spiral__h { font-size: clamp(28px, 3.2vw, 50px); margin-top: 12px; }
.spiral__lede { margin-top: 12px; font-size: 15px; opacity: 0.75; max-width: 30em; }
.spiral__loop { grid-column: 1; position: relative; align-self: center; justify-self: center; width: min(40vw, 46vh); aspect-ratio: 1; }
.loop { width: 100%; height: 100%; overflow: visible; }
.loop__ring { fill: none; stroke: var(--ink); stroke-width: 4; }
.loop__ring--dash { stroke-width: 2; stroke-dasharray: 3 10; }
.loop__marker circle { fill: var(--red); stroke: var(--ink); stroke-width: 3; }
.loop__nodes li {
  position: absolute; padding: 6px 12px; white-space: nowrap;
  background: var(--white); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--cn-display); font-weight: 900; font-size: clamp(13px, 1.2vw, 17px); line-height: 1.2;
}
.loop__nodes .n1 { top: 12%; left: 50%; translate: -50% -50%; }
.loop__nodes .n2 { top: 50%; left: 88%; translate: -50% -50%; }
.loop__nodes .n3 { top: 88%; left: 50%; translate: -50% -50%; background: var(--red); color: var(--white); }
.loop__nodes .n4 { top: 50%; left: 12%; translate: -50% -50%; }
.spiral__facts { grid-column: 2; grid-row: 1 / 3; align-self: center; display: grid; gap: 16px; }
.fact { background: var(--white); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 14px 18px 16px; }
.fact h3 { color: var(--red); }
.fact p { font-size: 14px; line-height: 1.65; margin: 6px 0 10px; }
.bar { position: relative; height: 18px; border: 2px solid var(--ink); background: repeating-linear-gradient(-45deg, transparent 0 4px, rgba(17, 17, 17, 0.18) 4px 5px); }
.bar span { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; }
.bar em { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink); background: var(--white); padding: 0 4px; }

/* 5 · 归零 */
.zero { height: var(--screen); background: var(--red); color: var(--paper); }
.temple { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.zero__lines { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.zero__line { position: absolute; left: var(--gutter); right: var(--gutter); top: 12vh; text-align: center; font-size: clamp(26px, 3.4vw, 52px); text-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); }
.zero__line--final { top: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1em; text-shadow: none; }
.zero__line--final .display { font-size: clamp(44px, 8vw, 132px); line-height: 0.96; }
.zero__line--final .display:nth-child(2) { color: var(--red); }
.zero__line--final .cn-display { margin-top: 28px; font-weight: 600; font-size: clamp(17px, 1.8vw, 24px); line-height: 1.7; opacity: 0.85; }

/* 6 · 代币 */
.token { background: var(--char); padding: 18vh var(--gutter) 14vh; display: grid; gap: clamp(48px, 8vh, 96px); }
.token__head { max-width: 760px; }
.token__h { font-size: clamp(36px, 5vw, 80px); margin: 16px 0 20px; }
.token__lede { font-size: 17px; opacity: 0.82; max-width: 36em; }

.flow { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; }
.flow__node { display: grid; justify-items: center; gap: 6px; padding: 16px 18px; border: 3px solid var(--paper); background: var(--char-2); text-align: center; min-width: 120px; }
.flow__node b { font-size: 14px; color: var(--grey); }
.flow__node span { font-family: var(--cn-display); font-weight: 900; font-size: 18px; }
.flow__node--pool { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.flow__node--pool b { color: var(--ink); }
.flow__pipe { position: relative; height: 3px; margin: 0 8px; background: rgba(241, 239, 234, 0.2); overflow: hidden; }
.flow__pipe i { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--blue) 0 14px, transparent 14px 28px); animation: pipe 0.9s linear infinite; }
@keyframes pipe { from { transform: translateX(-28px); } to { transform: translateX(0); } }

.pour { position: relative; height: clamp(440px, 64vh, 640px); background: var(--paper); color: var(--ink); box-shadow: 0 0 0 3px var(--ink), 12px 12px 0 0 var(--blue); }
.pour__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pour .hold { position: absolute; top: 30px; right: 34px; margin: 0; }
.pour__hint { position: absolute; left: 20px; top: 18px; font-size: 11px; color: var(--grey); max-width: 46%; }
.pour__count { position: absolute; right: 20px; bottom: 14px; font-size: 11px; color: var(--ink); }

.token__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: start; }
.specs { display: grid; border-top: 2px solid var(--paper); }
.specs > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(241, 239, 234, 0.18); }
.specs dt { color: var(--grey); padding-top: 3px; }
.specs dd { font-size: 17px; }
.specs__contract dd { word-break: break-all; font-size: 14px; color: var(--blue); }
.steps { display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; }
.steps b { font-size: 30px; color: var(--blue); }
.steps h3 { font-family: var(--cn-display); font-weight: 900; font-size: 20px; }
.steps p { font-size: 14px; opacity: 0.75; margin-top: 4px; }
.warn { padding: 16px 20px; border-left: 4px solid var(--red); background: rgba(179, 36, 28, 0.14); font-size: 14px; max-width: 900px; }
.warn strong { color: #ff6b5e; font-weight: 700; }
.warn a { color: var(--blue); }

/* 7 · 提交 */
.submit { background: var(--paper); color: var(--ink); padding: 16vh var(--gutter) 12vh; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 5vw; align-items: start; }
.submit__head { position: sticky; top: 120px; }
.submit__head > * + * { margin-top: 16px; }
.submit__h { font-size: clamp(36px, 4.6vw, 74px); }
.submit__head b { color: var(--red); font-family: var(--display); font-weight: 900; font-size: 1.2em; }

.form { color-scheme: light; position: relative; display: grid; gap: 22px; padding: clamp(20px, 3vw, 36px); background: var(--white); border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.form__closed { padding: 14px; background: var(--ink); color: var(--paper); text-align: center; }
.field { position: relative; display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: 8px; display: flex; justify-content: space-between; width: 100%; }
.field legend span { color: var(--grey); font-size: 11px; }
.field__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-block; padding: 3px 8px; background: #f0b90b; color: var(--ink); border: 2px solid var(--ink); font-size: 11px; letter-spacing: 0.04em; }
.field__hint { font-size: 12px; line-height: 1.6; color: #666; }
.form input:not([type='checkbox']):not([type='file']), .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 0; background: var(--paper);
  font-size: 15px; font-weight: 400; color: var(--ink); appearance: none; -webkit-appearance: none;
}
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
.form textarea { resize: vertical; min-height: 140px; line-height: 1.7; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible, .drop:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.form .mono { font-family: var(--mono); font-size: 14px; }
.counter { position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: var(--grey); }
.is-invalid { animation: shake 0.4s; outline: 3px solid var(--red) !important; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

.drop { position: relative; display: flex; align-items: center; gap: 18px; padding: 22px; border: 2px dashed var(--ink); background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(17, 17, 17, 0.04) 10px 11px); cursor: pointer; transition: background-color 0.2s; }
.drop.is-over { background-color: rgba(93, 180, 230, 0.2); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border: 2.5px solid var(--ink); border-radius: 50%; font-family: var(--display); font-size: 30px; font-weight: 900; line-height: 1; }
.drop__text b { font-family: var(--cn-display); font-weight: 900; font-size: 17px; }
.drop__text small { color: var(--grey); font-size: 12px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.thumbs:empty { display: none; }
.thumbs li { position: relative; aspect-ratio: 1; border: 2px solid var(--ink); background: var(--paper-2); overflow: hidden; }
.thumbs img, .thumbs video { width: 100%; height: 100%; object-fit: cover; }
.thumbs__file { display: grid; place-items: center; height: 100%; font-size: 12px; }
.thumbs small { position: absolute; left: 0; bottom: 0; padding: 1px 4px; background: var(--ink); color: var(--paper); font-size: 10px; }
.thumbs button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); line-height: 1; cursor: pointer; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.6; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); }
.form__safe { font-size: 13px; padding: 10px 14px; background: var(--ink); color: var(--paper); }
.form__safe strong { color: #ff6b5e; }
.form__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn { position: relative; padding: 16px 30px; border: 3px solid var(--ink); background: var(--ink); color: var(--paper); font-family: var(--label); font-weight: 900; font-size: 16px; letter-spacing: 0.06em; cursor: pointer; box-shadow: 4px 4px 0 var(--red); transition: transform 0.15s, box-shadow 0.15s, background 0.2s; }
.btn:hover { background: var(--red); border-color: var(--red); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: 0.5; cursor: wait; }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: none; }
.upload { flex: 1; min-width: 160px; display: flex; align-items: center; gap: 10px; }
.upload__bar { flex: 1; height: 10px; border: 2px solid var(--ink); background: var(--red); transform: scaleX(0); transform-origin: 0 50%; }
.upload__pct { font-size: 12px; width: 40px; }
.form__msg { min-height: 1.5em; font-size: 14px; font-weight: 700; }
.form__msg[data-kind='error'] { color: var(--red); }

.stamp { display: grid; justify-items: center; gap: 22px; padding: 60px 20px; text-align: center; }
.stamp__mark { display: grid; gap: 6px; padding: 26px 42px; border: 7px double var(--red); color: var(--red); transform: rotate(-8deg); mix-blend-mode: multiply; }
.stamp__mark b { font-size: clamp(42px, 6vw, 76px); }

/* 转发到 X */
.share { position: relative; width: min(620px, 100%); display: grid; gap: 10px; margin-top: 8px; padding: 22px; text-align: left; background: var(--white); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); color-scheme: light; }
.share textarea { display: block; width: 100%; padding: 12px 14px 26px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; font-weight: 400; line-height: 1.7; resize: vertical; }
.share textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.share__box { position: relative; }
.share__count { position: absolute; z-index: 1; right: 14px; bottom: 6px; padding: 0 4px; background: var(--paper); font-size: 11px; color: var(--grey); pointer-events: none; }
.share__count.is-over { color: var(--red); font-weight: 700; }
.share__media { display: flex; flex-wrap: wrap; gap: 8px; }
.share__media:empty { display: none; }
.share__media li { width: 72px; height: 72px; border: 2px solid var(--ink); background: var(--paper-2); overflow: hidden; }
.share__media img, .share__media video { width: 100%; height: 100%; object-fit: cover; }
.share__media .share__more { width: auto; display: grid; place-items: center; padding: 0 10px; font-size: 11px; color: #555; border-style: dashed; }
.share__note { font-size: 12px; color: #666; }
.share__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.btn--x { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.btn--x__logo { font-family: system-ui, sans-serif; font-size: 20px; line-height: 1; }
.btn--sm { padding: 8px 14px; font-size: 13px; border-width: 2px; }
.share__help { display: grid; gap: 10px; padding: 14px 16px; background: var(--paper); border: 2px dashed var(--ink); font-size: 14px; }
.share__files { display: flex; flex-wrap: wrap; gap: 8px; }
.share__help .btn--sm { justify-self: start; }

/* 8 · 纪念墙 */
.wall { background: var(--paper-2); color: var(--ink); padding: 14vh var(--gutter) 16vh; }
.wall__head { max-width: 640px; margin-bottom: 56px; }
.wall__head > * + * { margin-top: 14px; }
.wall__h { font-size: clamp(36px, 4.6vw, 72px); }
.wall__grid { columns: 3 280px; column-gap: 26px; }
.stone { break-inside: avoid; margin-bottom: 26px; padding: 20px 22px 16px; background: var(--white); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); transform: rotate(var(--tilt, 0deg)); transition: transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1); }
.stone:hover { transform: rotate(0deg) translateY(-4px); }
.stone header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.stone header b { color: var(--red); font-size: 22px; }
.stone header .label { color: var(--grey); }
.stone p { font-size: 15px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.stone footer { margin-top: 14px; padding-top: 10px; border-top: 1px dashed rgba(17, 17, 17, 0.35); font-size: 11px; color: #555; word-break: break-all; }
.wall__empty { font-family: var(--cn-display); font-weight: 900; font-size: clamp(24px, 3vw, 40px); opacity: 0.45; text-align: center; padding: 6vh 0; }

/* ---------- 页脚 ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 12vh var(--gutter) 8vh; }
.footer__brand { display: flex; align-items: center; gap: 20px; }
.footer__brand svg { width: 92px; height: 92px; color: var(--paper); }
.footer__brand p { font-size: 34px; line-height: 0.95; }
.footer__brand span { font-size: 15px; letter-spacing: 0.3em; color: var(--grey); }
.footer__cols { display: grid; grid-template-columns: minmax(200px, 0.6fr) 1fr; gap: 4vw; margin-top: 64px; }
.footer__cols .label { margin-bottom: 12px; color: var(--grey); }
.footer__cols a { text-decoration: underline; text-underline-offset: 4px; margin-right: 14px; }
.footer__end { margin-top: 14vh; text-align: center; font-size: clamp(28px, 5vw, 76px); }

/* ---------- 移动端 ---------- */
@media (max-width: 860px) {
  .pill { top: 12px; right: 14px; gap: 12px; padding: 6px 14px; }
  .pill__link { font-size: 12px; }
  .pill__mark { width: 28px; height: 28px; }
  .progress { right: 3px; width: 5px; bottom: 64px; }
  .progress__thumb { width: 5px; height: 72px; }
  .sound { right: 14px; bottom: 14px; width: 42px; height: 38px; }

  .crash__stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding-top: 86px; gap: 16px; }
  .crash__chart { max-height: 46vh; }
  .crash__step > * + * { margin-top: 10px; }

  .timeline__stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 20px; padding-top: 80px; align-content: center; }
  .clock { width: min(56vw, 30vh); }
  .timeline__digital { font-size: 44px; }
  .timeline__list { align-self: start; }
  .timeline__list li:not(.is-active) { display: none; }
  .timeline__list li.is-active { transform: none; }

  .spiral__stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding-top: 80px; }
  .spiral__loop { display: none; }
  .spiral__facts { grid-column: 1; grid-row: 2; gap: 10px; align-self: start; margin-top: 18px; }
  .fact { padding: 10px 12px 12px; box-shadow: 4px 4px 0 var(--ink); }
  .fact p { font-size: 12.5px; line-height: 1.55; margin: 4px 0 8px; }

  .flow { grid-template-columns: 1fr; justify-items: stretch; }
  .flow__pipe { width: 3px; height: 28px; margin: 0 auto; }
  .flow__pipe i { background: repeating-linear-gradient(180deg, var(--blue) 0 10px, transparent 10px 20px); animation-name: pipe-v; }
  .pour { height: auto; padding-bottom: 156px; }
  .pour__canvas { position: relative; height: 430px; }
  .pour .hold { top: auto; bottom: 22px; right: 50%; translate: 50% 0; }
  .pour__hint { display: none; }
  .pour__count { bottom: auto; top: 400px; }
  .token__grid, .submit, .footer__cols { grid-template-columns: 1fr; }
  .submit__head { position: static; }
}
@keyframes pipe-v { from { transform: translateY(-20px); } to { transform: translateY(0); } }

@media (max-width: 860px) and (max-height: 700px) {
  .fact p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .gate__dot, .scroll-hint span, .flow__pipe i, .sound.is-on span { animation: none; }
  .crash__step, .timeline__list li { transition: none; }
}
