/* 银霁 · 巨字：黑、白、一抹红。每一段是一张海报，下一张从底下盖上来。
   全部是矢量字和平移动画，没有实时渲染。
   字体：NS 是按页面用字裁的子集；访客写的字不在里面时，由 NSF（完整思源宋体，按字分片，见 fonts/nsf.css）补上。 */
@font-face { font-family: "ZMX"; src: url(/assets/fonts/zmx.woff2?v=8) format("woff2"); font-display: block; }
@font-face { font-family: "NS"; src: url(/assets/fonts/ns-400.woff2?v=8) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NS"; src: url(/assets/fonts/ns-900.woff2?v=8) format("woff2"); font-weight: 900; font-display: block; }
@font-face { font-family: "IS"; src: url(/assets/fonts/is-italic.woff2?v=8) format("woff2"); font-style: italic; font-display: swap; }

:root {
  --k: #0b0b0b; --w: #f4f2ed; --r: #e3261c;
  --pad: clamp(20px, 3.4vw, 52px); --top: clamp(72px, 9svh, 96px);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
}
html.night { --k: #05070c; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { background: var(--k); scrollbar-width: thin; scrollbar-color: #3a3a3a transparent; }
body { overflow-x: hidden; background: var(--k); color: var(--w); font-family: "NS", "NSF", "Songti SC", serif; font-weight: 400; -webkit-font-smoothing: antialiased; -webkit-touch-callout: none; transition: background 1s; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--r); color: #fff; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hide { display: none !important; }
.mk { display: block; height: 0; }

/* ================= 叠海报 ================= */
main { position: relative; }
.sc { position: sticky; top: 0; z-index: 1; min-height: 100svh; overflow: hidden; padding: var(--pad); }
/* 被下一张盖住时慢慢变暗 */
.sc::after { content: ""; position: absolute; inset: 0; z-index: 60; background: #000; opacity: calc(var(--c, 0) * 0.62); pointer-events: none; }
.dark { background: var(--k); color: var(--w); }
.red { background: var(--r); color: var(--k); }
.light { background: var(--w); color: var(--k); }

/* 正文 */
.lbl { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: 0.32em; opacity: 0.72; }
.lbl::before { content: ""; width: 28px; height: 2px; background: var(--r); }
.red .lbl::before { background: currentColor; }
.big { margin-top: 14px; font-weight: 900; font-size: clamp(19px, 1.6vw, 25px); line-height: 1.7; }
.txt p { font-size: 15px; line-height: 2; }
.txt p + p { margin-top: 6px; }
.dark .txt p { color: rgba(244, 242, 237, 0.78); }
.go { display: inline-block; margin-top: 22px; padding-bottom: 4px; border-bottom: 2px solid currentColor; font-weight: 900; font-size: 14px; letter-spacing: 0.22em; }
.go:hover { color: var(--r); }
.red .go:hover { color: var(--w); }
.hint { margin-top: 16px; font-size: 13px; letter-spacing: 0.2em; opacity: 0.75; }
blockquote { margin-top: 22px; padding-left: 18px; border-left: 3px solid var(--r); font-weight: 900; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.8; }

/* ================= 顶栏、目录 ================= */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; gap: 28px; padding: 22px var(--pad); color: var(--w); transition: color 0.35s; pointer-events: none; }
.bar > * { pointer-events: auto; }
html[data-tone="light"] .bar, html[data-tone="red"] .bar { color: var(--k); }
.mark { margin-right: auto; font-family: "ZMX", serif; font-size: 28px; line-height: 1; }
.here { display: flex; align-items: center; gap: 9px; font-size: 12px; letter-spacing: 0.2em; opacity: 0; transition: opacity 0.6s; }
.here.on { opacity: 0.85; }
.here:not(.on) { display: none; }
.here i { width: 7px; height: 7px; border-radius: 50%; background: var(--r); }
.snd { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; letter-spacing: 0.24em; opacity: 0.8; }
.snd .bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.snd .bars i { width: 2px; height: 3px; background: currentColor; }
.snd.on { opacity: 1; }
.snd.on .bars i { animation: eq 0.9s ease-in-out infinite; }
.snd.on .bars i:nth-child(2) { animation-delay: -0.3s; } .snd.on .bars i:nth-child(3) { animation-delay: -0.6s; } .snd.on .bars i:nth-child(4) { animation-delay: -0.15s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 11px; } }
.idx { display: flex; gap: 26px; }
.idx a { padding: 4px 0; border-bottom: 2px solid transparent; font-size: 12px; letter-spacing: 0.26em; opacity: 0.45; transition: opacity 0.3s, border-color 0.3s; }
.idx a:hover { opacity: 0.8; }
.idx a.on { opacity: 1; border-color: currentColor; }

/* ================= 卷首：银霁 ================= */
.hero { display: grid; grid-template-rows: 1fr auto; height: 100svh; padding-top: var(--top); user-select: none; -webkit-user-select: none; }
.stage { position: relative; z-index: 1; display: grid; place-items: center; min-height: 0; }
.yj { position: relative; display: flex; justify-content: center; align-items: center; margin: 0 calc(-1 * var(--pad)); font-family: "ZMX", serif; font-weight: 400; font-size: min(47vw, 76svh); line-height: 1; letter-spacing: -0.05em; white-space: nowrap; }
.yj span { display: block; transition: color 0.6s; }
/* 睡着：字慢慢变成空心 */
html.sleep .yj span { color: transparent; -webkit-text-stroke: 1.5px rgba(244, 242, 237, 0.6); transition-duration: 3.5s; }
.rain { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: difference; }
.hero-f { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 4vw; }
.say { font-size: 16px; letter-spacing: 0.06em; }
.sub { margin-top: 8px; font-size: 12px; letter-spacing: 0.2em; opacity: 0.6; line-height: 1.9; }
.ask { padding: 11px 26px; border: 2px solid currentColor; font-weight: 900; font-size: 17px; letter-spacing: 0.3em; transition: background 0.25s, color 0.25s; }
.ask:hover, .ask[aria-expanded="true"] { background: var(--w); color: var(--k); }
.night { position: absolute; left: 0; right: 0; top: calc(var(--top) + 6px); z-index: 3; text-align: center; font-size: 13px; letter-spacing: 0.3em; opacity: 0; transition: opacity 1.2s; }
html.night .night { opacity: 0.7; }
.dream { position: absolute; left: 50%; top: 50%; font-family: "ZMX", serif; font-size: min(19vw, 30svh); line-height: 1; color: var(--r); opacity: 0; transform: translate(-50%, -46%); transition: opacity 0.6s, transform 0.6s; pointer-events: none; }
html.sleep .dream { opacity: 1; transform: translate(-50%, -50%); transition-duration: 4s; transition-delay: 1.5s; }
/* 打 ji：天放晴，整张海报翻白 */
.hero { transition: background 0.8s, color 0.8s; }
html.ji .hero { background: var(--w); color: var(--k); }

/* 来过的人：一人一天一个点 */
.crowd { width: clamp(170px, 19vw, 300px); }
.dots { position: relative; height: clamp(64px, 7vw, 110px); border-bottom: 1px solid rgba(244, 242, 237, 0.25); cursor: pointer; }
.dots i { position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: currentColor; opacity: 0.8; transition: transform 0.3s var(--out); }
.dots i.me { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: var(--r); opacity: 1; }
.dots i.hop { transform: scale(2.2); }
.dots i.fresh { animation: fall 1s cubic-bezier(0.55, 0, 0.75, 0.2) both; }
@keyframes fall { from { transform: translateY(-60svh); } 82% { transform: translateY(0) scale(1.3, 0.7); } to { transform: none; } }
.tag { position: fixed; z-index: 120; transform: translate(-50%, -100%); padding: 5px 10px; background: var(--w); color: var(--k); font-size: 12px; letter-spacing: 0.1em; white-space: nowrap; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.tag.on { opacity: 1; }

/* 问我 */
.qa { position: fixed; right: var(--pad); bottom: calc(var(--pad) + 64px); z-index: 110; width: min(340px, calc(100vw - 2 * var(--pad))); max-height: 62svh; overflow-y: auto; padding: 10px 0; background: var(--w); color: var(--k); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--out); scrollbar-width: none; }
.qa.on { opacity: 1; transform: none; pointer-events: auto; }
.qa p { padding: 6px 18px 10px; font-size: 11px; letter-spacing: 0.36em; opacity: 0.55; }
.qa button { display: block; width: 100%; padding: 11px 18px; text-align: left; font-size: 15px; line-height: 1.5; }
.qa button:hover, .qa button:focus-visible { background: var(--k); color: var(--w); outline: none; }
.qa button.done { opacity: 0.4; }
.ans { position: fixed; inset: 0; z-index: 130; display: flex; flex-direction: column; justify-content: center; padding: var(--pad); background: var(--k); color: var(--w); opacity: 0; visibility: hidden; transition: opacity 0.45s, visibility 0s 0.45s; cursor: pointer; }
.ans.on { opacity: 1; visibility: visible; transition: opacity 0.25s; }
.ans .q { position: absolute; left: var(--pad); top: calc(var(--pad) + 8px); font-size: 14px; letter-spacing: 0.16em; color: var(--r); }
.ans .a { align-self: center; font-weight: 900; line-height: 1.12; }
.ans .a div { white-space: nowrap; }
.ans .a i { display: inline-block; font-style: normal; opacity: 0; }
.ans.on .a i { animation: hit 0.42s var(--out) forwards; animation-delay: calc(var(--i) * 0.11s); }
@keyframes hit { from { opacity: 0; transform: scale(1.5); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }
.ans .x { position: absolute; left: 0; right: 0; bottom: calc(var(--pad) + 4px); text-align: center; font-size: 12px; letter-spacing: 0.3em; opacity: 0.4; }

/* ================= 地狱电梯 ================= */
.game { display: flex; flex-direction: column; justify-content: center; height: 100svh; padding-top: var(--top); }
.kick { position: relative; z-index: 2; display: flex; justify-content: center; margin: 0 calc(-0.5 * var(--pad)); font-weight: 900; font-size: min(23.5vw, 50svh); line-height: 1; letter-spacing: -0.02em; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.kick span { display: block; cursor: pointer; }
.cols { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 1fr; gap: 5vw; max-width: 1180px; margin-top: 5svh; }
.combo { position: absolute; right: -1vw; bottom: -10svh; z-index: 1; font-family: "IS", serif; font-style: italic; font-size: min(48vw, 90svh); line-height: 1; color: rgba(0, 0, 0, 0.16); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.combo.on { opacity: 1; }
.fire { position: absolute; left: 50%; top: 46%; z-index: 4; padding: 0.06em 0.32em 0.1em; background: var(--k); color: var(--w); font-weight: 900; font-size: min(10vw, 130px); line-height: 1.1; white-space: nowrap; opacity: 0; transform: translate(-50%, -50%) rotate(-7deg) scale(0); pointer-events: none; }
.fire.on { animation: stamp 1.8s var(--out) forwards; }
@keyframes stamp { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-7deg) scale(2.2); } 12% { opacity: 1; transform: translate(-50%, -50%) rotate(-7deg) scale(1); } 75% { opacity: 1; transform: translate(-50%, -50%) rotate(-7deg) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-7deg) scale(1); } }
.b6 { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2svh; background: var(--k); color: var(--w); opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0s 0.5s; }
.b6.on { opacity: 1; visibility: visible; transition: opacity 0.15s; }
.b6 b { font-family: "IS", serif; font-style: italic; font-weight: 400; font-size: min(42vw, 62svh); line-height: 0.9; color: var(--r); }
.b6 p { font-weight: 900; font-size: min(5vw, 54px); letter-spacing: 0.1em; }
.shk { animation: shk 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes shk { 10%, 90% { transform: translate(-2px, 3px); } 20%, 80% { transform: translate(4px, -5px); } 30%, 50%, 70% { transform: translate(-7px, 6px); } 40%, 60% { transform: translate(7px, -4px); } }

/* 首页上的「地狱电梯」：退后一点，不占整屏，黑底 */
.sc.work { min-height: 0; }
.game.work { display: block; height: auto; padding-top: calc(var(--top) + 3svh); padding-bottom: 9svh; }
.gw { position: relative; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 560px); justify-content: center; align-items: center; gap: 6vw; }
.game.work .kick { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; margin: 0; font-size: min(10vw, 19svh); }
.game.work .combo { bottom: -4svh; font-size: min(34vw, 56svh); color: rgba(244, 242, 237, 0.1); }
.game.work .fire { background: var(--r); font-size: min(7vw, 92px); }

/* ================= 信则有 ================= */
.novel { display: grid; grid-template-columns: auto minmax(0, 640px); justify-content: center; gap: 8vw; align-items: center; padding-top: var(--top); }
.nv { max-width: 640px; }
.xzy { position: relative; writing-mode: vertical-rl; font-weight: 900; font-size: min(28svh, 22vw); line-height: 1; letter-spacing: -0.02em; user-select: none; -webkit-user-select: none; }
.xzy .o { display: block; }
.xzy .f { position: absolute; inset: 0; display: block; color: var(--r); clip-path: inset(calc((1 - var(--lv, 0.4)) * 100%) 0 0 0); transition: clip-path 1.4s var(--out); }
.xzy.now .f { transition: none; }
.novel.work { padding-top: calc(var(--top) + 3svh); padding-bottom: 9svh; }
.novel.work .xzy { font-size: min(19svh, 14vw); }
.believe { display: flex; align-items: center; gap: 22px; margin-top: 30px; }
.b-btn { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%; background: var(--k); touch-action: none; user-select: none; -webkit-user-select: none; }
.b-btn svg { position: absolute; inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px); transform: rotate(-90deg); }
.b-track { fill: none; stroke: rgba(11, 11, 11, 0.15); stroke-width: 1.2; }
.b-ring { fill: none; stroke: var(--r); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; }
.b-btn span { position: relative; font-family: "ZMX", serif; font-size: 40px; line-height: 1; color: var(--w); }
.b-txt { font-size: 14px; line-height: 1.9; }
.b-n b, .b-me b { font-weight: 900; color: var(--r); margin: 0 2px; }
.b-last { font-size: 12px; opacity: 0.6; }
.believe.done .b-ring { stroke-dashoffset: 0; }
.believe.done .b-btn { background: var(--r); }
.believe.burst .b-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--r); animation: burst 1.2s var(--out) forwards; }
@keyframes burst { to { transform: scale(3.2); opacity: 0; } }
.believe.shake .b-btn { animation: nudge 0.4s; }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
/* 写字格：米字格里写一个「信」 */
.pad { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.pad canvas { flex: none; width: 150px; height: 150px; border: 2px solid var(--r); touch-action: none; cursor: crosshair; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cg stroke='%23e3261c' stroke-width='0.6' stroke-dasharray='3 3' opacity='0.7' fill='none'%3E%3Cpath d='M50 0V100M0 50H100M0 0L100 100M100 0L0 100'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100%; transition: opacity 0.5s; }
.pad canvas.fade { opacity: 0.25; }
.pad p { font-size: 13px; line-height: 1.9; opacity: 0.75; }

/* ================= 会的：一张字的海报，字越大越熟 ================= */
.skills { padding-top: calc(var(--top) + 2svh); padding-bottom: 8svh; }
.skills .tt { font-size: min(26vw, 40svh); }
.sk { display: grid; gap: 3.4svh; max-width: 1320px; margin-top: 5svh; }
.sk-row { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 3vw; align-items: start; padding-top: 2.6svh; border-top: 1px solid currentColor; }
.sk-row .lbl { margin-top: 0.6em; }
.sk-w { list-style: none; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2.4svh 3.6vw; }
.sk-w li { cursor: default; user-select: none; -webkit-user-select: none; }
.sk-w b { display: inline-block; font-weight: 900; line-height: 1; letter-spacing: -0.01em; transition: transform 0.35s var(--out); }
.sk-w .x1 b { font-size: clamp(46px, 7.4vw, 124px); }
.sk-w .x2 b { font-size: clamp(32px, 4.4vw, 72px); }
.sk-w .hot b { color: var(--r); }
.sk-w i { display: inline-block; margin-left: 10px; padding: 3px 7px 4px; border: 2px solid var(--r); color: var(--r); font-style: normal; font-weight: 900; font-size: 13px; letter-spacing: 0.2em; vertical-align: top; transform: rotate(-4deg); }
.sk-w span { display: block; margin-top: 10px; font-size: 13px; line-height: 1.7; opacity: 0.65; }
.sk-w li.hop b { animation: hop 0.5s var(--out); }
@keyframes hop { 30% { transform: translateY(-14%) rotate(-3deg); } }

/* ================= 试玩：几个小游戏共用一块台子 ================= */
.arc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5vw; align-items: center; height: 100svh; padding-top: var(--top); user-select: none; -webkit-user-select: none; }
.arc .tt { writing-mode: vertical-rl; font-size: min(30svh, 17vw); }
.arc-s { max-width: 7em; margin-top: 2.4svh; font-size: 14px; line-height: 1.8; }
.pg { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 2svh; height: 100%; padding-bottom: 2svh; }
.pg-tabs { display: flex; gap: 10px; }
.pg-tabs button { padding: 8px 18px; border: 2px solid var(--k); font-weight: 900; font-size: 15px; letter-spacing: 0.2em; transition: background 0.2s, color 0.2s; }
.pg-tabs button.on { background: var(--k); color: var(--w); }
.pg-tabs button:not(.on):hover { background: rgba(11, 11, 11, 0.12); }
.pg canvas { display: block; width: 100%; height: 100%; min-height: 0; cursor: none; }
.pg.idle canvas, .pg.over canvas, .pg.paused canvas { cursor: default; }
.pg.playing canvas { touch-action: none; }
.pg-f { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.pg-m { font-size: 15px; line-height: 1.8; }
.pg-go { flex: none; padding: 12px 30px; background: var(--k); color: var(--w); font-weight: 900; font-size: 16px; letter-spacing: 0.3em; }
.pg-go:hover { background: var(--w); color: var(--k); }
.pg.playing .pg-go { visibility: hidden; }

/* ================= 日常 ================= */
.daily { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6vw; align-items: start; padding-top: calc(var(--top) + 2svh); padding-bottom: 12svh; }
.tt { font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.daily .tt { writing-mode: vertical-rl; font-size: min(36svh, 20vw); }
.feed { max-width: 820px; padding-top: 1svh; }
.post { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); column-gap: 28px; padding: 26px 0; border-top: 1px solid rgba(244, 242, 237, 0.2); }
.post-f { display: contents; }
.post-f span { grid-column: 1; grid-row: 1 / span 4; font-weight: 900; font-size: 15px; line-height: 1.5; }
.post-k { grid-column: 2; font-size: 12px; letter-spacing: 0.3em; color: var(--r); }
.post-img { grid-column: 2; margin-top: 14px; display: grid; gap: 6px; }
.post-img.multi { grid-template-columns: 1fr 1fr; }
.post-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-img:not(.multi) img { aspect-ratio: auto; max-height: 440px; object-fit: contain; object-position: left; }
.post-b { grid-column: 2; margin-top: 12px; font-size: 16px; line-height: 2; white-space: pre-wrap; word-break: break-word; }
.lit { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; opacity: 0.7; }
.lit i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; transition: background 0.3s; }
.lit.on { opacity: 1; color: var(--r); }
.lit.on i { background: var(--r); border-color: var(--r); }
.lit b { font-weight: 400; }
.feed-empty { font-size: 15px; opacity: 0.7; }
.more { margin-top: 26px; padding-bottom: 4px; border-bottom: 2px solid currentColor; font-weight: 900; font-size: 14px; letter-spacing: 0.22em; }

/* ================= 留言：一面字报墙 ================= */
.notes { padding-top: calc(var(--top) + 2svh); padding-bottom: 10svh; }
.notes .tt { font-size: min(30vw, 46svh); margin-left: -0.04em; }
.wall { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3svh 3.4vw; margin: 5svh 0 7svh; max-width: 1400px; }
.note p { font-weight: 900; font-size: 18px; line-height: 1.25; word-break: break-word; }
.note.s1 p { font-size: clamp(40px, 6.4vw, 104px); line-height: 1.05; }
.note.s2 p { font-size: clamp(26px, 3.2vw, 50px); line-height: 1.12; }
.note.s3 { max-width: 30em; }
.note.s3 p { font-weight: 400; font-size: 17px; line-height: 1.8; }
.note:nth-child(3n + 2) p { color: var(--r); }
.note span { display: block; margin-top: 6px; font-size: 12px; letter-spacing: 0.1em; opacity: 0.55; }
.note.ghost { opacity: 0.4; }
.red .note:nth-child(3n + 2) p { color: var(--w); }
.red .nf input:focus { border-color: var(--w); }
.red .nf button:hover { background: var(--w); color: var(--k); }
.notes-empty { font-size: 16px; opacity: 0.7; }
.nf { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 190px auto; gap: 18px; max-width: 1000px; }
.nf input { width: 100%; padding: 12px 2px; background: none; border: 0; border-bottom: 2px solid currentColor; color: inherit; font: inherit; font-size: 18px; outline: none; border-radius: 0; }
.nf input::placeholder { color: inherit; opacity: 0.4; }
.nf input:focus { border-color: var(--r); }
.nf button { padding: 0 30px; background: var(--k); color: var(--w); font-weight: 900; font-size: 15px; letter-spacing: 0.3em; }
.nf button:hover { background: var(--r); }
.nf button:disabled { opacity: 0.5; }
.nf .honey { position: absolute; left: -9999px; width: 1px; height: 1px; }
.tip { margin-top: 14px; font-size: 13px; opacity: 0.65; }

/* ================= 来信 ================= */
.end { display: flex; flex-direction: column; justify-content: center; padding-top: var(--top); }
.end .tt { font-size: min(26vw, 42svh); }
.mail { position: relative; align-self: flex-start; margin-top: 4svh; font-family: "IS", serif; font-style: italic; font-size: min(8.4vw, 150px); line-height: 1.02; color: var(--r); transition: color 0.2s; }
.mail:hover { color: var(--w); }
.seal { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: var(--r); color: var(--w); font-family: "ZMX", serif; font-size: 21px; font-style: normal; line-height: 1; }
.red .seal { background: var(--k); }
.mail .seal { position: absolute; right: -0.2em; top: -0.3em; width: 0.9em; height: 0.9em; font-size: 0.6em; opacity: 0; transform: rotate(-8deg) scale(2.4); pointer-events: none; }
.mail.stamped .seal { animation: seal 2.2s var(--out) forwards; }
@keyframes seal { 0% { opacity: 0; transform: rotate(-8deg) scale(2.4); } 14% { opacity: 1; transform: rotate(-8deg) scale(1); } 80% { opacity: 1; transform: rotate(-8deg) scale(1); } 100% { opacity: 0; transform: rotate(-8deg) scale(1); } }
.end .txt { margin-top: 4svh; }
.colo { display: flex; align-items: center; gap: 14px; margin-top: 8svh; font-size: 12px; letter-spacing: 0.3em; opacity: 0.85; }

/* ================= 提示、别人 ================= */
.pop { position: fixed; left: 50%; bottom: calc(var(--pad) + 70px); z-index: 140; max-width: calc(100vw - 40px); padding: 11px 22px; background: var(--r); color: #fff; font-size: 13px; letter-spacing: 0.2em; line-height: 1.7; text-align: center; opacity: 0; transform: translate(-50%, 12px); transition: opacity 0.35s, transform 0.5s var(--out); pointer-events: none; }
.pop.on { opacity: 1; transform: translate(-50%, 0); }
.peers { position: fixed; inset: 0; z-index: 90; width: 100vw; height: 100vh; pointer-events: none; }

/* ================= 开场 ================= */
html.js .yj span { opacity: 0; }
html.go .yj span { animation: rise 1s var(--out) forwards; }
html.go .yj span + span { animation-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translateY(6%) scale(1.06); } to { opacity: 1; transform: none; } }
html.go .hero-f, html.go .bar { animation: fade 1.2s 0.5s both; }
@keyframes fade { from { opacity: 0; } }

/* ================= 手机 ================= */
@media (max-width: 760px) {
  .idx { display: none; }
  .mark { font-size: 24px; }
  .bar { gap: 18px; padding-top: 16px; padding-bottom: 16px; }
  .yj { flex-direction: column; font-size: min(80vw, 30svh); line-height: 0.98; letter-spacing: 0; }
  .hero-f { grid-template-columns: 1fr auto; grid-template-areas: "t t" "c a"; gap: 14px 16px; }
  .hero-t { grid-area: t; }
  .crowd { grid-area: c; width: auto; }
  .dots { height: 44px; }
  .ask { grid-area: a; padding: 10px 20px; }
  .dream { font-size: 36vw; }
  .kick { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; margin: 0; font-size: min(42vw, 24svh); }
  .cols { grid-template-columns: 1fr; gap: 0; margin-top: 3svh; }
  .cols .txt { margin-top: 10px; }
  .game .txt p { font-size: 14px; line-height: 1.85; }
  .go { margin-top: 14px; }
  .novel { grid-template-columns: 1fr; gap: 3svh; align-content: center; }
  .xzy { justify-self: start; margin: 0 0 0 -0.03em; writing-mode: horizontal-tb; font-size: 29vw; }
  .believe { gap: 18px; margin-top: 24px; }
  .b-btn { width: 66px; height: 66px; }
  .b-btn span { font-size: 34px; }
  .pad canvas { width: 128px; height: 128px; }
  .sk-row { grid-template-columns: 1fr; gap: 1.6svh; }
  .sk-row .lbl { margin-top: 0; }
  .sk-w { gap: 2svh 6vw; }
  .sk-w .x1 b { font-size: clamp(40px, 13vw, 64px); }
  .sk-w .x2 b { font-size: clamp(28px, 9vw, 44px); }
  .skills .tt { font-size: 40vw; }
  .arc { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 1.6svh; }
  .arc-h { display: flex; align-items: flex-end; gap: 14px; }
  .arc .tt { writing-mode: horizontal-tb; font-size: 20vw; }
  .arc-s { max-width: none; margin: 0 0 1em; font-size: 13px; }
  .pg-tabs button { flex: 1; padding: 8px 0; }
  .gw { grid-template-columns: 1fr; gap: 3svh; }
  .game.work .kick { justify-self: start; font-size: 24vw; }
  .novel.work .xzy { font-size: 21vw; }
  .pg-f { flex-direction: column; align-items: stretch; gap: 12px; }
  .pg-m { font-size: 14px; }
  .daily { grid-template-columns: 1fr; gap: 3svh; }
  .daily .tt { writing-mode: horizontal-tb; font-size: 40vw; }
  .post { grid-template-columns: 1fr; padding: 22px 0; }
  .post-f span, .post-k, .post-img, .post-b, .lit { grid-column: 1; grid-row: auto; }
  .post-f span { order: -1; margin-bottom: 4px; font-size: 13px; }
  .notes .tt { font-size: 40vw; }
  .nf { grid-template-columns: 1fr auto; }
  .nf #nb { grid-column: 1 / -1; }
  .nf button { padding: 0 22px; }
  .end .tt { font-size: 40vw; }
  .mail { font-size: 13.4vw; }
  .pop { bottom: calc(var(--pad) + 20px); }
}

@media (prefers-reduced-motion: reduce) {
  html.go .yj span, html.go .hero-f, html.go .bar { animation-duration: 0.01s; animation-delay: 0s; }
  .ans.on .a i { animation-duration: 0.01s; animation-delay: 0s; }
}
