/* ============================================================
   《此生》— 样式
   方向：墨与朱。近黑暖墨底，宣纸白正文，朱砂红唯一强调色。
   约束：主界面一屏内全部展示，永不滚动。
   ============================================================ */

:root {
  --ink:      #14110E;
  --ink-2:    #1C1814;
  --ink-3:    #262019;
  --paper:    #E8E1D4;
  --paper-2:  #A79C8C;
  /* paper-3 是所有次级文字的基色：在 ink / ink-2 / ink-3 三个底色上都 ≥4.6:1，满足 WCAG AA */
  --paper-3:  #92887A;
  /* paper-4 只给纯装饰（进度条底、列表短横），不承载文字 */
  --paper-4:  #5A5148;
  --zhu:      #B11226;
  --zhu-soft: #7E0C1B;

  --serif: "Noto Serif SC", "Songti SC", "SimSun", "Source Han Serif SC", serif;
  --sans:  "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

body { overflow: hidden; }

#app { height: 100dvh; width: 100%; }

.screen {
  height: 100dvh;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  position: relative;
}

/* 中栏：纵向 flex，叙述区占满剩余高度（移动端与宽屏同此结构） */
.main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

/* 桌面宽屏：三栏。左=状态，中=历史，右=选项与世界 */
@media (min-width: 1100px) {
  .screen.play {
    max-width: none;
    display: grid;
    grid-template-columns: 268px minmax(420px, 1fr) 340px;
    grid-template-rows: 100%;
    background: var(--ink);
  }
  .screen.play .side {
    grid-column: 1;
    overflow: hidden;
  }
  .screen.play .main {
    grid-column: 2;
    height: 100%;
    overflow: hidden;
  }
  .screen.play .right {
    grid-column: 3;
    overflow: hidden;
  }
  .screen.play .topbar {
    margin: 0;
    padding: 14px 28px 12px;
  }
  .screen.play .foot {
    margin: 0;
    padding: 8px 28px 16px;
  }
  .screen.play .feed { padding: 22px 28px 20px; }
  /* 卡片占满中栏：中栏本身不到 600px，再收窄就只剩半屏 */
  .screen.play .feed > * { width: 100%; }
  .screen.play .attrs { grid-template-columns: repeat(4, 1fr); gap: 4px 18px; }
  .screen.play .topbar { padding: 12px 28px 10px; }
  .screen.play .progrow { gap: 20px; }
  .screen.play .prog, .screen.play .speeds { margin-top: 8px; }
  .screen.play .spd { padding: 9px 6px; font-size: 12px; }
}

/* ================= 标题页 ================= */
.title { align-items: center; justify-content: center; }
.title-inner { padding: 0 32px; text-align: left; }
.title-inner h1 {
  font-size: clamp(52px, 15vw, 84px);
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  color: var(--paper);
}
.title-inner .tag {
  margin-top: 26px;
  font-size: 17px;
  line-height: 1.95;
  color: var(--paper-2);
  max-width: 22em;
}
.title-inner .note {
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.9;
  color: var(--paper-2);
}
.title-inner .keys {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  margin-top: 26px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--paper-3);
}
.title-inner .keys span { display: inline-flex; align-items: center; gap: 5px; }
.title-inner kbd {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--paper-2);
  background: var(--ink-2);
  border-radius: 2px;
  padding: 2px 6px;
}
.title-inner .primary { margin-top: 30px; }

/* ================= 按钮 ================= */
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.primary {
  background: var(--zhu);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .16em;
  padding: 15px 40px;
  border-radius: 2px;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.primary:hover { background: #C4162B; }
.primary:active { transform: translateY(1px); }

.ghost {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--paper-2);
  padding: 10px 14px;
  border-radius: 2px;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.ghost:hover { color: var(--paper); background: var(--ink-3); }
.ghost.on { color: var(--zhu); }
.ghost.danger:hover { color: var(--zhu); }
.ghost:focus-visible, .primary:focus-visible, .opt:focus-visible {
  outline: 2px solid var(--zhu);
  outline-offset: 2px;
}

/* ================= 主界面 ================= */
.play { padding: 0 20px; }

.topbar {
  flex: 0 0 auto;
  padding: 14px 20px 10px;
  margin: 0 -20px;
  background: var(--ink-2);
}
.topbar .st {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--paper-2);
  margin-bottom: 8px;
}
.attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 16px; }
@media (min-width: 480px) {
  .attrs { grid-template-columns: repeat(4, 1fr); gap: 4px 14px; }
  .attr-l { width: 20px; }
}
.attr { display: flex; align-items: center; gap: 7px; }
.attr-l { font-family: var(--sans); font-size: 10.5px; color: var(--paper-3); width: 24px; flex: 0 0 auto; }
.attr-bar { flex: 1 1 auto; height: 3px; background: var(--ink-3); border-radius: 2px; overflow: hidden; }
.attr-bar i { display: block; height: 100%; background: var(--paper-4); transition: width .5s var(--ease); }
.attr-v { font-family: var(--sans); font-size: 10.5px; color: var(--paper-2); width: 18px; text-align: right; flex: 0 0 auto; }
.attr[data-k="wealth"] .attr-bar i { background: var(--zhu-soft); }
.attr[data-k="luck"]  .attr-bar i { background: var(--paper-2); }

/* 叙述区：占据剩余空间，永不滚动 */
.narrative {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
  padding: 22px 0 8px;
}
.narrative-inner {
  --fs: 17px;
  --squeeze: 1;
  font-size: var(--fs);
  line-height: 1.95;
  transform-origin: top left;
  width: calc(100% / var(--squeeze));
  transform: scale(var(--squeeze));
}
.narrative-inner .yr {
  font-family: var(--sans);
  /* 年份行是定位信息，不跟着正文缩到不可读：用 max() 给一个 11px 下限 */
  font-size: max(11px, .68em);
  letter-spacing: .14em;
  color: var(--paper-3);
  margin-bottom: .8em;
}
.prose { color: var(--paper); margin-bottom: 1.05em; }
.prose.reply { color: var(--paper-2); }
.prose.meta { color: var(--paper-3); font-size: .88em; }
.chose {
  font-family: var(--sans);
  font-size: .8em;
  color: var(--zhu);
  margin: .5em 0 .8em;
  letter-spacing: .04em;
}

/* 选项：所有尺寸用 em，保证随 --fs 等比缩放 */
.opts { list-style: none; margin-top: 1.1em; }
.opts li { margin-bottom: .5em; }
.opt {
  display: flex;
  align-items: baseline;
  gap: .72em;
  width: 100%;
  text-align: left;
  padding: .82em .88em;
  background: var(--ink-2);
  border-radius: 2px;
  border-left: 2px solid var(--ink-3);
  font-family: var(--serif);
  font-size: .91em;
  line-height: 1.5;
  color: var(--paper);
  transition: background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.opt:hover { background: var(--ink-3); border-left-color: var(--zhu); transform: translateX(3px); }
.opt-k {
  font-family: var(--sans);
  /* 序号是操作提示，下限 11px，不随正文缩到认不出 */
  font-size: max(11px, .71em);
  color: var(--paper-3);
  flex: 0 0 auto;
  padding-top: .18em;
}
.opt:hover .opt-k { color: var(--zhu); }
.opt-t { flex: 1 1 auto; }
.opt-t b { font-weight: 500; display: block; }
.opt-t i {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  /* 补充说明也要能读，下限 11.5px */
  font-size: max(11.5px, .74em);
  line-height: 1.6;
  color: var(--paper-3);
  margin-top: .26em;
}

/* 职业分组：把一长串变成几个可判断的小组 */
.opt-group { margin-bottom: .9em; }
.opt-group-h {
  font-family: var(--sans);
  font-size: max(11px, .68em);
  letter-spacing: .12em;
  color: var(--paper-2);
  margin-bottom: .45em;
  padding-bottom: .3em;
  background: var(--ink-2);
  display: inline-block;
  padding: 3px 8px;
  border-radius: 2px;
}
.opt-group-h i {
  font-style: normal;
  letter-spacing: .02em;
  color: var(--paper-3);
  margin-left: .5em;
  font-size: .92em;
}
.opt-group .opts { margin-top: 0; }
.rb-group-h {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--paper-2);
  margin: 12px 0 6px;
}
.rb-group-h:first-of-type { margin-top: 0; }
.rb-group-h i {
  font-style: normal;
  letter-spacing: .02em;
  color: var(--paper-3);
  margin-left: .5em;
  font-size: .92em;
}

/* 底栏 */
.foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 8px 20px 16px;
  margin: 0 -20px;
  background: var(--ink-2);
}
.foot .ghost { padding: 9px 4px; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* ================= 结局页 ================= */
.end { align-items: center; justify-content: center; padding: 0 28px; }
.end-inner { width: 100%; }
.end-inner h2 {
  font-size: clamp(30px, 8.5vw, 42px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .02em;
  margin: 6px 0 20px;
  color: var(--paper);
}
.end-inner .prose { font-size: 16.5px; line-height: 2; color: var(--paper-2); }

/* 路线标识：只在结局页出现 */
.route {
  margin: 0 0 24px;
  padding: 15px 18px 16px;
  background: var(--ink-2);
  border-left: 2px solid var(--zhu);
}
.route-l {
  display: block;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--paper-3);
  margin-bottom: 7px;
}
.route-n {
  display: block;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--zhu);
  line-height: 1.3;
}
.route-s {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--paper-3);
  margin-top: 6px;
  line-height: 1.7;
}
.end-inner .meta { font-family: var(--sans); font-size: 12px; color: var(--paper-3); margin-top: 22px; }
.end-inner .stat {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  margin-top: 26px; padding: 16px 18px;
  background: var(--ink-2);
  font-family: var(--sans); font-size: 12px; color: var(--paper-3);
}
.end-actions { margin-top: 30px; display: flex; align-items: center; gap: 18px; }

/* ================= 回顾页 ================= */
.log { padding: 0 18px; }
.log-top {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px 10px;
  margin: 0 -18px;
  background: var(--ink-2);
}
.log-title { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; color: var(--paper-2); }
.log-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 14px 0 18px;
}
.timeline {
  --tl-scale: 1;
  list-style: none;
  transform: scale(var(--tl-scale));
  transform-origin: top left;
  width: calc(100% / var(--tl-scale));
}
.timeline li {
  display: flex; gap: 14px;
  padding: 11px 12px;
  margin-bottom: 2px;
  background: var(--ink-2);
}
.timeline li:nth-child(odd) { background: var(--ink-3); }
.l-yr { flex: 0 0 52px; padding-top: 2px; }
.l-yr b { display: block; font-family: var(--sans); font-size: 13px; color: var(--paper); font-weight: 500; }
.l-yr span { font-family: var(--sans); font-size: 10.5px; color: var(--paper-3); }
.l-body { flex: 1 1 auto; min-width: 0; }
.l-txt { font-size: 14.5px; line-height: 1.72; color: var(--paper); }
.l-pick {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--zhu);
  margin-top: 5px;
}
.l-pick i { color: var(--paper-3); font-style: normal; }
.l-ch { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.ch {
  font-family: var(--sans); font-size: 10.5px; font-style: normal;
  padding: 1px 6px; border-radius: 2px;
  background: var(--ink-2); color: var(--paper-3);
}
.ch.up { color: var(--paper); }
.ch.down { color: var(--zhu-soft); }

/* ================= 动效 ================= */
.prose, .opts li, .yr { animation: rise .5s var(--ease) both; }
.opts li:nth-child(1) { animation-delay: .04s; }
.opts li:nth-child(2) { animation-delay: .10s; }
.opts li:nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 标题页：逐行浮现 */
.title-inner > * { animation: titleIn .7s var(--ease) both; }
.title-inner > *:nth-child(2) { animation-delay: .10s; }
.title-inner > *:nth-child(3) { animation-delay: .18s; }
.title-inner > *:nth-child(4) { animation-delay: .26s; }
.title-inner > *:nth-child(5) { animation-delay: .36s; }
.title-inner > *:nth-child(6) { animation-delay: .44s; }
@keyframes titleIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ================= 进度条 ================= */
.progrow { display: flex; align-items: center; gap: 12px; }
.prog { flex: 1 1 auto; min-width: 0; margin-top: 11px; }
.prog-line { display: flex; align-items: center; gap: 10px; }
.prog-age {
  font-family: var(--sans); font-size: 11px; color: var(--paper-2);
  flex: 0 0 auto; min-width: 3.2em;
}
.prog-track {
  flex: 1 1 auto; height: 3px; background: var(--ink-3);
  border-radius: 2px; overflow: hidden; position: relative;
}
.prog-track i {
  display: block; height: 100%;
  background: var(--zhu);
  transition: width .4s var(--ease);
}
.prog-life {
  font-family: var(--sans); font-size: 11px; color: var(--paper-3);
  flex: 0 0 auto;
}

/* ================= 倍速 ================= */
.speeds {
  display: flex; align-items: center; gap: 1px;
  flex: 0 0 auto;
  margin-top: 11px;
}
.spd {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--paper-3);
  padding: 9px 2px;
  border-radius: 2px;
  white-space: nowrap;
  min-height: 44px;
  /* 视觉宽度只占内容宽（6 档各 44px 会把进度条挤没），
     真正的 44×44 热区由下面的 ::after 撑开 */
  min-width: 44px;
  flex: 0 0 auto;
  position: relative;
  transition: color .16s var(--ease), background .16s var(--ease);
}
/* 窄屏：进度条独占一行，速度条下一行右对齐。
   挤在一行时 6 档会各占 44px，把进度条压到 69px，等于看不见。 */
@media (max-width: 1099px) {
  .progrow { flex-wrap: wrap; gap: 6px 0; }
  .prog { flex: 1 1 100%; }
  .speeds { margin-left: auto; }
}
/* 点击热区：左右各扩 4px，上下 44px，凑满触控 */
.spd::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}
.spd:hover { color: var(--paper); background: var(--ink-3); }
.spd.on {
  color: var(--paper);
  background: var(--ink-3);
  font-weight: 600;
}

/* ================= 侧栏与右栏 ================= */
.side, .right {
  display: none;
  background: var(--ink-2);
  padding: 18px 20px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (min-width: 1100px) {
  .side, .right { display: block; }
  .side { border-right: 0; }
  .right {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .side-inner {
    transform: scale(var(--side-scale, 1));
    transform-origin: top left;
    width: calc(100% / var(--side-scale, 1));
  }
}

.sp-block { margin-bottom: 13px; }
.sp-block:last-child { margin-bottom: 0; }
.sp-block h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--paper-3);
  margin-bottom: 7px;
}
.sp-dl { display: flex; flex-direction: column; gap: 3px; }
.sp-dl > div { display: flex; gap: 10px; align-items: baseline; }
.sp-dl dt {
  flex: 0 0 44px;
  font-family: var(--sans); font-size: 11px; color: var(--paper-3);
}
.sp-dl dd {
  flex: 1 1 auto; min-width: 0;
  font-size: 13px; line-height: 1.6; color: var(--paper);
}
.sp-note {
  margin-top: 9px;
  font-size: 12.5px; line-height: 1.75; color: var(--paper-2);
}
.sp-ul { list-style: none; }
.sp-ul li {
  font-size: 12.5px; line-height: 1.7; color: var(--paper-2);
  padding: 3px 0 3px 10px;
  position: relative;
}
.sp-ul li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 5px; height: 2px; background: var(--paper-4);
}

/* 右栏 */
.rb-box {
  background: var(--ink);
  padding: 14px 14px 15px;
  margin-bottom: 14px;
}
.rb-choice-box {
  /* 有选项时按内容高度，最多占 62%；无选项时整块隐藏 */
  flex: 0 1 auto;
  min-height: 0;
  max-height: 62%;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.rb-world-box {
  /* 剩下多少归世界面板 */
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-bottom: 0;
}
.rb-l {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--paper-3);
  margin-bottom: 10px;
}
.rb-none { font-size: 13px; line-height: 1.7; color: var(--paper-3); }
.rb-choice {
  display: flex; align-items: baseline; gap: 9px;
  width: 100%; text-align: left;
  padding: 9px 10px;
  margin-bottom: 4px;
  background: var(--ink-2);
  border-left: 2px solid var(--ink-3);
  border-radius: 2px;
  transition: background .16s var(--ease), border-color .16s var(--ease);
}
.rb-choice:hover { background: var(--ink-3); border-left-color: var(--zhu); }
.rb-k {
  font-family: var(--sans); font-size: 11px; color: var(--paper-3);
  flex: 0 0 auto; padding-top: .2em;
}
.rb-choice:hover .rb-k { color: var(--zhu); }
.rb-t { flex: 1 1 auto; min-width: 0; }
.rb-t b { font-weight: 500; display: block; font-size: 14px; line-height: 1.5; }
.rb-t i {
  display: block; font-style: normal;
  font-family: var(--sans); font-size: 11.5px; line-height: 1.55;
  color: var(--paper-3); margin-top: 2px;
}

/* 世界面板 */
/* 世界面板 */
.wb-phase {
  font-size: 19px; font-weight: 500; color: var(--paper);
  line-height: 1.4; margin-bottom: 8px;
}
.wb-num {
  font-family: var(--sans); font-size: 12px; color: var(--paper-3);
  margin-bottom: 8px;
}
.wb-num b { color: var(--paper-2); font-weight: 500; }
.wb-note {
  font-size: 12.5px; line-height: 1.75; color: var(--paper-2);
  margin-bottom: 16px;
}
.wb-others { list-style: none; }
.wb-others li {
  padding: 8px 0;
}
.wb-others li + li { border-top: 0; }
.wb-others li:not(:first-child) { padding-top: 10px; }
.wb-on {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13.5px; color: var(--paper);
}
.wb-on i {
  font-style: normal; font-family: var(--sans);
  font-size: 11px; color: var(--paper-3);
}
.wb-os {
  display: block;
  font-size: 12.5px; line-height: 1.7; color: var(--paper-2);
  margin-top: 3px;
}

/* ================= 出生：地名抽选 ================= */
.screen.birth {
  max-width: none;
  align-items: center;
  justify-content: center;
  background: #0B0A08;
}
.birth-inner {
  width: 100%;
  max-width: 760px;
  padding: 0 32px;
  text-align: center;
}
.birth-l {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--paper-3);
  margin-bottom: 28px;
  opacity: 0;
  animation: birthIn .5s var(--ease) .1s forwards;
}
.birth-slot {
  min-height: 1.3em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.birth-roll {
  font-size: clamp(52px, 11vw, 128px);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.1;
  color: var(--paper);
  /* 滚动时不要过渡，落定时才淡入放大 */
  display: inline-block;
}
.birth-roll.landed {
  color: var(--paper);
  animation: birthLand .55s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes birthLand {
  from { opacity: .3; transform: scale(.94); letter-spacing: .16em; }
  to   { opacity: 1; transform: scale(1); letter-spacing: .06em; }
}
@keyframes birthIn { to { opacity: 1; } }
.birth-sub {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--paper-3);
  margin-top: 22px;
  min-height: 1.4em;
}
.birth-more {
  margin-top: 34px;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.birth-more.in { opacity: 1; }
.bm-line {
  font-size: 15px;
  line-height: 1.9;
  color: var(--paper-2);
  max-width: 26em;
  margin: 0 auto 26px;
}
.bm-grid {
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
}
.bm-grid span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--paper-3);
}
.bm-grid b {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--paper);
}
.birth-actions {
  margin-top: 44px;
  min-height: 52px;
}

/* ================= 倒计时（自动抉择） ================= */
.cd-host { flex: 0 0 auto; padding: 0 20px; margin: 0 -20px; }
@media (min-width: 1100px) { .cd-host { padding: 0 28px; margin: 0; } }
.cd-box { padding: 6px 0 10px; }
.cd-lab {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--zhu);
  margin-bottom: 6px;
}
.cd-bar {
  display: block;
  height: 2px;
  background: var(--ink-3);
  border-radius: 2px;
  overflow: hidden;
}
.cd-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--zhu);
}

/* ================= 抉择区（正文下方） ================= */
.choicebar {
  flex: 0 0 auto;
  padding: 0 20px;
  margin: 0 -20px;
  background: var(--ink-2);
  overflow: hidden;
  transition: max-height .22s var(--ease);
  max-height: 0;
}
.choicebar.on {
  max-height: 260px;
  padding: 12px 20px 14px;
}
@media (min-width: 1100px) {
  .choicebar { margin: 0; padding: 0 28px; }
  .choicebar.on { padding: 14px 28px 16px; max-height: 300px; }
}
.cb-hint {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--paper-3);
  margin-bottom: 9px;
}
.cb-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 7px;
}
.cb-opt {
  display: flex;
  align-items: baseline;
  gap: 9px;
  text-align: left;
  padding: 10px 11px;
  min-height: 44px;
  background: var(--ink);
  border-left: 2px solid var(--ink-3);
  border-radius: 2px;
  transition: background .16s var(--ease), border-color .16s var(--ease);
}
.cb-opt:hover { background: var(--ink-3); border-left-color: var(--zhu); }
.cb-k {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--paper-3);
  flex: 0 0 auto;
  padding-top: .15em;
}
.cb-opt:hover .cb-k { color: var(--zhu); }
.cb-t { flex: 1 1 auto; min-width: 0; }
.cb-t b { font-weight: 500; display: block; font-size: 14.5px; line-height: 1.45; }
.cb-t i {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--paper-3);
  margin-top: 2px;
}
/* 逆着禀性的选项：左侧一条虚线提示，不评判对错 */
.cb-opt.bias-against { border-left-style: dashed; border-left-color: var(--paper-4); }

/* ================= 禀性面板 ================= */
.tp-origin {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--paper-3);
  margin-bottom: 10px;
}
.tp-origin b {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--paper);
  margin-left: 8px;
}
.tp-list { display: flex; flex-direction: column; gap: 6px; }
.tp-list li { display: flex; align-items: center; gap: 9px; }
.tp-n {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--paper-2);
  flex: 0 0 30px;
}
.tp-bar {
  flex: 1 1 auto;
  height: 3px;
  background: var(--ink-3);
  border-radius: 2px;
  overflow: hidden;
}
.tp-bar i { display: block; height: 100%; background: var(--zhu); }
.tp-v {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--paper-3);
  flex: 0 0 20px;
  text-align: right;
}
.tp-note {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--paper-2);
}
.tp-defy {
  margin-top: 8px;
  padding-top: 8px;
  background: var(--ink-3);
  padding: 6px 9px;
  border-radius: 2px;
}
.tp-defy li {
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.7;
  color: var(--zhu);
}

/* 别人的一生：换一批 */
.wb-more { padding-top: 10px; }
.wb-morebtn {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--paper-3);
  padding: 7px 0;
  min-height: 44px;
  transition: color .16s var(--ease);
}
.wb-morebtn:hover { color: var(--zhu); }

/* ================= 六项状态条 ================= */
.st-list { display: flex; flex-direction: column; gap: 5px; }
.st-list li { display: flex; align-items: center; gap: 8px; }
.st-n {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--paper-2);
  flex: 0 0 26px;
}
.st-bar {
  flex: 1 1 auto;
  height: 4px;
  background: var(--ink-3);
  border-radius: 2px;
  overflow: hidden;
}
.st-bar i {
  display: block;
  height: 100%;
  background: var(--zhu);
  transition: width .45s var(--ease);
}
.st-v {
  font-family: var(--sans);
  font-size: 10.5px;
  color: var(--paper-3);
  flex: 0 0 18px;
  text-align: right;
}
/* 悲伤是负向指标：越长越重，用暗灰区分，不跟正向指标抢注意力 */
.st-list li.neg .st-bar i { background: var(--paper-3); }
.st-list li.neg .st-n { color: var(--paper-3); }

/* ================= 信息流（中栏） ================= */
.feedwrap {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
}
.feed {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-3) transparent;
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feed::-webkit-scrollbar { width: 6px; }
.feed::-webkit-scrollbar-thumb { background: var(--ink-3); border-radius: 3px; }
.feed::-webkit-scrollbar-track { background: transparent; }

/* 卡片：靠底色阶分区——比页面底亮一档，加间距，不加边框和阴影 */
.cd {
  padding: 15px 17px 17px;
  background: var(--ink-2);
  border-radius: 3px;
  animation: cdIn .28s var(--ease) both;
}
@keyframes cdIn {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}
.cd:last-child { margin-bottom: 6px; }

.cd-h {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 9px;
}
.cd-yr {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--paper-3);
}
.cd-p {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--paper-3);
}
.cd-tag {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--paper);
  padding: 1px 6px;
  background: var(--ink-3);
  border-radius: 2px;
}

.cd-t {
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--paper);
  letter-spacing: .01em;
}
.cd-t + .cd-t { margin-top: .55em; }
.cd-dim { color: var(--paper-2); font-size: 15px; }
.cd-reply { color: var(--paper-2); }
.cd-reply::before {
  content: '—';
  color: var(--paper-4);
  margin-right: .5em;
}

.cd-pick {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--paper);
  padding-left: 10px;
  border-left: 2px solid var(--zhu);
  line-height: 1.6;
}
.cd-ch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.cd-ch em {
  font-style: normal;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .04em;
  padding: 2px 6px;
  border-radius: 2px;
  background: var(--ink-2);
}
.cd-ch em.up { color: var(--zhu); }
.cd-ch em.down { color: var(--paper-3); }

/* 出生卡：入口那一段，字号略大、底色略沉 */
.cd-birth { padding-bottom: 20px; }
.cd-birth .cd-t { font-size: 16.5px; }
.cd-birth .cd-t:last-child { color: var(--paper-2); margin-top: .9em; }

/* 当前待决定的那张：左侧一条朱红，明确"现在在这里" */
.cd-now {
  background: var(--ink-3);
  border-left: 2px solid var(--zhu);
}
.cd-now .cd-t { font-size: 17px; }

/* 加载更早 */
.feed-more {
  align-self: stretch;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--paper-3);
  padding: 14px 0;
  min-height: 44px;
  transition: color .16s var(--ease);
}
.feed-more:hover { color: var(--zhu); }
