/* ============================================================
 * 七美德 × 十宗罪 · 双重人格测试
 * 暗黑轻奢 + 善恶对立 —— 金（美德）/ 暗酒红（原罪）
 * ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --bg-0: #0C0A0B;          /* 深炭黑（暖调） */
  --bg-1: #151013;          /* 暗哑面 */
  --bg-2: #1D1619;          /* 卡片磨砂底 */

  --ink: #EAE3D4;           /* 米白暖银 · 主文字 */
  --ink-dim: #A79C8C;       /* 次要文字 */
  --ink-faint: #6E6356;     /* 弱文字 */

  --gold: #C6A164;          /* 哑光金 · 美德 */
  --gold-bright: #E6CB90;   /* 金高光（低刺眼度） */
  --gold-dim: #6F5836;      /* 金阴影 */

  --wine: #8C2A3D;          /* 暗酒红 · 原罪 */
  --wine-bright: #B3505F;   /* 红微光 */
  --wine-dim: #4E1A26;      /* 红阴影 */

  --line: #3A322B;          /* 极低饱和冷灰分割线 */
  --line-warm: #4A3D31;
  --frost: rgba(255, 244, 224, 0.045); /* 磨砂透明 */

  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-pop: cubic-bezier(0.34, 1.35, 0.44, 1);
  --r-soft: 18px;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html {
  height: 100%;
  overflow-x: hidden;
  /* 阻断 body 背景传播到画布：否则渐变按视口尺寸渲染，长页面会出硬缝 */
  background: var(--bg-0);
}

/* 首页内容一屏展示完毕，锁定滚动；其它页面保持正常滚动 */
body.lock-scroll {
  overflow: hidden;
  height: 100dvh;
}

body {
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgba(198, 161, 100, 0.08), transparent 34%) no-repeat,
    linear-gradient(0deg, rgba(140, 42, 61, 0.13), transparent 30%) no-repeat,
    linear-gradient(168deg, #12100F 0%, var(--bg-0) 46%, #0E0B0D 100%);
  color: var(--ink);
  font-family: "Noto Sans SC", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

/* 全局噪点 + 暗角氛围层 */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  mix-blend-mode: normal;
  opacity: 0.045;
}
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 50% 38%, transparent 52%, rgba(6, 4, 5, 0.55) 100%);
}

#app {
  position: relative;
  z-index: 2;
  max-width: 540px;
  margin: 0 auto;
  min-height: 100dvh;
}

/* 焦点可见性（移动端触屏 + 键盘无障碍） */
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 屏幕切换（淡入 + 轻微位移） ---------- */
.screen {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  min-height: 100dvh;
  padding: calc(30px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-soft), transform 0.55s var(--ease-soft);
}
.screen.is-active { opacity: 1; transform: none; }

.screen[hidden] { display: none; }

/* 暗调氛围底图（Picsum 实景 → 模糊 + 低饱和 + 压暗），仅用于开场与结果 */
.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-position: center;
  background-size: cover;
  filter: blur(18px) saturate(0.35) brightness(0.46);
  opacity: 0.55;
  pointer-events: none;
}
#screen-intro::before { background-image: url("https://picsum.photos/id/1074/900/1600"); }
#screen-intro { overscroll-behavior: none; }
/* 结算页背景：纯 CSS 暗调纹理（金/暗红柔光），避免实景照片带来的区域割裂 */
#screen-result::before {
  background:
    linear-gradient(180deg, rgba(198, 161, 100, 0.1), transparent 38%),
    linear-gradient(0deg, rgba(140, 42, 61, 0.12), transparent 32%);
  filter: none;
  opacity: 1;
}

/* ---------- 通用小组件 ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.eyebrow .rule {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dim), var(--wine));
  opacity: 0.9;
}

.hint {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.gold { color: var(--gold-bright); }
.wine { color: var(--wine-bright); }

/* ---------- 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px 16px 999px 16px; /* 非对称圆角，柔边 */
  border: 1px solid transparent;
  background: linear-gradient(165deg, rgba(38, 31, 32, 0.74), rgba(21, 17, 19, 0.82));
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.28s var(--ease-pop), box-shadow 0.35s var(--ease-soft),
    border-color 0.35s, background 0.35s, opacity 0.3s;
}
.btn iconify-icon { font-size: 18px; }

/* 美德金按钮：微光 + 柔晕 */
.btn-gold {
  border-color: rgba(198, 161, 100, 0.45);
  color: var(--gold-bright);
  background: linear-gradient(120deg, rgba(198, 161, 100, 0.2), rgba(198, 161, 100, 0.06)),
    linear-gradient(165deg, rgba(38, 31, 32, 0.74), rgba(21, 17, 19, 0.82));
  box-shadow: 0 8px 26px -12px rgba(198, 161, 100, 0.28), inset 0 0 18px rgba(198, 161, 100, 0.05);
}
.btn-gold:hover, .btn-gold:active {
  border-color: rgba(230, 203, 144, 0.75);
  box-shadow: 0 10px 32px -10px rgba(198, 161, 100, 0.45), 0 0 24px rgba(230, 203, 144, 0.12);
}

/* 原罪按钮：暗红阴影 */
.btn-wine {
  border-color: rgba(140, 42, 61, 0.5);
  color: var(--wine-bright);
  background: linear-gradient(120deg, rgba(140, 42, 61, 0.24), rgba(140, 42, 61, 0.07)),
    linear-gradient(165deg, rgba(38, 31, 32, 0.74), rgba(21, 17, 19, 0.82));
  box-shadow: 0 8px 26px -12px rgba(140, 42, 61, 0.35), inset 0 0 18px rgba(140, 42, 61, 0.06);
}

/* 幽灵按钮 */
.btn-ghost {
  border-color: var(--line);
  color: var(--ink-dim);
  background: rgba(255, 244, 224, 0.02);
}
.btn-ghost:hover, .btn-ghost:active {
  border-color: var(--line-warm);
  color: var(--ink);
}

/* 按压缩放微动效（回弹） */
.btn:active { transform: scale(0.96); }

.btn.is-disabled,
.btn:disabled {
  opacity: 0.38;
  pointer-events: none;
  filter: saturate(0.4);
}

/* ============================================================
 * 开场页
 * ============================================================ */
#screen-intro {
  justify-content: space-between;
  padding-top: calc(52px + env(safe-area-inset-top));
}

.intro-head { position: relative; padding-left: 8px; }

.intro-title {
  position: relative;
  margin-top: 20px;
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-weight: 400;
  font-size: clamp(44px, 12.4vw, 62px);
  line-height: 1.26;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* 标题逐行浮现：轻位移 + 模糊消散，克制而高级 */
.intro-title .t-line {
  display: block;
  opacity: 0;
  animation: line-rise 0.9s var(--ease-soft) both;
}
.intro-title .t-line:nth-child(1) { animation-delay: 0.18s; }
.intro-title .t-line:nth-child(2) { animation-delay: 0.34s; }
.intro-title .t-line:nth-child(3) { animation-delay: 0.5s; }
.intro-title .t-gold {
  color: var(--gold-bright);
  text-shadow: 0 0 26px rgba(230, 203, 144, 0.16);
}
.intro-title .t-wine {
  color: var(--wine-bright);
  text-shadow: 0 0 26px rgba(179, 80, 95, 0.2);
}
@keyframes line-rise {
  from { opacity: 0; transform: translateY(20px); filter: blur(7px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

.intro-sub {
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: 0.28em;
  color: var(--ink-faint);
  opacity: 0;
  animation: intro-fade 0.7s var(--ease-soft) 0.72s both;
}
.intro-head .eyebrow {
  opacity: 0;
  animation: intro-fade 0.7s var(--ease-soft) 0.06s both;
}
@keyframes intro-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* 维度双簇：金美德 / 红原罪，错落倾斜 */
.chip-cluster {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 4px;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.chip-row:nth-child(2) { transform: translateX(18px); }
.chip-row:first-child { transform: rotate(-1.1deg) translateX(-4px); }
.chip-row:last-child { transform: rotate(0.9deg) translateX(10px); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  border-radius: 6px 14px 6px 14px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(34, 28, 29, 0.78), rgba(20, 16, 18, 0.86));
  opacity: 0;
  animation: chip-in 0.55s var(--ease-pop) both;
}
@keyframes chip-in {
  from { opacity: 0; transform: translateY(14px) rotate(3deg) scale(0.92); }
  to { opacity: 1; transform: none; }
}
.chip iconify-icon { font-size: 14px; }

.chip-gold {
  color: var(--gold-bright);
  border-color: rgba(198, 161, 100, 0.28);
  box-shadow: inset 0 0 14px rgba(198, 161, 100, 0.05);
}
.chip-wine {
  color: var(--wine-bright);
  border-color: rgba(140, 42, 61, 0.32);
  box-shadow: inset 0 0 14px rgba(140, 42, 61, 0.07);
}

/* 常驻氛围：呼吸光晕 */
.aura {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.aura-gold {
  top: -130px;
  left: -150px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(198, 161, 100, 0.15), transparent 65%);
  animation: aura-breathe 7s var(--ease-soft) 0s infinite;
}
.aura-wine {
  bottom: -160px;
  right: -170px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(140, 42, 61, 0.18), transparent 65%);
  animation: aura-breathe 8.5s var(--ease-soft) 1.1s infinite;
}
@keyframes aura-breathe {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* 常驻氛围：浮尘微光 */
.dust-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.dust {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  animation: dust-rise linear infinite;
}
.dust-gold { background: radial-gradient(circle, rgba(230, 203, 144, 0.8), transparent 70%); }
.dust-wine { background: radial-gradient(circle, rgba(179, 80, 95, 0.8), transparent 70%); }
@keyframes dust-rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: 0.5; }
  85% { opacity: 0.16; }
  100% { transform: translate3d(var(--drift, 20px), -108vh, 0); opacity: 0; }
}

.intro-foot {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.intro-foot .btn {
  align-self: stretch;
  opacity: 0;
  animation: intro-fade 0.7s var(--ease-soft) 1.25s both;
}

/* 开始按钮：常驻微光呼吸（克制的金色柔晕） */
.btn-gold::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(60% 60% at 50% 50%, rgba(230, 203, 144, 0.3), transparent 70%);
  opacity: 0;
  pointer-events: none;
  animation: glow-breathe 4.6s var(--ease-soft) 2.4s infinite;
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0; transform: scale(0.92); }
  50% { opacity: 0.55; transform: scale(1.05); }
}

/* ============================================================
 * 答题页
 * ============================================================ */
.quiz-head { display: flex; flex-direction: column; gap: 18px; }

.quiz-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: "Noto Serif SC", serif;
}
.quiz-now {
  font-size: 42px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  text-shadow: 0 0 24px rgba(230, 203, 144, 0.12);
}
.quiz-total {
  font-size: 15px;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
}

/* 进度条：渐变流光 */
.progress {
  position: relative;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 244, 224, 0.07);
  overflow: hidden;
}
.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright) 34%, var(--wine-bright) 68%, var(--wine));
  background-size: 220% 100%;
  box-shadow: 0 0 12px rgba(198, 161, 100, 0.45);
  transition: width 0.5s var(--ease-soft);
  animation: flow 2.6s linear infinite;
}
@keyframes flow {
  0% { background-position: 0% 0; }
  100% { background-position: 220% 0; }
}

.quiz-body {
  flex: 1;
  margin-top: 44px;
  transition: opacity 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
}
.quiz-body.is-swap { opacity: 0; transform: translateY(10px); }

.quiz-eyebrow {
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--gold-dim);
}

.quiz-q {
  margin-top: 14px;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(21px, 5.8vw, 27px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
  max-width: 92%;
}

/* 选项：磨砂、非对称圆角、错落排布 */
.opts {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  border-radius: 16px 6px 16px 6px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(34, 28, 29, 0.72), rgba(19, 15, 17, 0.8)),
    linear-gradient(160deg, rgba(255, 244, 224, 0.045), rgba(255, 244, 224, 0.01));
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s var(--ease-soft), border-color 0.3s, background 0.3s,
    box-shadow 0.4s var(--ease-soft), color 0.3s;
}
.opt:nth-child(even) { margin-left: 7%; border-radius: 6px 16px 6px 16px; }
.opt:nth-child(odd) { margin-right: 5%; }
.opt:hover { transform: translateX(4px); border-color: var(--line-warm); }

.opt-mark {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 10px 4px 10px 4px;
  transition: all 0.3s var(--ease-soft);
}

/* 选中态：柔光大渐变 */
.opt.is-selected {
  color: var(--ink);
  border-color: rgba(230, 203, 144, 0.65);
  background: linear-gradient(135deg, rgba(198, 161, 100, 0.16), rgba(140, 42, 61, 0.1));
  box-shadow: 0 0 0 1px rgba(230, 203, 144, 0.12), 0 12px 30px -14px rgba(198, 161, 100, 0.4);
  transform: translateX(6px);
}
.opt.is-selected .opt-mark {
  color: var(--bg-0);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-color: transparent;
  box-shadow: 0 0 14px rgba(230, 203, 144, 0.5);
}

.quiz-foot {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.quiz-foot .btn {
  min-height: 46px;
  padding: 0 18px;
  font-size: 13.5px;
  letter-spacing: 0.1em;
}
.quiz-foot .hint {
  margin-left: auto;
  max-width: 56%;
  text-align: right;
}

/* ============================================================
 * 解析加载页：双灵对峙
 * ============================================================ */
#screen-loading {
  align-items: flex-start;
  justify-content: center;
  gap: 30px;
}

.duel {
  position: relative;
  width: 200px;
  height: 200px;
  margin-left: 18px;
}
.orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  margin: -13px;
  border-radius: 50%;
  filter: blur(1px);
}
.orb-gold {
  background: radial-gradient(circle at 34% 30%, var(--gold-bright), var(--gold) 62%, var(--gold-dim));
  box-shadow: 0 0 34px 10px rgba(198, 161, 100, 0.35);
  animation: orbit-gold 3.4s var(--ease-soft) infinite;
}
.orb-wine {
  background: radial-gradient(circle at 34% 30%, var(--wine-bright), var(--wine) 62%, var(--wine-dim));
  box-shadow: 0 0 34px 10px rgba(140, 42, 61, 0.4);
  animation: orbit-wine 3.4s var(--ease-soft) infinite;
}
.duel-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ink), transparent 70%);
  box-shadow: 0 0 18px 4px rgba(234, 227, 212, 0.35);
  animation: core-pulse 1.7s var(--ease-soft) infinite;
}

@keyframes orbit-gold {
  0%, 100% { transform: translate(-46px, -4px) scale(1); }
  25% { transform: translate(6px, -56px) scale(0.82); }
  50% { transform: translate(46px, 4px) scale(1); }
  75% { transform: translate(6px, 54px) scale(0.86); }
}
@keyframes orbit-wine {
  0%, 100% { transform: translate(46px, 4px) scale(1); }
  25% { transform: translate(6px, 54px) scale(0.86); }
  50% { transform: translate(-46px, -4px) scale(1); }
  75% { transform: translate(6px, -56px) scale(0.82); }
}
@keyframes core-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.5); }
}

.loading-line {
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--ink);
  transition: opacity 0.32s var(--ease-soft);
}
.loading-sub {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  animation: line-in 0.7s 0.28s var(--ease-soft) both;
}
@keyframes line-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
 * 结果页
 * ============================================================ */
#screen-result { padding-left: 22px; padding-right: 22px; }
.result-scroll { display: flex; flex-direction: column; }

/* 双色对章（签名元素） */
.seals {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  padding-left: 6px;
}
.seal {
  position: relative;
  width: 92px;
  height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 8px;
  opacity: 0;
}
.seal-gold {
  border: 2px solid var(--gold);
  background: linear-gradient(150deg, rgba(198, 161, 100, 0.24), rgba(198, 161, 100, 0.06));
  box-shadow: 0 0 26px rgba(198, 161, 100, 0.22), inset 0 0 18px rgba(198, 161, 100, 0.12);
  transform: rotate(-5deg) scale(1.3);
  animation: stamp-gold 0.72s var(--ease-pop) 0.15s forwards;
}
.seal-wine {
  border: 2px solid var(--wine);
  background: linear-gradient(150deg, rgba(140, 42, 61, 0.34), rgba(140, 42, 61, 0.08));
  box-shadow: 0 0 26px rgba(140, 42, 61, 0.32), inset 0 0 18px rgba(140, 42, 61, 0.16);
  transform: translateX(14px) rotate(6deg) scale(1.3);
  animation: stamp-wine 0.72s var(--ease-pop) 0.42s forwards;
}
.seal-char {
  font-family: "Noto Serif SC", serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}
.seal-gold .seal-char { color: var(--gold-bright); text-shadow: 0 0 12px rgba(230, 203, 144, 0.55); }
.seal-wine .seal-char { color: var(--wine-bright); text-shadow: 0 0 12px rgba(179, 80, 95, 0.6); }
.seal-label {
  font-size: 10px;
  letter-spacing: 0.34em;
  opacity: 0.75;
}

@keyframes stamp-gold {
  0% { opacity: 0; transform: rotate(-12deg) scale(1.42); }
  58% { opacity: 1; transform: rotate(-5deg) scale(0.95); }
  100% { opacity: 1; transform: rotate(-5deg) scale(1); }
}
@keyframes stamp-wine {
  0% { opacity: 0; transform: translateX(14px) rotate(14deg) scale(1.42); }
  58% { opacity: 1; transform: translateX(14px) rotate(6deg) scale(0.95); }
  100% { opacity: 1; transform: translateX(14px) rotate(6deg) scale(1); }
}

.result-name {
  margin-top: 34px;
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: clamp(30px, 8.6vw, 40px);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-shadow: 0 0 30px rgba(230, 203, 144, 0.14);
}
.result-sub {
  margin-top: 2px;
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(22px, 6vw, 28px);
  color: var(--wine-bright);
  letter-spacing: 0.08em;
}
.result-line {
  margin-top: 16px;
  max-width: 92%;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-dim);
  border-left: 1px solid var(--line-warm);
  padding-left: 14px;
}

/* 双首得分：美德之首 / 原罪之首 */
.duo-score {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.duo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px 6px 16px 6px;
  border: 1px solid;
}
.duo-row iconify-icon { font-size: 22px; flex: none; }
.duo-gold {
  border-color: rgba(198, 161, 100, 0.35);
  background: linear-gradient(120deg, rgba(198, 161, 100, 0.12), rgba(198, 161, 100, 0.03));
}
.duo-gold iconify-icon { color: var(--gold); }
.duo-wine {
  margin-left: 8%;
  border-color: rgba(140, 42, 61, 0.42);
  background: linear-gradient(120deg, rgba(140, 42, 61, 0.17), rgba(140, 42, 61, 0.04));
}
.duo-wine iconify-icon { color: var(--wine-bright); }
.duo-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.duo-tag {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--ink-faint);
}
.duo-dim {
  font-family: "Noto Serif SC", serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.duo-num {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.duo-num b {
  font-family: "Noto Serif SC", serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}
.duo-gold .duo-num b { color: var(--gold-bright); text-shadow: 0 0 14px rgba(230, 203, 144, 0.25); }
.duo-wine .duo-num b { color: var(--wine-bright); text-shadow: 0 0 14px rgba(179, 80, 95, 0.3); }
.duo-num span { font-size: 12px; color: var(--ink-faint); }

/* 双雷达：错落摆放 */
.radar-wrap {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.radar-card {
  position: relative;
  width: min(88%, 400px);
  padding: 22px 20px 18px;
  border-radius: 20px 8px 20px 8px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(34, 28, 29, 0.78), rgba(19, 15, 17, 0.86)),
    linear-gradient(165deg, rgba(255, 244, 224, 0.05), rgba(255, 244, 224, 0.012));
  box-shadow: inset 0 0 26px rgba(255, 244, 224, 0.02);
}
#radar-card { margin-left: 0; }

.radar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}
.radar-vs {
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}

.radar-title {
  font-size: 14px;
  letter-spacing: 0.3em;
  margin-bottom: 12px;
  padding-left: 4px;
}
.radar-title.gold { color: var(--gold); }
.radar-title.wine { color: var(--wine-bright); }

.radar {
  width: 100%;
  height: auto;
  display: block;
}

/* 光幕分割线：上半场与下半场的过渡仪式 */
.curtain {
  position: relative;
  height: 64px;
  margin: 8px 4px 2px;
}
.curtain-line {
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 1px;
  margin-top: -0.5px;
  background: linear-gradient(90deg, transparent, rgba(198, 161, 100, 0.95) 26%, rgba(230, 203, 144, 0.98) 50%, rgba(179, 80, 95, 0.92) 74%, transparent);
  background-size: 200% 100%;
  background-position: 100% 0;
  opacity: 0.22;
  transform: scaleX(0.16);
  transition: transform 1.15s var(--ease-soft), opacity 0.7s var(--ease-soft), background-position 1.8s var(--ease-soft);
}
.curtain::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, transparent, rgba(230, 203, 144, 0.75), transparent);
  opacity: 0;
  transition: opacity 0.9s var(--ease-soft);
}
.curtain-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-bright) 0%, var(--wine-bright) 72%, transparent 100%);
  opacity: 0;
  transform: scale(0.35);
  transition: transform 0.9s var(--ease-pop), opacity 0.6s var(--ease-soft);
}
.curtain.is-lit .curtain-line {
  transform: scaleX(1);
  opacity: 0.9;
  background-position: 0 0;
}
.curtain.is-lit::before {
  opacity: 0.85;
  box-shadow: 0 0 34px 10px rgba(230, 203, 144, 0.24), 0 0 34px 10px rgba(179, 80, 95, 0.2);
}
.curtain.is-lit .curtain-core {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 26px 6px rgba(230, 203, 144, 0.5), 0 0 26px 6px rgba(179, 80, 95, 0.42);
}

/* 双面解读 */
.reading {
  margin-top: 30px;
  padding: 22px 20px;
  border-radius: 22px 8px 22px 8px;
  border: 1px solid var(--line);
}
.reading-gold {
  background: linear-gradient(165deg, rgba(198, 161, 100, 0.14), rgba(198, 161, 100, 0.04)),
    linear-gradient(165deg, rgba(34, 28, 29, 0.78), rgba(19, 15, 17, 0.86));
  border-color: rgba(198, 161, 100, 0.28);
  box-shadow: inset 0 0 30px rgba(198, 161, 100, 0.05);
}
.reading-wine {
  margin-top: 22px;
  margin-left: 6%;
  background: linear-gradient(165deg, rgba(140, 42, 61, 0.18), rgba(140, 42, 61, 0.05)),
    linear-gradient(165deg, rgba(34, 28, 29, 0.78), rgba(19, 15, 17, 0.86));
  border-color: rgba(140, 42, 61, 0.32);
  box-shadow: inset 0 0 30px rgba(140, 42, 61, 0.06);
}
.reading-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.reading-head iconify-icon { font-size: 18px; }
.reading-gold .reading-head iconify-icon { color: var(--gold); }
.reading-wine .reading-head iconify-icon { color: var(--wine-bright); }
.reading-head h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.reading p {
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-dim);
}

/* 前三名条 */
.top-lists {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.top-list { width: 82%; }
.top-list:nth-child(2) { align-self: flex-end; }
.top-label {
  font-size: 13px;
  letter-spacing: 0.3em;
  margin-bottom: 12px;
}
.top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.top-rank {
  flex: none;
  width: 22px;
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  color: var(--ink-faint);
}
.top-name {
  flex: none;
  width: 42px;
  font-size: 13.5px;
  color: var(--ink);
  letter-spacing: 0.1em;
}
.top-bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 244, 224, 0.06);
  overflow: hidden;
}
.top-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 1s var(--ease-soft);
}
.top-bar.gold-bar i { background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright)); box-shadow: 0 0 10px rgba(198, 161, 100, 0.4); }
.top-bar.wine-bar i { background: linear-gradient(90deg, var(--wine-dim), var(--wine-bright)); box-shadow: 0 0 10px rgba(140, 42, 61, 0.4); }

/* 洞察总结：人格界定 + 光暗配比 + 三段解读 */
.insight {
  margin-top: 30px;
  padding: 22px 20px;
  border-radius: 22px 8px 22px 8px;
  border: 1px solid rgba(198, 161, 100, 0.32);
  background: linear-gradient(160deg, rgba(198, 161, 100, 0.08), rgba(140, 42, 61, 0.05)),
    linear-gradient(165deg, rgba(34, 28, 29, 0.78), rgba(19, 15, 17, 0.86));
  box-shadow: inset 0 0 30px rgba(198, 161, 100, 0.04);
}
.insight-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.insight-head iconify-icon { font-size: 18px; color: var(--gold); }
.insight-head h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.insight-type {
  padding: 14px;
  border-radius: 14px 5px 14px 5px;
  border: 1px solid var(--line);
  background: rgba(255, 244, 224, 0.03);
}
.insight-name {
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.insight-id {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-dim);
}
.light-dark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.ld-label {
  flex: none;
  font-size: 12px;
  letter-spacing: 0.15em;
}
.ld-label b {
  font-family: "Noto Serif SC", serif;
  font-size: 17px;
}
.ld-label.gold { color: var(--gold-bright); }
.ld-label.wine { color: var(--wine-bright); }
.ld-track {
  flex: 1;
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 244, 224, 0.06);
}
.ld-gold {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  box-shadow: 0 0 10px rgba(198, 161, 100, 0.4);
  transition: width 1.1s var(--ease-soft);
}
.ld-wine {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--wine-bright), var(--wine-dim));
  box-shadow: 0 0 10px rgba(140, 42, 61, 0.4);
  transition: width 1.1s var(--ease-soft) 0.15s;
}
.insight.is-in .ld-gold { width: var(--light, 50%); }
.insight.is-in .ld-wine { width: var(--dark, 50%); }
.insight-read {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.insight-seg {
  padding-left: 12px;
  border-left: 1px solid var(--line-warm);
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-dim);
}
.insight-seg.sin { border-left-color: rgba(179, 80, 95, 0.6); }
.insight-seg.virt { border-left-color: rgba(198, 161, 100, 0.6); }
.insight-seg.second { border-left-color: var(--line-warm); }
.insight-seg.tension { color: var(--ink); }
.insight-seg.balance { border-left-color: rgba(230, 203, 144, 0.75); color: var(--ink); }
.insight-action {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink);
}

/* 给你的建议 */
.advice {
  margin-top: 30px;
  padding: 22px 20px;
  border-radius: 22px 8px 22px 8px;
  border: 1px solid rgba(198, 161, 100, 0.3);
  background: linear-gradient(160deg, rgba(198, 161, 100, 0.1), rgba(140, 42, 61, 0.06)),
    linear-gradient(165deg, rgba(34, 28, 29, 0.78), rgba(19, 15, 17, 0.86));
  box-shadow: inset 0 0 30px rgba(198, 161, 100, 0.04);
}
.advice-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.advice-head iconify-icon { font-size: 18px; color: var(--gold); }
.advice-head h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.advice-item {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px 5px 14px 5px;
  border-left: 2px solid;
}
.advice-item-gold {
  border-left-color: rgba(198, 161, 100, 0.65);
  background: linear-gradient(120deg, rgba(198, 161, 100, 0.08), transparent);
}
.advice-item-wine {
  border-left-color: rgba(179, 80, 95, 0.65);
  background: linear-gradient(120deg, rgba(140, 42, 61, 0.1), transparent);
}
.advice-title {
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.advice-item-gold .advice-title { color: var(--gold-bright); }
.advice-item-wine .advice-title { color: var(--wine-bright); }
.advice-body {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-dim);
}
.advice-mix {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink);
}

.result-actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
}
.result-actions .btn { flex: 1; }
.btn-ghost { flex: 0 0 auto; }

/* ---------- 分步渐入 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-soft), transform 0.7s var(--ease-soft);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
 * 海报弹层
 * ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 7, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: mask-in 0.4s var(--ease-soft) both;
}
@keyframes mask-in { from { opacity: 0; } to { opacity: 1; } }

.modal-body {
  position: relative;
  width: min(100%, 380px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 18px 26px;
  border-radius: 22px 8px 22px 8px;
  border: 1px solid var(--line-warm);
  background: linear-gradient(170deg, #171114, #0E0B0D);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  animation: modal-in 0.5s var(--ease-pop) both;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px 5px 12px 5px;
  background: rgba(255, 244, 224, 0.04);
  color: var(--ink-dim);
  cursor: pointer;
  transition: all 0.3s var(--ease-soft);
}
.modal-close:hover { color: var(--ink); border-color: var(--line-warm); }

.poster-frame {
  width: 100%;
  display: flex;
  justify-content: center;
}
.poster-frame img {
  width: 100%;
  border-radius: 14px 6px 14px 6px;
  border: 1px solid var(--line-warm);
  box-shadow: 0 18px 46px -16px rgba(0, 0, 0, 0.7);
}

/* 海报雷达样式切换 */
.poster-style {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-bottom: 14px;
}
.style-btn {
  flex: 1;
  padding: 9px 0;
  border-radius: 12px 4px 12px 4px;
  border: 1px solid var(--line);
  background: rgba(255, 244, 224, 0.03);
  color: var(--ink-dim);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-soft), color 0.3s, background 0.3s, box-shadow 0.4s;
}
.style-btn.is-active {
  color: var(--gold-bright);
  border-color: rgba(198, 161, 100, 0.55);
  background: linear-gradient(120deg, rgba(198, 161, 100, 0.16), rgba(140, 42, 61, 0.08));
  box-shadow: 0 0 18px rgba(198, 161, 100, 0.12);
}

.poster-tip {
  margin-top: 18px;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
}
.poster-tip-sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}

/* 背景音乐悬浮开关：右上角，全局可点 */
.music-toggle {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
  z-index: 40;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 14px 5px 14px 5px;
  border: 1px solid rgba(198, 161, 100, 0.35);
  background: linear-gradient(165deg, rgba(38, 31, 32, 0.8), rgba(21, 17, 19, 0.88));
  color: var(--gold-bright);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.5s var(--ease-soft), transform 0.5s var(--ease-soft),
    border-color 0.3s, color 0.3s, opacity 0.3s;
}
.music-toggle.is-in {
  opacity: 1;
  transform: none;
}
.music-toggle iconify-icon {
  font-size: 18px;
}
.music-toggle:active {
  transform: scale(0.94);
}
.music-toggle.is-muted {
  opacity: 0.48;
  border-color: var(--line);
  color: var(--ink-dim);
}

/* ============================================================
 * 试炼阶段（24 题后）：压暗 + 若隐若现 + 契印牌
 * ============================================================ */
.trial-veil {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 40%, rgba(8, 6, 7, 0.3), rgba(5, 4, 5, 0.92));
  opacity: 0;
  transition: opacity 1.3s var(--ease-soft);
}
body.trial-mode .trial-veil { opacity: 1; }
.trial-veil::before,
.trial-veil::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.trial-veil::before {
  top: -140px;
  left: -160px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(198, 161, 100, 0.14), transparent 65%);
  animation: aura-breathe 7s var(--ease-soft) 0s infinite;
}
.trial-veil::after {
  bottom: -160px;
  right: -170px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(140, 42, 61, 0.18), transparent 65%);
  animation: aura-breathe 8.5s var(--ease-soft) 1.1s infinite;
}

/* 试炼开场覆盖层 */
.trial-intro {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: radial-gradient(120% 100% at 50% 45%, #100C0E, #060506 78%);
  text-align: center;
}
.trial-intro[hidden] { display: none; }
.trial-aura {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.trial-aura-gold {
  top: 12%;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(198, 161, 100, 0.16), transparent 65%);
  animation: aura-breathe 6s var(--ease-soft) infinite;
}
.trial-aura-wine {
  bottom: 10%;
  right: -110px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(140, 42, 61, 0.2), transparent 65%);
  animation: aura-breathe 7.5s var(--ease-soft) 0.8s infinite;
}
.trial-eyebrow {
  font-size: 12px;
  letter-spacing: 0.5em;
  color: var(--ink-faint);
  animation: trial-in 1.2s var(--ease-soft) 0.1s both;
}
.trial-title {
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: 36px;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-shadow: 0 0 32px rgba(230, 203, 144, 0.22);
  animation: trial-in 1.2s var(--ease-soft) 0.3s both;
}
.trial-sub {
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--wine-bright);
  animation: trial-in 1.2s var(--ease-soft) 0.55s both;
}
@keyframes trial-in {
  from { opacity: 0; transform: translateY(14px); filter: blur(7px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* 试炼头部：替代普通进度条 */
.trial-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trial-head[hidden] { display: none; }
body.trial-mode .quiz-count,
body.trial-mode .progress { display: none; }
body.trial-mode .trial-head { display: flex; }
.trial-mark {
  font-family: "Noto Serif SC", serif;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  color: var(--gold-bright);
  text-shadow: 0 0 20px rgba(230, 203, 144, 0.4);
}
.trial-label {
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--ink-faint);
}

/* 试炼题目：神龛石框 + 镜渊倒影 + 逐字显形 + 证词卡选项 */
.trial-shrine { position: relative; }
body.trial-mode .trial-shrine {
  margin-top: 8px;
  padding: 22px 18px 54px;
  overflow: hidden;
  border: 1px solid rgba(140, 42, 61, 0.4);
  outline: 1px solid rgba(198, 161, 100, 0.35);
  outline-offset: 5px;
  border-radius: 20px 7px 20px 7px;
  background: linear-gradient(165deg, rgba(20, 15, 17, 0.55), rgba(12, 9, 11, 0.4));
}
body.trial-mode .trial-shrine::before,
body.trial-mode .trial-shrine::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
body.trial-mode .trial-shrine::before {
  top: -5px;
  left: -5px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}
body.trial-mode .trial-shrine::after {
  bottom: -5px;
  right: -5px;
  border-bottom: 2px solid var(--wine-bright);
  border-right: 2px solid var(--wine-bright);
}
body.trial-mode .quiz-q {
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  letter-spacing: 0.05em;
  text-shadow: 0 0 26px rgba(230, 203, 144, 0.12);
  /* 镜渊倒影：下方镜像渐隐（不支持的浏览器自动降级为无倒影） */
  -webkit-box-reflect: below 0 linear-gradient(180deg, transparent 55%, rgba(255, 244, 224, 0.1) 78%, transparent 100%);
}
body.trial-mode .quiz-q.trial-type { text-shadow: 0 0 24px rgba(230, 203, 144, 0.22); }
body.trial-mode .opts { perspective: 700px; }
body.trial-mode .opt {
  position: relative;
  color: var(--ink);
  border-radius: 20px 8px 20px 8px;
  border-color: rgba(198, 161, 100, 0.28);
  background: linear-gradient(160deg, rgba(30, 24, 26, 0.88), rgba(14, 11, 13, 0.94));
  box-shadow: 0 10px 26px -18px rgba(0, 0, 0, 0.8), inset 0 0 22px rgba(198, 161, 100, 0.04);
  animation: opt-trial 0.7s var(--ease-soft) both;
}
body.trial-mode .opt:nth-child(even) { border-radius: 8px 20px 8px 20px; }
@keyframes opt-trial {
  0% { opacity: 0; transform: translateY(18px) rotateX(72deg); filter: blur(4px); }
  45% { opacity: 1; box-shadow: 0 0 24px rgba(230, 203, 144, 0.16), inset 0 0 22px rgba(198, 161, 100, 0.08); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
body.trial-mode .opt.is-selected {
  border-color: rgba(179, 80, 95, 0.7);
  background: linear-gradient(135deg, rgba(140, 42, 61, 0.26), rgba(198, 161, 100, 0.12));
  background-size: 200% 200%;
  box-shadow: 0 0 0 1px rgba(179, 80, 95, 0.18), 0 0 34px rgba(140, 42, 61, 0.38);
  transform: translateX(6px) scale(0.985);
  animation: opt-ignite 1.2s var(--ease-soft);
}
@keyframes opt-ignite {
  from { background-position: 0% 0%; }
  to { background-position: 100% 100%; }
}
/* 镜渊涟漪：选中时水波扩散 */
body.trial-mode .opt.is-selected::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 1px solid rgba(230, 203, 144, 0.4);
  pointer-events: none;
  animation: ripple 1s var(--ease-soft) both;
}
@keyframes ripple {
  from { transform: scale(0.94); opacity: 0.85; }
  to { transform: scale(1.06); opacity: 0; }
}
/* 证词卡：壹贰叁肆印章式标记 */
body.trial-mode .opt-mark {
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  border-radius: 9px 3px 9px 3px;
  border-color: rgba(198, 161, 100, 0.45);
  background: linear-gradient(150deg, rgba(198, 161, 100, 0.1), transparent);
}
body.trial-mode .opt.is-selected .opt-mark {
  color: var(--bg-0);
  background: linear-gradient(150deg, var(--wine-bright), var(--wine));
  border-color: transparent;
  box-shadow: 0 0 12px rgba(179, 80, 95, 0.5);
}
/* 盖章：选中即被“审”字印覆盖 */
body.trial-mode .opt.is-stamped::after {
  content: "审";
  position: absolute;
  top: 8px;
  right: 10px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(179, 80, 95, 0.85);
  font-family: "Noto Serif SC", serif;
  font-size: 12px;
  color: rgba(224, 174, 182, 0.95);
  background: rgba(140, 42, 61, 0.25);
  opacity: 0;
  transform: scale(1.5) rotate(-10deg);
  animation: seal-stamp 0.55s var(--ease-pop) forwards;
}
@keyframes seal-stamp {
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}
/* 收束：盖章后卡片沉入暗处 */
body.trial-mode .opt.is-sinking {
  transform: translateY(10px) scale(0.98);
  opacity: 0.55;
  transition: transform 0.6s var(--ease-soft), opacity 0.6s var(--ease-soft);
}
body.trial-mode .quiz-foot .hint {
  color: var(--wine-bright);
  letter-spacing: 0.18em;
}

/* ============================================================
 * 矮屏适配：收紧开场页间距，让开始按钮首屏直接可见
 * ============================================================ */
@media (max-height: 740px) {
  #screen-intro {
    padding-top: calc(22px + env(safe-area-inset-top));
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
  .intro-title { margin-top: 12px; font-size: clamp(34px, 10vw, 44px); }
  .intro-sub { margin-top: 8px; font-size: 12px; }
  .chip-cluster { margin-top: 16px; gap: 10px; }
  .chip-row { gap: 6px; }
  .chip { padding: 5px 10px; font-size: 11px; }
  .intro-foot { margin-top: 20px; gap: 10px; }
  .intro-foot .hint { font-size: 10.5px; }
}

/* ============================================================
 * 动效偏好：尊重系统「减弱动态」
 * ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .seal { opacity: 1; transform: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 小屏适配 ---------- */
@media (max-width: 360px) {
  .screen { padding-left: 18px; padding-right: 18px; }
  .seal { width: 82px; height: 82px; }
  .seal-char { font-size: 32px; }
  .radar-card { width: min(90%, 340px); }
  .curtain { margin-left: 0; margin-right: 0; }
}
