/* 骨架学苹果，细节取云南：白墙（白族民居）· 靛蓝（扎染）· 构皮纸（傣）· 赭红（沧源崖画）· 火只在焚送时出现 */
:root {
  --wall: #ECEAE6;      /* 平整的浅暖灰，只托住甲马和影子 */
  --wall-2: #EEEAE2;
  --cell: #FFFDF9;      /* 浮在墙上的面 */
  --paper: #F1E9DA;     /* 构皮纸 */
  --paper-3: #FFFDF9;
  --ink: #24211D;       /* 墨黑，与字标一致 */
  --ink-2: #4E555C;
  --muted: #8B9198;     /* 青灰 */
  --line: #E1DCD3;
  --indigo: #23466A;    /* 扎染靛蓝 */
  --indigo-2: #1B3956;
  --ochre: #A73D30;     /* 暗朱砂，与字标“神”一致 */
  --red: var(--ochre);
  --fire: #B8461F;      /* 只给焚送 */
  --night: #121518;
  --ember: #F2A54A;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --r: 14px;
  --shadow: 0 1px 2px rgba(35,39,43,.05), 0 8px 24px rgba(35,39,43,.06);
  /* 构皮纸：横向长纤维 + 细颗粒 */
  --fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .19' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45  0 0 0 0 .36  0 0 0 0 .22  0 0 0 .1 0'/%3E%3C/filter%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4  0 0 0 0 .32  0 0 0 0 .2  0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  /* 回纹腰线 */
  --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 7.5H12M2.5 7.5V.5H10.5V5.5H5.5V3H8' fill='none' stroke='%23B5AC9E' stroke-width='1'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--wall);
  color: var(--ink);
  font-family: var(--serif);  /* 全站统一宋体 */
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color .8s ease;
}
body.is-night { background-color: var(--night); color: #E9E4DA; }
button { font: inherit; color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
  max-width: 560px; margin: 0 auto;
  background: rgba(246,243,237,.78);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
}
body.is-night .top { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand { font-family: var(--serif); font-weight: 700; letter-spacing: .24em; text-decoration: none; font-size: 16px; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.top-link { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.lang {
  border: 0; background: rgba(35,39,43,.07); padding: 3px 11px; border-radius: 999px;
  font-size: 12.5px; letter-spacing: .06em; cursor: pointer; font-weight: 600;
}
body.is-night .top, body.is-night .top a { color: #E9E4DA; }
body.is-night .lang { background: rgba(255,255,255,.1); color: #E9E4DA; }
body.is-busy .top-actions { visibility: hidden; }

.app { max-width: 560px; margin: 0 auto; padding: 0 16px 64px; }
/* 进场只轻轻上移，不做透明淡入：动画没跑起来时也是原样原色 */
.view { animation: viewIn .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes viewIn { from { transform: translateY(10px); } to { transform: none; } }

/* ---------- 通用 ---------- */
.eyebrow { font-size: 13px; letter-spacing: .28em; color: var(--ochre); margin: 0 0 8px; font-weight: 600; }
.h1 { font-family: var(--serif); font-size: 40px; line-height: 1.25; letter-spacing: .1em; margin: 0; font-weight: 700; }
.h2 { font-family: var(--serif); font-size: 25px; line-height: 1.4; margin: 0 0 6px; font-weight: 700; }
.lead { font-family: var(--serif); font-size: 19px; margin: 14px 0 4px; color: var(--ink-2); }
.small { font-size: 14px; color: var(--muted); line-height: 1.7; }
.center { text-align: center; }
.rule { height: 8px; border: 0; margin: 32px auto; width: 120px; background: var(--meander) repeat-x center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px; border-radius: var(--r);
  background: var(--indigo); color: #fff; border: 0;
  font-size: 17px; font-weight: 600; letter-spacing: .1em; cursor: pointer; text-decoration: none;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), background .2s ease, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--indigo-2); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: rgba(35,70,106,.08); color: var(--indigo); }
.btn.ghost:hover { background: rgba(35,70,106,.13); }
.btn.red { background: var(--indigo); }  /* 旧类名沿用，主按钮一律靛蓝 */
.btn.red:hover { background: var(--indigo-2); }
.btn.red.hold { background: var(--indigo); }  /* 敬上全站统一靛蓝；按住时火色从左边烧过来 */
.btn.red.hold:hover { background: var(--indigo-2); }
.btn.block { display: flex; width: 100%; }
.btn[disabled] { opacity: .4; cursor: default; }
.linkbtn {
  background: none; border: 0; padding: 6px 2px; cursor: pointer;
  font-size: 15px; color: var(--indigo);
}
.linkbtn:hover { opacity: .75; }
body.is-night .linkbtn { color: #b9c6d6; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }

/* ---------- 首页：甲马是墙上的彩绘 ---------- */
.hero {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  margin: 8px 0 8px; padding: 18px 4px 6px;
}
.hero .h1 { font-size: 42px; }
.hero .sub { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.hero-art {
  order: -1; width: min(52vw, 220px); margin: 0 auto 28px; transform: rotate(-1deg);
  box-shadow: 0 2px 4px rgba(35,39,43,.06), 0 18px 40px rgba(35,39,43,.14);
}
.hero::after { content: ""; display: block; width: 120px; height: 8px; margin: 28px auto 0; background: var(--meander) repeat-x center; }
.resume {
  display: flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 10px 14px;
  border-radius: var(--r); background: var(--cell); box-shadow: var(--shadow);
  text-decoration: none; font-size: 14px; color: var(--ink-2);
}
.resume img { width: 36px; border-radius: 3px; }

.q { font-family: var(--serif); font-size: 21px; font-weight: 700; margin: 22px 0 14px; text-align: center; }
.dirs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dir {
  position: relative; display: flex; flex-direction: column; text-align: left;
  padding: 0; border: 0; border-radius: var(--r); background: var(--cell); cursor: pointer;
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease;
}
.dir:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(35,39,43,.06), 0 14px 32px rgba(35,39,43,.1); }
.dir:active { transform: scale(.98); }
.dir .thumb { height: 112px; background-size: cover; background-position: center 34%; }
.dir .txt { padding: 12px 14px 14px; }
.dir .t { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: .1em; display: block; }
.dir .s { font-size: 12.5px; color: var(--muted); line-height: 1.5; display: block; margin-top: 2px; }
.dir.closed { display: none; }  /* 不展示“即将开放” */
.soon { display: none; }
.any { margin-top: 6px; }
/* 见面礼 */
.gift { padding-top: 6px; }
.gift .print { width: min(60vw, 260px); margin-bottom: 4px; }
.gift .h2 { margin-bottom: 14px; }
.gift .name { font-size: 26px; }
.gift .verse { font-size: 19px; margin-bottom: 18px; }
.gift .verse::before, .gift .verse::after { margin: 8px auto; }
.gift .name { margin-top: 18px; margin-bottom: 0; }
.gift .hold { margin-top: 6px; }
.gift .hold-hint { margin-top: 10px; }
.gift.done { text-align: center; padding-top: 18px; }
.gift-thumb { width: 96px; margin: 0 auto 10px; box-shadow: 0 10px 24px rgba(35,39,43,.14); transform: rotate(-2deg); filter: sepia(.25) brightness(.92); }
.why { margin: 26px 0 30px; }
.why1 { font-family: var(--serif); font-size: 19px; line-height: 1.8; margin: 0 0 20px; }
.why2 { font-family: var(--serif); font-size: 17px; line-height: 1.6; margin: 0 0 8px; color: var(--ink-2); }
.why-night { padding: 32px 28px; }
.why-night .why1 { font-size: 19px; letter-spacing: .04em; color: var(--ink); }
.why-night .why2 { color: #b9b2a6; }
.why-actions { display: grid; gap: 10px; justify-items: center; margin-top: 30px; }
.why-actions .btn { margin: 0; min-width: 200px; background: var(--indigo); color: #fff; }
/* 大类：苹果式分组列表，不配图，甲马留到后面才出现 */
.needs { border-radius: var(--r); background: var(--cell); box-shadow: var(--shadow); overflow: hidden; }
.need {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%;
  padding: 16px 18px; border: 0; background: none; cursor: pointer; text-align: left;
  -webkit-tap-highlight-color: transparent; transition: background .15s;
}
.need + .need { box-shadow: inset 0 1px 0 var(--line); }
.need:active, .need:hover { background: rgba(35,70,106,.05); }
.need .t { font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: .08em; }
.need .s { font-size: 13px; color: var(--muted); }
.need .s::after { content: "  ›"; color: var(--line); font-size: 18px; }
.hero .lead { font-size: 18px; line-height: 1.7; }
.hero .sub { font-size: 15px; color: var(--ink-2); }
.note-dot { margin-top: 26px; }

/* ---------- 场景 ---------- */
.back { margin: 4px 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.chip {
  padding: 9px 18px; border: 0; border-radius: 999px; background: var(--cell); box-shadow: var(--shadow);
  cursor: pointer; font-size: 16px; letter-spacing: .04em; transition: background .15s, color .15s, transform .15s;
}
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--indigo); color: #fff; }
.chip.quiet { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.wish { margin: 28px 0 8px; }
.wish label { font-weight: 600; display: block; margin-bottom: 8px; }
.wish label span { font-weight: 400; color: var(--muted); font-size: 14px; }
.wish textarea {
  width: 100%; min-height: 104px; resize: vertical; padding: 12px 14px;
  font: inherit; font-size: 16px; line-height: 1.7; color: var(--ink);
  border: 0; border-radius: var(--r); background: var(--cell); box-shadow: var(--shadow);
}
.wish textarea:focus { outline: 0; box-shadow: 0 0 0 2px rgba(35,70,106,.35), var(--shadow); }
.wish .count { text-align: right; font-size: 12px; color: var(--muted); margin-top: 4px; }
.go { margin-top: 22px; }

/* ---------- 抽取：纸是构皮纸 ---------- */
.stage { position: relative; min-height: 70vh; display: grid; place-items: center; }
.card-w { width: min(74vw, 340px); }
.stack { position: relative; width: 100%; aspect-ratio: 3 / 4; }
.stack .sheet {
  position: absolute; inset: 0; background: var(--paper) var(--fiber); border-radius: 2px;
  box-shadow: 0 2px 4px rgba(35,39,43,.06), 0 16px 34px rgba(35,39,43,.14);
}
.stack .sheet:nth-child(1) { animation: shuffleA .9s ease-in-out both; }
.stack .sheet:nth-child(2) { animation: shuffleB .9s ease-in-out both; }
.stack canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .3s; }
.stack.revealing canvas { opacity: 1; }
.stack.revealing .sheet { animation: none; opacity: 0; transition: opacity .3s; }
@keyframes shuffleA { 0% { transform: rotate(0); } 30% { transform: translateX(-38%) rotate(-9deg); } 65% { transform: translateX(12%) rotate(4deg); } 100% { transform: rotate(-2deg); } }
@keyframes shuffleB { 0% { transform: rotate(0); } 30% { transform: translateX(34%) rotate(8deg); } 65% { transform: translateX(-10%) rotate(-3deg); } 100% { transform: rotate(1.5deg); } }
.stage-cap { font-family: var(--serif); text-align: center; margin-top: 20px; color: var(--ink-2); min-height: 1.8em; }
.skip { position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translateX(-50%); }

/* ---------- 结果 ---------- */
.yourwish { margin: 4px 0 18px; padding: 12px 14px; border-radius: var(--r); background: var(--cell); box-shadow: var(--shadow); font-size: 15px; color: var(--ink-2); }
.yourwish b { font-weight: 600; color: var(--ochre); margin-right: 6px; }
.print { margin: 10px auto 0; width: min(80vw, 380px); position: relative; }
.print img { width: 100%; height: auto; aspect-ratio: 3 / 4; box-shadow: 0 2px 4px rgba(35,39,43,.06), 0 20px 44px rgba(35,39,43,.16); transform: rotate(-.6deg); }
.print .done {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  padding: 2px 12px; border-radius: 999px; background: var(--cell); box-shadow: var(--shadow); font-size: 13px; color: var(--muted); white-space: nowrap;
}
.meta { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 30px 0 4px; font-size: 14px; color: var(--muted); }
.tag { display: inline-block; padding: 0 9px; border: 1.5px solid var(--ochre); border-radius: 3px; color: var(--ochre); font-weight: 600; letter-spacing: .2em; font-family: var(--serif); }
.name { font-family: var(--serif); text-align: center; font-size: 30px; letter-spacing: .16em; margin: 4px 0 4px; font-weight: 700; }
.verse { font-family: var(--serif); text-align: center; font-size: 21px; line-height: 1.6; margin: 10px 0 22px; font-weight: 600; }
.verse::before, .verse::after { content: ""; display: block; width: 72px; height: 8px; background: var(--meander) repeat-x center; margin: 14px auto; }
.reading { margin: 0 0 18px; color: var(--ink-2); }
.act { border-radius: var(--r); padding: 14px 16px; background: var(--cell); box-shadow: var(--shadow); }
.act .lbl { font-size: 13px; letter-spacing: .22em; color: var(--ochre); font-weight: 600; }
.act p { margin: 2px 0 0; }
.origin { margin: 14px 0 0; border-radius: var(--r); background: var(--cell); box-shadow: var(--shadow); padding: 0 16px; }
.origin summary { cursor: pointer; padding: 14px 0; font-size: 15px; color: var(--ink-2); list-style: none; }
.origin summary::-webkit-details-marker { display: none; }
.origin summary::after { content: "›"; float: right; color: var(--muted); font-size: 20px; line-height: 1.2; transition: transform .2s; }
.origin[open] summary::after { transform: rotate(90deg); }
.origin p { margin: 0 0 14px; font-size: 14.5px; color: var(--ink-2); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0 10px; }
.hold { position: relative; overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; }
.hold .fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, #7a2410, #d9622b 80%, #f2a54a); pointer-events: none; }
.hold .lbl2 { position: relative; }
.hold-hint { text-align: center; font-size: 13px; color: var(--muted); margin: 0; }
.alt-links { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 14px; }
.tag-note { text-align: center; margin-top: 22px; }

/* ---------- 焚送（火，彝族火把的颜色只在这里） ---------- */
.burn-stage { position: fixed; inset: 0; z-index: 5; }
.burn-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.burn-words {
  position: fixed; inset: 0; z-index: 6; display: grid; place-content: center; text-align: center; padding: 24px;
  opacity: 0; transition: opacity 1.6s ease; pointer-events: none;
}
.burn-words.on { opacity: 1; pointer-events: auto; }
.burn-words p { font-family: var(--serif); margin: 0; font-size: 22px; line-height: 1.9; letter-spacing: .08em; }
.burn-words p + p { font-size: 17px; color: #b9b2a6; margin-top: 6px; }
.burn-words.why-night p { letter-spacing: .02em; }
.burn-words.why-night .why1 { font-size: 20px; line-height: 1.8; margin: 0 0 26px; }
.burn-words.why-night .why2 { font-size: 17px; line-height: 1.7; margin: 0 0 10px; }
.burn-words.why-night .why-actions .btn { background: var(--indigo); color: #fff; margin-top: 0; }
.burn-words.why-night .why-actions .btn:hover { background: var(--indigo-2); }
.burn-words .btn { margin-top: 34px; justify-self: center; background: rgba(255,255,255,.08); color: #E9E4DA; }
.burn-words .btn:hover { background: rgba(255,255,255,.14); }

/* ---------- 留存 ---------- */
.keep-stage { min-height: 72vh; display: grid; place-items: center; align-content: center; gap: 26px; }
.keep-card { width: min(64vw, 300px); animation: keepIn 2.8s cubic-bezier(.5,0,.2,1) both; transform-origin: 50% 80%; }
.keep-card img { width: 100%; aspect-ratio: 3 / 4; box-shadow: 0 20px 44px rgba(35,39,43,.18); }
@keyframes keepIn {
  0% { transform: none; filter: none; }
  35% { transform: translateY(-14px) rotate(-1.5deg); }
  70% { transform: translateY(6px) scale(.62) rotate(0); filter: drop-shadow(0 0 24px rgba(242,165,74,.55)); }
  100% { transform: translateY(0) scale(.58); filter: drop-shadow(0 0 14px rgba(242,165,74,.35)); }
}
.keep-words { text-align: center; opacity: 0; transition: opacity 1.4s ease; }
.keep-words.on { opacity: 1; }
.keep-words p { font-family: var(--serif); margin: 0; font-size: 21px; letter-spacing: .08em; }

/* ---------- 纪念卡 ---------- */
.keepsake { margin: 6px auto 0; width: min(84vw, 400px); }
.keepsake img { width: 100%; border-radius: 4px; box-shadow: 0 20px 44px rgba(35,39,43,.16); background: var(--wall-2); aspect-ratio: 1080 / 1500; }
.toggle { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 15px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--indigo); }
.end-actions { display: grid; gap: 12px; margin-top: 20px; }
.end-actions .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- 关于 ---------- */
.prose p { margin: 0 0 14px; }
.prose h3 { font-family: var(--serif); font-size: 19px; margin: 28px 0 8px; }
.prose .caption { font-size: 14px; color: var(--muted); border-left: 2px solid var(--ochre); padding-left: 12px; }

/* 英文不需要中文那样的字距 */
html[lang="en"] .brand, html[lang="en"] .btn, html[lang="en"] .eyebrow, html[lang="en"] .h1,
html[lang="en"] .name, html[lang="en"] .tag, html[lang="en"] .act .lbl, html[lang="en"] .dir .t,
html[lang="en"] .chip, html[lang="en"] .burn-words p, html[lang="en"] .keep-words p { letter-spacing: .02em; }
html[lang="en"] .eyebrow, html[lang="en"] .act .lbl { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
html[lang="en"] .hero .h1 { font-size: 38px; }
html[lang="en"] .name { font-size: 27px; line-height: 1.3; }
html[lang="en"] .verse { font-size: 20px; }

@media (max-width: 380px) {
  .h1, .hero .h1 { font-size: 34px; }
  .dir .thumb { height: 92px; }
  .choices { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 顶栏只留语言 ---------- */
.top { justify-content: flex-end; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.langs { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(35,39,43,.06); }
.langs button { border: 0; background: none; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--cell); color: var(--ink); box-shadow: 0 1px 2px rgba(35,39,43,.12); }
body.is-night .langs { background: rgba(255,255,255,.08); }
body.is-night .langs button[aria-pressed="true"] { background: rgba(255,255,255,.16); color: #E9E4DA; box-shadow: none; }

/* ---------- 首页：甲马和影子 ---------- */
.gift { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 4px; }
.gift .print { width: min(64vw, 280px); margin: 8px auto 0; }
.gift .print img {
  transform: rotate(-1.2deg);
  box-shadow:
    0 1px 1px rgba(40,34,28,.10),
    0 3px 8px rgba(40,34,28,.10),
    22px 30px 42px -10px rgba(40,34,28,.28),
    40px 60px 80px -30px rgba(40,34,28,.16);
}
.gift-label { margin: 34px 0 2px; font-size: 13px; letter-spacing: .2em; color: var(--muted); }
.gift .name { margin: 0; font-size: 26px; }
.gift .verse { margin: 4px 0 26px; font-size: 18px; font-weight: 400; color: var(--ink-2); }
.gift .verse::before, .gift .verse::after { display: none; }
.gift .hold { min-width: 168px; padding: 12px 40px; letter-spacing: .5em; text-indent: .5em; font-family: var(--serif); font-size: 18px; }
.seal {
  margin: 40px auto 0; padding: 6px 5px; writing-mode: vertical-rl; font-family: var(--serif);
  font-size: 12px; letter-spacing: .1em; line-height: 1.3; color: var(--ochre);
  border: 1.5px solid var(--ochre); border-radius: 3px; opacity: .85; height: calc(3.3em + 12px); box-sizing: border-box;
  display: flex; flex-wrap: wrap; align-content: center;
}
html[lang="en"] .seal, html[lang="ja"] .seal { writing-mode: horizontal-tb; height: auto; padding: 3px 8px; font-size: 11px; letter-spacing: .06em; }
html[lang="en"] .gift .hold, html[lang="ja"] .gift .hold { letter-spacing: .1em; text-indent: 0; }
.gift .btn.red.hold { background: var(--indigo); }  /* 和其他主按钮一样用靛蓝，按住时火从左边烧过来 */
.gift .btn.red.hold:hover { background: var(--indigo-2); }
html[lang="ja"] .name { letter-spacing: .02em; font-size: 26px; line-height: 1.3; }

/* 字标：只有中文，“神”字暗朱砂；三种语言都用同一张 */
.wordmark { display: block; width: 176px; height: auto; margin: 44px auto 0; }

/* ---------- 烧完以后的暗处：一句一句浮出，再问、再报神 ---------- */
.why-night { max-width: 420px; margin: 0 auto; }
.why-night .n { opacity: 0; transition: opacity 1.4s ease; }
.burn-words.on .n1 { opacity: 1; transition-delay: .2s; }
.burn-words.on .n2 { opacity: 1; transition-delay: 2s; }
.burn-words.on .n3 { opacity: 1; transition-delay: 3.8s; }
.burn-words.on .n4 { opacity: 1; transition-delay: 5.2s; }
.burn-words.why-night .n1 { font-size: 21px; line-height: 1.9; letter-spacing: .14em; color: var(--ink); margin: 0; }
.burn-words.why-night .n2 { font-size: 21px; line-height: 1.9; letter-spacing: .14em; color: var(--ink); margin: 6px 0 0; }
.burn-words.why-night .n3 { font-size: 14px; letter-spacing: .12em; color: var(--muted); margin: 40px 0 0; }
.burn-words.why-night .n4 { margin-top: 44px; }
.why-actions .linkbtn { color: var(--muted); font-size: 14px; }
.night-step.in { animation: nightIn 1.2s ease both; }
@keyframes nightIn { from { transform: translateY(8px); } to { transform: none; } }  /* 只上移，不从透明开始 */
.night-q { font-family: var(--serif); font-size: 21px; letter-spacing: .14em; color: var(--ink); margin: 0 0 30px; }
.night-needs { display: grid; gap: 4px; width: min(78vw, 300px); margin: 0 auto; }
.night-needs button {
  border: 0; background: none; color: var(--ink); font-family: var(--serif); font-size: 18px; letter-spacing: .16em;
  padding: 13px 0; cursor: pointer; border-bottom: 1px solid var(--line); transition: color .2s;
}
.night-needs button:last-child { border-bottom: 0; }
.night-needs button:hover, .night-needs button:active { color: var(--ochre); }
.night-any { display: block; margin: 22px auto 0; color: var(--muted) !important; font-size: 13px !important; }
.god-line { font-family: var(--serif); font-size: 21px; letter-spacing: .12em; color: var(--ink); margin: 0 0 40px; }
html[lang="en"] .why-night p, html[lang="en"] .night-needs button, html[lang="ja"] .why-night p, html[lang="ja"] .night-needs button { letter-spacing: .03em; }

/* ---------- 统一：暖灰底、宋体、墨黑 / 靛蓝 / 暗朱砂 ---------- */
button, input, textarea { font-family: var(--serif); }
.langs button { font-family: var(--sans); }
.burn-stage { transition: opacity 1.6s ease; }
.burn-stage.gone { opacity: 0; }
body { transition: background-color 1.8s ease; }
.ask-page { min-height: 70vh; display: grid; place-content: center; text-align: center; }
.burn-words.why-night .n1, .burn-words.why-night .n2 { color: var(--ink); }
.burn-words.why-night .why-actions .linkbtn { color: var(--muted); }

/* 询问页底部：甲马是什么？ */
.about-link { display: block; margin: 34px auto 0; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.about-box { max-width: 340px; margin: 18px auto 0; text-align: left; }
.about-title { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 10px; letter-spacing: .04em; }
.about-body { font-size: 14.5px; line-height: 1.95; color: var(--ink-2); margin: 0; text-align: justify; }
html[lang="en"] .about-body { text-align: left; line-height: 1.7; }
/* 顶栏往下滚时垫一层暖灰，语言切换不压住正文 */
.top { background: rgba(236,234,230,.94); }
body.is-night .top { background: none; }

.choices.one { grid-template-columns: 1fr; justify-items: center; }
.choices.one .btn { min-width: 200px; }

/* 结果页：今日小事放在甲马图上方，先看这一句 */
.act-top { text-align: center; margin: 4px auto 22px; max-width: 360px; background: none; box-shadow: none; padding: 0; }
.act-top p { font-size: 18px; line-height: 1.7; color: var(--ink); margin-top: 4px; }

/* ---------- 询问页：带甲马小图的可点行，视觉重心在选项上 ---------- */
.night-q { font-size: 24px; margin-bottom: 26px; }
.need-list { display: grid; gap: 10px; width: min(86vw, 340px); margin: 0 auto; }
.need-row {
  display: flex; align-items: center; gap: 16px; width: 100%; padding: 10px 16px 10px 10px;
  border: 0; border-radius: 14px; background: var(--cell); box-shadow: var(--shadow); cursor: pointer; text-align: left;
  transition: transform .15s ease, box-shadow .2s ease;
}
.need-row:active { transform: scale(.98); }
.need-row:hover { box-shadow: 0 2px 4px rgba(35,39,43,.06), 0 12px 28px rgba(35,39,43,.1); }
.need-row img { width: 42px; height: 56px; object-fit: cover; border-radius: 2px; box-shadow: 0 2px 6px rgba(40,34,28,.18); flex: none; }
.need-row span { flex: 1; font-size: 18px; letter-spacing: .12em; color: var(--ink); }
.need-row i { font-style: normal; font-size: 22px; color: var(--muted); }
html[lang="en"] .need-row span, html[lang="ja"] .need-row span { letter-spacing: .02em; }
.night-any { margin-top: 18px !important; }
/* 甲马是什么：放得更靠下，字更淡，不抢选项 */
.about-link { margin-top: 96px !important; font-size: 12.5px; opacity: .8; }

.need-row { padding: 16px 18px; gap: 14px; }
.need-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(36,33,29,.08); }

/* ---------- 顶栏：左“首页”（首页本身不显示），右喇叭＋语言 ---------- */
.top { justify-content: space-between; }
.home-link { font-size: 13px; color: var(--muted); text-decoration: none; letter-spacing: .1em; padding: 4px 2px; }
.home-link::before { content: "‹ "; }
body.is-home .home-link { visibility: hidden; }
body.is-night .home-link { color: #9a948a; }
.top-right { display: flex; align-items: center; gap: 8px; }
.snd { border: 0; background: rgba(35,39,43,.06); color: var(--ink-2); width: 30px; height: 26px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.snd .mute { display: none; }
.snd.off { color: var(--muted); }
.snd.off .wave { display: none; }
.snd.off .mute { display: inline; }
body.is-night .snd { background: rgba(255,255,255,.08); color: #E9E4DA; }
/* 今天的见面礼放在甲马图上方 */
.gift-label { margin: 6px 0 16px !important; }
.gift .name { margin-top: 30px !important; }
