:root {
  --bg-lacquer: #0E1116;
  --bg-palace: #141B24;
  --bg-elevated: #18222E;
  --gold: #E2B45A;
  --gold-bright: #F6D98E;
  --malachite: #2E8B78;
  --malachite-bright: #49B39D;
  --cinnabar: #D14836;
  --ivory: #F5EFE2;
  --text-secondary: #C5CFDC;
  --text-muted: #9AA8BA;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --app-height: 100vh;
  --host-top-inset: 0px;
  --host-bottom-inset: 0px;
  --canopy-bloom: rgba(226, 174, 78, 0.22);
  --canopy-rim: rgba(226, 180, 90, 0.28);
}

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

html {
  height: 100%;
  background-color: #06080C;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  min-height: 100vh;
  min-height: var(--app-height, 100vh);
  background-color: #0E1116;
  color: #F5EFE2;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  overflow-x: hidden;
  transition: background-color 0.6s ease;
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

button:focus {
  outline: 2px solid rgba(226, 180, 90, 0.7);
  outline-offset: 2px;
}

.poster-tab:focus,
.edict-slip:focus,
.sundial-dock:focus,
.guide-portrait-btn:focus,
.guide-tap-btn:focus,
.route-stop:focus {
  outline: none;
}

@supports selector(:focus-visible) {
  button:focus {
    outline: none;
  }
  button:focus-visible {
    outline: 2px solid #F6D98E;
    outline-offset: 2px;
  }
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

/* 核心规格：小红书竖屏容器比例（手机全出血，桌面居中 396px 竖屏机壳） */
.tang-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  min-height: var(--app-height, 100vh);
  margin: 0 auto;
  background-color: #0E1116;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* 沉浸叠放顶栏 */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-top: calc(10px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 6px;
  position: relative;
  z-index: 6;
}

.has-host-inset .topbar {
  padding-top: var(--host-top-inset, 16px);
}

.has-host-capsule .topbar {
  padding-top: var(--host-top-inset, 10px);
  padding-right: var(--host-capsule-right, 98px);
  padding-left: 12px;
}

.has-host-capsule .brand-seal {
  width: 26px;
  height: 26px;
  margin-right: 7px;
}

.has-host-capsule .brand-icon-svg {
  width: 17px;
  height: 17px;
}

.has-host-capsule .brand-name {
  font-size: 15px;
  white-space: nowrap;
}

.has-host-capsule .brand-sub {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 126px;
}

.has-host-capsule .audio-toggle-btn {
  width: 26px;
  height: 26px;
  margin-right: 5px;
}

.has-host-capsule .codex-trigger {
  padding: 5px 9px;
  font-size: 11px;
  white-space: nowrap;
}

.has-host-capsule .codex-dot {
  width: 6px;
  height: 6px;
  margin-right: 5px;
}

.result-topbar {
  padding-bottom: 10px;
}

.brand-group {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background-color: rgba(24, 18, 15, 0.88);
  background-image: radial-gradient(circle at 50% 44%, rgba(209, 72, 54, 0.34) 0%, rgba(16, 13, 12, 0.92) 78%);
  margin-right: 10px;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.52), inset 0 0 0 1px rgba(226, 180, 90, 0.48);
}

.brand-icon-svg {
  width: 19px;
  height: 19px;
  display: block;
}

.brand-titles {
  min-width: 0;
}

.brand-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #F6D98E;
  line-height: 1.22;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.88);
}

.brand-sub {
  font-size: 12px;
  color: #DCE3EC;
  line-height: 1.3;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.92);
}

.topbar-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.audio-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 7px;
  border-radius: 50%;
  background-color: rgba(12, 18, 26, 0.78);
  color: #F6D98E;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(226, 180, 90, 0.38);
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.2s ease;
}

.audio-toggle-btn:active {
  transform: scale(0.92);
  background-color: #213041;
}

.audio-icon-svg {
  width: 15px;
  height: 15px;
}

.audio-toggle-btn .sound-mute-slash {
  display: none;
}

.audio-toggle-btn.is-pending {
  color: #DFC382;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(226, 180, 90, 0.34);
}

.audio-toggle-btn.is-pending .sound-waves {
  opacity: 0.55;
}

.audio-toggle-btn.is-muted {
  color: #8E9CAD;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(154, 168, 186, 0.28);
}

.audio-toggle-btn.is-muted .sound-waves {
  opacity: 0.2;
}

.audio-toggle-btn.is-muted .sound-mute-slash {
  display: block;
}

.audio-toggle-btn.is-speaking {
  box-shadow: 0 0 12px rgba(246, 217, 142, 0.32), inset 0 0 0 1.2px rgba(246, 217, 142, 0.68);
}

.codex-trigger {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background-color: rgba(12, 18, 26, 0.78);
  color: #F6D98E;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(226, 180, 90, 0.38);
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.codex-trigger:active {
  transform: scale(0.96);
  background-color: #213041;
}

.codex-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #49B39D;
  margin-right: 6px;
}

/* ==========================================================================
   全出血长安天幕笼罩系统（432px 纵深贯通，向下包裹双鲤器物栏与司辰叙事席）
   ========================================================================== */
.play-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  overflow: hidden;
  --canopy-bloom: rgba(226, 170, 74, 0.24);
  --canopy-sub-bloom: rgba(46, 139, 120, 0.08);
}

.play-layout.stage-mood-gold {
  --canopy-bloom: rgba(242, 188, 86, 0.28);
  --canopy-sub-bloom: rgba(214, 132, 58, 0.12);
}

.play-layout.stage-mood-amber {
  --canopy-bloom: rgba(222, 98, 48, 0.3);
  --canopy-sub-bloom: rgba(168, 52, 36, 0.14);
}

.play-layout.stage-mood-crimson {
  --canopy-bloom: rgba(214, 64, 44, 0.32);
  --canopy-sub-bloom: rgba(156, 44, 32, 0.16);
}

.play-layout.stage-mood-rain {
  --canopy-bloom: rgba(74, 114, 158, 0.3);
  --canopy-sub-bloom: rgba(196, 82, 48, 0.14);
}

.play-layout.stage-mood-dawn {
  --canopy-bloom: rgba(73, 179, 157, 0.26);
  --canopy-sub-bloom: rgba(226, 184, 96, 0.12);
}

.scene-canopy {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 468px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* 双缓冲章节画卷延伸至 356px，跨过夜报与双鲤器物区自然溶合 */
.stage-art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 356px;
  object-fit: cover;
  object-position: 50% 42%;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.65s ease, object-position 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.65s ease;
  animation: canopyBreath 16s ease-in-out infinite alternate;
}

.stage-art.is-visible {
  opacity: 0.96;
}

@keyframes canopyBreath {
  0% { transform: scale(1.02) translateY(0); }
  100% { transform: scale(1.08) translateY(-5px); }
}

.stage-mood-gold .stage-art {
  filter: saturate(1.12) contrast(1.04);
}

.stage-mood-amber .stage-art,
.stage-mood-crimson .stage-art {
  filter: saturate(1.18) contrast(1.08);
}

.stage-mood-rain .stage-art {
  filter: saturate(1.08) contrast(1.1) brightness(0.96);
}

.stage-mood-dawn .stage-art {
  filter: saturate(1.08) contrast(1.04) brightness(1.03);
}

.ember-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 420px;
  pointer-events: none;
  z-index: 3;
}

/* 柔和穹顶暗角：顶栏可读且不把晨曦云海压窄 */
.canopy-eave-vignette {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 112px;
  left: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 9, 14, 0.56) 0%, rgba(10, 14, 20, 0.04) 26%, rgba(10, 14, 20, 0.12) 64%, rgba(14, 17, 22, 0.88) 100%),
    radial-gradient(ellipse 122% 88% at 50% 38%, rgba(8, 11, 16, 0) 48%, rgba(6, 9, 14, 0.66) 100%);
}

/* 无痕底雾过渡（置于色温体积光之下，不吞没章节色温） */
.canopy-bottom-mist {
  position: absolute;
  top: 196px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(14, 17, 22, 0) 0%,
    rgba(14, 17, 22, 0.38) 32%,
    rgba(14, 17, 22, 0.82) 62%,
    #0E1116 96%
  );
}

/* 章节色温体积光（z-index: 3 浮于底雾之上，把暖金/赤焰/冷雨/晨青真正漫染进双鲤栏与司辰舞台） */
.canopy-mood-bloom {
  position: absolute;
  top: 136px;
  left: -14%;
  right: -14%;
  height: 324px;
  z-index: 3;
  background:
    radial-gradient(ellipse 86% 66% at 38% 46%, var(--canopy-bloom) 0%, rgba(14, 17, 22, 0) 74%),
    radial-gradient(ellipse 70% 54% at 72% 58%, var(--canopy-sub-bloom) 0%, rgba(14, 17, 22, 0) 72%);
  transition: background 0.65s ease;
}

.stage-visual {
  position: relative;
  z-index: 4;
}

.stage-art-wrap {
  position: relative;
  min-height: 234px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 右上悬浮半透浑天五维晷 */
.sundial-dock {
  position: absolute;
  top: var(--sundial-top, 48px);
  right: 14px;
  width: 102px;
  height: 102px;
  z-index: 5;
  border-radius: 50%;
  background-color: rgba(10, 14, 20, 0.56);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.52), inset 0 0 0 1px rgba(226, 180, 90, 0.3);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}

@supports ((-webkit-backdrop-filter: blur(5px)) or (backdrop-filter: blur(5px))) {
  .sundial-dock {
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
  }
}

.sundial-dock:active {
  transform: scale(0.95) rotate(6deg);
  box-shadow: 0 4px 16px rgba(246, 217, 142, 0.25), inset 0 0 0 1px rgba(246, 217, 142, 0.65);
}

.sundial-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sundial-needle-group {
  transition: transform 0.52s cubic-bezier(0.34, 1.42, 0.64, 1);
}

/* 浸入夜雾与水面微光中的风声密语（去除硬切暗色横条） */
.stage-horizon-bar {
  position: relative;
  z-index: 5;
  margin-top: auto;
  padding: 24px 16px 6px;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0) 0%, rgba(10, 14, 20, 0.44) 100%);
}

.ward-whisper {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: flex-start;
  min-height: 22px;
}

.whisper-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #E2B45A;
  margin-top: 6px;
  margin-right: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(246, 217, 142, 0.85);
}

.whisper-text {
  font-size: 12px;
  color: #EAEFF6;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.98), 0 0 16px rgba(0, 0, 0, 0.85);
}

.ward-whisper.is-flash .whisper-text {
  color: #F6D98E;
}

/* 无通栏边框的悬浮双鲤器物区（去除两条 100% 硬直线，仅以中心渐隐泥金气韵过渡，让天幕与司辰浑然一体） */
.tally-instrument {
  display: flex;
  align-items: center;
  padding: 6px 16px 8px;
  position: relative;
}

.tally-instrument::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(226, 180, 90, 0), rgba(226, 180, 90, 0.16) 24%, rgba(226, 180, 90, 0.16) 76%, rgba(226, 180, 90, 0));
}

.fish-chamber {
  position: relative;
  width: 76px;
  height: 40px;
  margin-right: 12px;
  flex-shrink: 0;
  border-radius: 8px;
  background-color: rgba(8, 11, 16, 0.86);
  box-shadow: inset 0 0 0 1px rgba(226, 180, 90, 0.28);
  overflow: hidden;
  transition: box-shadow 0.28s ease;
}

.fish-chamber.is-gleam {
  box-shadow: 0 0 16px rgba(246, 217, 142, 0.42), inset 0 0 0 1px rgba(246, 217, 142, 0.72);
}

.fish-clasp-seam {
  position: absolute;
  left: 50%;
  top: 5px;
  bottom: 5px;
  width: 1px;
  background: linear-gradient(180deg, rgba(246, 217, 142, 0), rgba(246, 217, 142, 0.62), rgba(246, 217, 142, 0));
}

.fish-relief {
  position: absolute;
  top: 50%;
  width: 19px;
  height: 34px;
  margin-top: -17px;
  object-fit: contain;
  transition: left 0.42s cubic-bezier(0.22, 1, 0.36, 1), right 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.65));
}

.fish-relief-l {
  left: 3px;
}

.fish-relief-r {
  right: 3px;
}

.instrument-meta {
  flex: 1;
  min-width: 0;
}

.instrument-era-row {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drum-tag {
  color: #F6D98E;
}

.question-kicker-sep {
  margin: 0 5px;
  color: #9AA8BA;
}

.loc-name {
  color: #F5EFE2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.instrument-sub-row {
  display: flex;
  align-items: center;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.28;
  white-space: nowrap;
}

.tally-state-text {
  color: #9AA8BA;
  margin-right: 8px;
}

.lead-path-badge {
  font-weight: 600;
  color: #49B39D;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prev-act-btn {
  padding: 5px 10px;
  border-radius: 7px;
  background-color: rgba(29, 41, 56, 0.88);
  color: #DCE3EC;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  margin-left: 8px;
}

.prev-act-btn:active {
  background-color: #293C52;
}

/* ==========================================================================
   下半屏：沐浴在场景余晖里的司辰逐字倾诉舞台 + 三枚乌木错金牙牌
   ========================================================================== */
.decision-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 11px 16px 18px;
  padding-bottom: calc(18px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  position: relative;
  z-index: 4;
}

.guide-stage {
  display: flex;
  align-items: flex-start;
  padding: 2px 0 12px;
  margin-bottom: 11px;
  position: relative;
  border-bottom: 1px solid rgba(226, 180, 90, 0.16);
}

.guide-stage::after {
  content: "";
  position: absolute;
  left: 104px;
  bottom: -3px;
  width: 5px;
  height: 5px;
  background-color: #E2B45A;
  transform: rotate(45deg);
  opacity: 0.72;
}

.guide-stage.is-urgent {
  border-bottom-color: rgba(218, 92, 74, 0.28);
}

.guide-stage.is-urgent::after {
  background-color: #E86F5C;
}

.guide-portrait-btn {
  position: relative;
  width: 76px;
  height: 98px;
  margin-right: 12px;
  flex-shrink: 0;
  border-radius: 38px 38px 10px 10px;
  background-color: #0B0F15;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.58), inset 0 0 0 1.3px rgba(226, 180, 90, 0.52);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

/* 司辰正在逐字倾诉或语音播报时，拱龛边缘泛起温和人声烛晕呼吸 */
.guide-stage.is-speaking .guide-portrait-btn,
.guide-stage.is-voicing .guide-portrait-btn {
  animation: portraitVoicePulse 1.35s ease-in-out infinite alternate;
}

.guide-stage.is-urgent.is-speaking .guide-portrait-btn,
.guide-stage.is-urgent.is-voicing .guide-portrait-btn {
  animation: portraitUrgentPulse 1.1s ease-in-out infinite alternate;
}

@keyframes portraitVoicePulse {
  0% { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.58), 0 0 8px rgba(246, 217, 142, 0.16), inset 0 0 0 1.3px rgba(226, 180, 90, 0.52); }
  100% { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.58), 0 0 18px rgba(246, 217, 142, 0.38), inset 0 0 0 1.5px rgba(246, 217, 142, 0.84); }
}

@keyframes portraitUrgentPulse {
  0% { box-shadow: 0 8px 22px rgba(209, 72, 54, 0.32), inset 0 0 0 1.4px rgba(240, 118, 96, 0.68); }
  100% { box-shadow: 0 8px 26px rgba(209, 72, 54, 0.54), 0 0 18px rgba(232, 111, 92, 0.42), inset 0 0 0 1.6px rgba(252, 165, 145, 0.92); }
}

.guide-stage.is-urgent .guide-portrait-btn {
  box-shadow: 0 8px 24px rgba(209, 72, 54, 0.38), inset 0 0 0 1.5px rgba(240, 118, 96, 0.78);
}

.guide-portrait-btn:active {
  transform: scale(0.95);
}

.guide-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.guide-nameplate {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  padding: 1px 8px;
  border-radius: 999px;
  background-color: rgba(12, 17, 24, 0.92);
  color: #F6D98E;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.guide-stage.is-urgent .guide-nameplate {
  background-color: rgba(132, 32, 22, 0.94);
  color: #F5EFE2;
}

.guide-dialogue {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.guide-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.guide-role-pill {
  font-size: 12px;
  font-weight: 700;
  color: #49B39D;
  line-height: 1.25;
}

.guide-stage.is-urgent .guide-role-pill {
  color: #F08D7E;
}

.guide-meta-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.guide-voice-btn {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  margin-right: 5px;
  border-radius: 999px;
  background-color: rgba(20, 29, 40, 0.86);
  color: #D7C49B;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: inset 0 0 0 1px rgba(226, 180, 90, 0.22);
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.guide-voice-btn.is-voicing {
  background-color: rgba(226, 180, 90, 0.16);
  color: #F6D98E;
  box-shadow: inset 0 0 0 1px rgba(246, 217, 142, 0.45);
}

.guide-voice-btn.is-muted {
  color: #8A97A8;
  box-shadow: inset 0 0 0 1px rgba(154, 168, 186, 0.18);
}

.voice-bars {
  display: inline-flex;
  align-items: center;
  height: 10px;
  margin-right: 4px;
}

.voice-bars i {
  display: block;
  width: 2px;
  height: 8px;
  margin-right: 1.5px;
  border-radius: 1px;
  background-color: currentColor;
  transform: scaleY(0.45);
  transform-origin: center bottom;
  transition: transform 0.18s ease;
}

.voice-bars i:last-child {
  margin-right: 0;
}

.guide-voice-btn.is-voicing .voice-bars i:nth-child(1) {
  animation: voiceWaveBar 0.56s ease-in-out infinite alternate;
}

.guide-voice-btn.is-voicing .voice-bars i:nth-child(2) {
  animation: voiceWaveBar 0.44s 0.14s ease-in-out infinite alternate;
}

.guide-voice-btn.is-voicing .voice-bars i:nth-child(3) {
  animation: voiceWaveBar 0.62s 0.26s ease-in-out infinite alternate;
}

@keyframes voiceWaveBar {
  0% { transform: scaleY(0.35); }
  100% { transform: scaleY(1); }
}

.guide-tap-btn {
  padding: 2px 8px;
  border-radius: 999px;
  background-color: rgba(20, 29, 40, 0.86);
  color: #C5CFDC;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.guide-tap-btn:active,
.guide-tap-btn.is-open {
  background-color: rgba(46, 139, 120, 0.28);
  color: #F6D98E;
}

.guide-bridge {
  font-size: 13px;
  line-height: 1.5;
  color: #F6D98E;
  margin-bottom: 4px;
}

.guide-prompt {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.54;
  color: #F5EFE2;
}

/* 预占位无抖动逐字吐词样式：未吐出字隐形占位锁死行高，刚吐出字泛暖金余韵，零宽度烛火游标跟随 */
.speech-fresh {
  color: #FDE5A2;
  text-shadow: 0 0 10px rgba(246, 217, 142, 0.52);
}

.speech-ghost {
  visibility: hidden;
}

.speech-caret {
  display: inline-block;
  width: 0;
  height: 0;
  overflow: visible;
  position: relative;
  vertical-align: baseline;
}

.speech-caret::after {
  content: "";
  position: absolute;
  left: 2px;
  top: -0.78em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #F6D98E;
  box-shadow: 0 0 8px 2px rgba(246, 217, 142, 0.85);
  animation: caretFlame 0.55s ease-in-out infinite alternate;
}

@keyframes caretFlame {
  0% { opacity: 0.45; transform: scale(0.82); }
  100% { opacity: 1; transform: scale(1.18); }
}

.guide-aside {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px dashed rgba(226, 180, 90, 0.2);
  font-size: 12px;
  line-height: 1.52;
  color: #8FD4C4;
}

/* 三枚唐制乌木错金牙牌 */
.slips-list {
  display: flex;
  flex-direction: column;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.decision-body.is-switching .slips-list {
  opacity: 0.45;
  transform: translateY(3px);
}

.edict-slip {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  padding: 11px 12px;
  border-radius: 6px;
  background-color: #1A1612;
  background-image:
    linear-gradient(90deg, rgba(226, 180, 90, 0.62), rgba(226, 180, 90, 0.62)),
    linear-gradient(180deg, rgba(226, 180, 90, 0.62), rgba(226, 180, 90, 0.62)),
    linear-gradient(90deg, rgba(226, 180, 90, 0.62), rgba(226, 180, 90, 0.62)),
    linear-gradient(180deg, rgba(226, 180, 90, 0.62), rgba(226, 180, 90, 0.62)),
    linear-gradient(90deg, rgba(226, 180, 90, 0.62), rgba(226, 180, 90, 0.62)),
    linear-gradient(180deg, rgba(226, 180, 90, 0.62), rgba(226, 180, 90, 0.62)),
    linear-gradient(90deg, rgba(226, 180, 90, 0.62), rgba(226, 180, 90, 0.62)),
    linear-gradient(180deg, rgba(226, 180, 90, 0.62), rgba(226, 180, 90, 0.62)),
    linear-gradient(180deg, #211B15 0%, #16120E 100%);
  background-repeat: no-repeat;
  background-size:
    9px 1.5px, 1.5px 9px,
    9px 1.5px, 1.5px 9px,
    9px 1.5px, 1.5px 9px,
    9px 1.5px, 1.5px 9px,
    100% 100%;
  background-position:
    0 0, 0 0,
    100% 0, 100% 0,
    0 100%, 0 100%,
    100% 100%, 100% 100%,
    0 0;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(226, 180, 90, 0.16);
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s ease, box-shadow 0.16s ease;
  position: relative;
  overflow: hidden;
}

.edict-slip + .edict-slip {
  margin-top: 9px;
}

.supports-flex-gap .slips-list {
  row-gap: 9px;
}

.supports-flex-gap .edict-slip + .edict-slip {
  margin-top: 0;
}

@media (hover: hover) {
  .edict-slip:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(246, 217, 142, 0.34);
  }
}

.edict-slip.was-picked {
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.42), inset 0 0 0 1.2px rgba(73, 179, 157, 0.48);
}

.edict-slip:active,
.edict-slip.is-picked {
  transform: translateY(1px) scale(0.992);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5), inset 0 0 0 1.4px rgba(246, 217, 142, 0.65);
}

.edict-slip.is-fading {
  opacity: 0.38;
  transform: scale(0.985);
}

.slip-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 12px;
  flex-shrink: 0;
  border-radius: 6px;
  background-color: #100D0A;
  color: #F6D98E;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(226, 180, 90, 0.38);
}

.edict-slip.was-picked .slip-seal {
  background-color: #133C33;
  color: #F5EFE2;
  font-size: 12px;
  box-shadow: inset 0 0 0 1px rgba(73, 179, 157, 0.52);
}

.slip-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding-right: 4px;
}

.slip-cue {
  font-size: 12px;
  font-weight: 600;
  color: #E2B45A;
  line-height: 1.25;
  margin-bottom: 2px;
}

.edict-slip.was-picked .slip-cue {
  color: #6CD0BC;
}

.slip-text {
  font-size: 14px;
  line-height: 1.48;
  color: #F5EFE2;
}

/* 单一真实朱砂篆章（落于牙牌右上角乌木空白区，绝不遮挡正文任何一字） */
.tap-wax-seal {
  position: absolute;
  right: 10px;
  top: 7px;
  width: 44px;
  height: 22px;
  border-radius: 4px;
  background-color: rgba(168, 40, 28, 0.96);
  color: #F5EFE2;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55), inset 0 0 0 1.4px rgba(245, 239, 226, 0.84);
  animation: sealStamp 0.19s cubic-bezier(0.18, 0.89, 0.32, 1.18) forwards;
  z-index: 5;
}

@keyframes sealStamp {
  0% { transform: scale(1.75) rotate(-10deg); opacity: 0; }
  100% { transform: scale(1) rotate(-3deg); opacity: 0.98; }
}

/* 双鲤咬合 + 朱砂花押落印过场演出 */
.ceremony-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  text-align: center;
}

.ceremony-tally-stage {
  position: relative;
  width: 204px;
  height: 204px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  animation: tableImpact 1.3s ease forwards;
}

.ceremony-halo {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 217, 142, 0.48) 0%, rgba(46, 139, 120, 0.2) 52%, rgba(14, 17, 22, 0) 74%);
  animation: pulseHalo 1.25s ease-out forwards;
}

.ceremony-seam-flash {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  border-radius: 2px;
  background-color: #F6D98E;
  box-shadow: 0 0 22px 6px rgba(246, 217, 142, 0.85);
  opacity: 0;
  z-index: 3;
  animation: seamFlash 1.25s ease forwards;
}

.ceremony-fish {
  width: 76px;
  height: 152px;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.ceremony-fish-l {
  animation: mergeLeft 0.56s cubic-bezier(0.2, 0.92, 0.25, 1) forwards;
}

.ceremony-fish-r {
  animation: mergeRight 0.56s cubic-bezier(0.2, 0.92, 0.25, 1) forwards;
}

.ceremony-seal-drop {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 74px;
  height: 74px;
  border-radius: 9px;
  background-color: rgba(168, 40, 28, 0.96);
  color: #F5EFE2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.15;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65), inset 0 0 0 2.5px rgba(245, 239, 226, 0.86);
  z-index: 4;
  opacity: 0;
  animation: stampSlam 0.68s 0.48s cubic-bezier(0.18, 0.89, 0.32, 1.18) forwards;
}

@keyframes mergeLeft {
  0% { transform: translateX(-44px) rotate(-8deg); opacity: 0.45; }
  80% { transform: translateX(2px) rotate(0deg); opacity: 1; }
  100% { transform: translateX(0) rotate(0deg); opacity: 1; }
}

@keyframes mergeRight {
  0% { transform: translateX(44px) rotate(8deg); opacity: 0.45; }
  80% { transform: translateX(-2px) rotate(0deg); opacity: 1; }
  100% { transform: translateX(0) rotate(0deg); opacity: 1; }
}

@keyframes seamFlash {
  0%, 36% { opacity: 0; transform: scaleY(0.4); }
  46% { opacity: 1; transform: scaleY(1.06); }
  75%, 100% { opacity: 0.35; transform: scaleY(0.95); }
}

@keyframes stampSlam {
  0% { opacity: 0; transform: scale(2.3) rotate(-14deg); }
  62% { opacity: 1; transform: scale(0.94) rotate(-5deg); }
  100% { opacity: 1; transform: scale(1) rotate(-6deg); }
}

@keyframes tableImpact {
  0%, 74% { transform: translateY(0); }
  80% { transform: translateY(4px); }
  88% { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

@keyframes pulseHalo {
  0% { transform: scale(0.62); opacity: 0.2; }
  55% { transform: scale(1.14); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

.ceremony-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: #F6D98E;
  margin-bottom: 8px;
}

.ceremony-sub {
  font-size: 14px;
  color: #C5CFDC;
}

/* 结果命卡视图 */
.result-view {
  display: flex;
  flex-direction: column;
  padding: 0 16px 28px;
  padding-bottom: calc(28px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
}

.result-view .result-topbar {
  padding-left: 0;
  padding-right: 0;
}

.hero-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background-color: #131B24;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

.hero-portrait-stage {
  position: relative;
  height: 304px;
  overflow: hidden;
  background-color: #0E1116;
  --sheen-x: 50%;
  --sheen-y: 38%;
}

.hero-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
}

.hero-foil-sheen {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(
    circle 210px at var(--sheen-x, 50%) var(--sheen-y, 38%),
    rgba(246, 217, 142, 0.26) 0%,
    rgba(60, 164, 142, 0.1) 42%,
    rgba(14, 17, 22, 0) 75%
  );
  pointer-events: none;
}

.hero-portrait-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  background: linear-gradient(180deg, rgba(19, 27, 36, 0) 0%, rgba(19, 27, 36, 0.74) 64%, #131B24 100%);
  pointer-events: none;
}

.hero-top-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.hero-path-pill {
  padding: 4px 11px;
  border-radius: 999px;
  background-color: rgba(14, 17, 22, 0.86);
  color: #F6D98E;
  font-size: 12px;
  font-weight: 600;
}

.hero-match-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background-color: rgba(18, 79, 66, 0.95);
  color: #F5EFE2;
  font-size: 12px;
  font-weight: 600;
}

.seal-col + .seal-col {
  margin-left: 3px;
}

.hero-stamp {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 60px;
  height: 60px;
  border-radius: 7px;
  background-color: rgba(164, 39, 27, 0.95);
  color: #F5EFE2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transform: rotate(-5deg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.48), inset 0 0 0 2px rgba(245, 239, 226, 0.82);
  z-index: 3;
}

.seal-col {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  width: 18px;
  text-align: center;
  word-break: break-all;
}

.ceremony-seal-drop .seal-col {
  font-size: 19px;
  width: 22px;
}

.hero-title-overlay {
  position: absolute;
  left: 16px;
  right: 84px;
  bottom: 10px;
  z-index: 2;
}

.hero-name {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: #F5EFE2;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.hero-courtesy {
  font-size: 13px;
  font-weight: 600;
  color: #F6D98E;
  margin-top: 2px;
}

.hero-role {
  font-size: 13px;
  color: #C5CFDC;
  margin-top: 2px;
}

.hero-body {
  padding: 10px 16px 20px;
}

.resume-quiz-banner {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: 10px;
  background-color: #164F43;
  color: #F5EFE2;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.era-mirror-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #49B39D;
  margin-bottom: 6px;
}

.hero-quote {
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.56;
  color: #F6D98E;
  padding: 11px 14px 11px 22px;
  text-indent: -0.55em;
  border-radius: 10px;
  background-color: #191612;
  box-shadow: inset 0 0 0 1px rgba(226, 180, 90, 0.2);
  margin-bottom: 12px;
}

.hero-verdict {
  font-size: 14px;
  line-height: 1.64;
  color: #DCE3EC;
  margin-bottom: 14px;
}

.result-actions {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(226, 180, 90, 0.14);
}

.primary-cta {
  width: 100%;
  padding: 13px 16px;
  border-radius: 11px;
  background-color: #E2B45A;
  background-image: linear-gradient(135deg, #F6D98E 0%, #D7A042 100%);
  color: #14100A;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 6px 20px rgba(226, 180, 90, 0.26);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.primary-cta:active {
  transform: scale(0.98);
}

.primary-cta[disabled] {
  opacity: 0.65;
}

.secondary-actions {
  display: flex;
  margin-top: 9px;
}

.sec-btn {
  flex: 1;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 9px;
  background-color: #1B2634;
  color: #F5EFE2;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.sec-icon-btn {
  flex: 0 0 42px;
  width: 42px;
  padding: 0;
  color: #F6D98E;
  box-shadow: inset 0 0 0 1px rgba(226, 180, 90, 0.28);
}

.retest-icon-svg {
  width: 18px;
  height: 18px;
  display: block;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.sec-icon-btn:active .retest-icon-svg {
  transform: rotate(75deg);
}

.sec-btn + .sec-btn {
  margin-left: 8px;
}

.supports-flex-gap .secondary-actions {
  column-gap: 8px;
}

.supports-flex-gap .sec-btn + .sec-btn {
  margin-left: 0;
}

.sec-btn:active {
  background-color: #253447;
}

.stats-panel {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background-color: #17202B;
  margin-bottom: 14px;
}

.result-radar-wrap {
  width: 108px;
  height: 108px;
  flex-shrink: 0;
  margin-right: 14px;
}

.stats-ledger {
  flex: 1;
  min-width: 0;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  line-height: 1.35;
}

.stat-row + .stat-row {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px dashed rgba(226, 180, 90, 0.14);
}

.stat-name {
  color: #DCE3EC;
  font-weight: 600;
}

.stat-grade {
  font-size: 12px;
  color: #49B39D;
  margin-left: auto;
  margin-right: 10px;
}

.stat-grade.is-peak {
  color: #F6D98E;
}

.stat-val {
  min-width: 26px;
  text-align: right;
  font-family: var(--serif);
  font-size: 15px;
  color: #F6D98E;
  font-weight: 700;
}

.bonds-grid {
  display: flex;
  flex-direction: column;
}

.bond-block {
  padding: 12px 14px;
  border-radius: 12px;
  background-color: #17202B;
}

.bond-block + .bond-block {
  margin-top: 9px;
}

.bond-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.bond-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.bond-pill-ally {
  background-color: #154A3F;
  color: #F5EFE2;
}

.bond-pill-rival {
  background-color: #7A261D;
  color: #F5EFE2;
}

.bond-target {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: #F6D98E;
  margin-left: 8px;
}

.bond-desc {
  font-size: 13px;
  line-height: 1.56;
  color: #C5CFDC;
}

/* 模态弹层 */
.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(6, 8, 12, 0.84);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .modal-backdrop {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

.modal-sheet {
  width: 100%;
  max-width: 382px;
  max-height: 86vh;
  border-radius: 18px;
  background-color: #141C25;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.68), 0 0 0 1px rgba(226, 180, 90, 0.22);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px 10px;
  background-color: #18222E;
  flex-shrink: 0;
}

.modal-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: #F6D98E;
}

.modal-close {
  padding: 5px 11px;
  border-radius: 8px;
  background-color: #233142;
  color: #F5EFE2;
  font-size: 13px;
  font-weight: 600;
}

.modal-scroll-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.modal-body {
  padding: 12px 16px 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}

.poster-modal-body {
  padding-bottom: 10px;
}

.modal-scroll-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(180deg, rgba(20, 28, 37, 0) 0%, rgba(20, 28, 37, 0.88) 68%, #141C25 100%);
  pointer-events: none;
  z-index: 4;
}

.modal-footer {
  padding: 10px 16px 14px;
  background-color: #18222E;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.codex-summary {
  font-size: 13px;
  color: #C5CFDC;
  margin-bottom: 12px;
  line-height: 1.5;
}

.codex-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
}

.codex-item {
  border-radius: 11px;
  overflow: hidden;
  background-color: #1A2532;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.codex-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 124%;
  background-color: #0E1116;
  overflow: hidden;
}

.codex-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.codex-item.is-locked .codex-thumb {
  filter: grayscale(1) brightness(0.28) contrast(1.15);
}

.codex-lock-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: rgba(14, 17, 22, 0.86);
  color: #9AA8BA;
  font-size: 12px;
}

.codex-new-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: #99261A;
  color: #F5EFE2;
  font-size: 12px;
  font-weight: 700;
}

.codex-meta {
  padding: 7px 8px 8px;
}

.codex-hero-name {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: #F5EFE2;
  line-height: 1.25;
}

.codex-item.is-locked .codex-hero-name {
  color: #9AA8BA;
}

.codex-hero-path {
  font-size: 12px;
  color: #49B39D;
  margin-top: 2px;
}

.codex-item.is-locked .codex-hero-path {
  color: #9AA8BA;
}

.poster-tabs {
  display: flex;
  margin-bottom: 10px;
  background-color: #0F151D;
  padding: 4px;
  border-radius: 10px;
}

.poster-tab {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #9AA8BA;
  text-align: center;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.poster-tab.is-active {
  background-color: #213041;
  color: #F6D98E;
  box-shadow: inset 0 0 0 1px rgba(226, 180, 90, 0.42);
}

.poster-preview-img {
  width: 100%;
  max-height: 58vh;
  object-fit: contain;
  border-radius: 10px;
  margin: 0 auto;
  background-color: #0E1116;
}

.poster-note-tip {
  margin-top: 7px;
  font-size: 12px;
  color: #9AA8BA;
  text-align: center;
}

.toast-banner {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  padding: 9px 16px;
  border-radius: 999px;
  background-color: #223243;
  color: #F6D98E;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 50;
  max-width: 360px;
  text-align: center;
}

/* 桌面宽屏：随当前章节变换剧场级暗场环境氛围光晕，增强外围与机壳的整体笼罩感 */
@media (min-width: 520px) {
  body {
    background-color: #06080C;
    background-image:
      radial-gradient(circle at 50% 22%, rgba(226, 174, 78, 0.16) 0%, rgba(46, 139, 120, 0.06) 36%, rgba(6, 8, 12, 0) 72%);
    padding: 28px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  body[data-mood="gold"] {
    background-image:
      radial-gradient(circle at 50% 22%, rgba(242, 188, 88, 0.19) 0%, rgba(46, 139, 120, 0.08) 38%, rgba(6, 8, 12, 0) 74%);
  }

  body[data-mood="amber"],
  body[data-mood="crimson"] {
    background-image:
      radial-gradient(circle at 50% 22%, rgba(209, 68, 48, 0.2) 0%, rgba(168, 92, 42, 0.08) 38%, rgba(6, 8, 12, 0) 74%);
  }

  body[data-mood="rain"] {
    background-image:
      radial-gradient(circle at 50% 20%, rgba(76, 112, 152, 0.2) 0%, rgba(186, 76, 48, 0.08) 42%, rgba(6, 8, 12, 0) 76%);
  }

  body[data-mood="dawn"] {
    background-image:
      radial-gradient(circle at 50% 22%, rgba(73, 179, 157, 0.18) 0%, rgba(226, 180, 90, 0.08) 38%, rgba(6, 8, 12, 0) 74%);
  }

  .tang-shell {
    width: 396px;
    max-width: 396px;
    min-height: 824px;
    border-radius: 26px;
    box-shadow:
      0 28px 80px rgba(0, 0, 0, 0.82),
      0 0 42px rgba(226, 180, 90, 0.08),
      0 0 0 1px rgba(226, 180, 90, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.07);
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
