/* =========================================================
   《万物有字》2.0
   东巴象形文字数字艺术交互体验设计 · 全站设计系统
   纸白 / 墨黑 / 朱砂 / 山青 / 岩灰
   ========================================================= */

:root {
  /* 色彩 */
  --paper: #F4F1E8;
  --paper-warm: #EDE8DA;
  --paper-deep: #E4DECD;
  --ink: #22231F;
  --ink-soft: rgba(34, 35, 31, 0.82);
  --ink-faint: rgba(34, 35, 31, 0.66);
  --ink-ghost: rgba(34, 35, 31, 0.44);
  --cinnabar: #A34B39;
  --cinnabar-deep: #85392B;
  --cinnabar-soft: rgba(163, 75, 57, 0.09);
  --mountain: #7E8977;
  --mountain-soft: rgba(126, 137, 119, 0.16);
  --stone: #B3A58C;
  --stone-soft: rgba(179, 165, 140, 0.24);
  --gold: #B08D57;
  --gold-deep: #8E6C3C;
  --gold-soft: rgba(176, 141, 87, 0.18);
  --gold-hair: rgba(176, 141, 87, 0.42);
  --ochre: #9A7148;
  --night: #1C2433;
  --night-soft: #3A4358;
  --hairline: rgba(34, 35, 31, 0.14);
  --hairline-strong: rgba(34, 35, 31, 0.32);

  /* 字体 */
  --serif: "Songti SC", "STSong", "STZhongsong", "Source Han Serif SC",
    "Noto Serif CJK SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    "Source Han Sans SC", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  --latin: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", Consolas, "Courier New", monospace;

  /* 尺度 */
  --shell: 1520px;
  --gut: clamp(24px, 4.2vw, 68px);
  --pad-y: clamp(26px, 3.6vh, 54px);

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.5s;
  --dur-fast: 0.22s;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font-family: inherit;
  color: inherit;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--cinnabar);
  color: var(--paper);
}

/* ---------------------------------------------------------
   舞台 · 纸张肌理
   --------------------------------------------------------- */

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 90% 70% at 18% 8%, rgba(255, 253, 246, 0.85), transparent 60%),
    radial-gradient(ellipse 80% 70% at 92% 96%, rgba(179, 165, 140, 0.18), transparent 64%),
    var(--paper);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%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='200' height='200' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* 屏幕 */

.screen {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: var(--pad-y) var(--gut);
  overflow-x: hidden;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility var(--dur);
  scrollbar-width: thin;
  scrollbar-color: var(--stone) transparent;
}

.screen::-webkit-scrollbar {
  width: 6px;
}

.screen::-webkit-scrollbar-thumb {
  background: var(--stone);
}

.screen.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.screen.is-leaving {
  opacity: 0;
  visibility: visible;
  transform: translateY(-10px);
  transition:
    opacity 0.28s var(--ease),
    transform 0.28s var(--ease);
  pointer-events: none;
}

.screen > * {
  width: 100%;
  max-width: var(--shell);
  margin-left: auto;
  margin-right: auto;
}

.screen-start,
.screen-result {
  justify-content: flex-start;
}

.screen-start > .hero,
.screen-result > .result-sheet {
  margin-top: auto;
  margin-bottom: auto;
}

.screen-game {
  justify-content: flex-start;
}

/* ---------------------------------------------------------
   通用文字与链接
   --------------------------------------------------------- */

.kicker,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.kicker-line {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--hairline-strong);
}

.kicker-en {
  color: var(--ink-faint);
}

.eyebrow {
  color: var(--cinnabar);
  letter-spacing: 0.24em;
}

.link-btn {
  display: inline-block;
  padding: 0 0 3px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--cinnabar);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(163, 75, 57, 0.45);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.link-btn:hover {
  color: var(--cinnabar-deep);
  border-bottom-color: var(--cinnabar-deep);
}

.link-btn:focus-visible {
  outline: 1px solid var(--cinnabar);
  outline-offset: 4px;
}

/* ---------------------------------------------------------
   按钮
   --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 30px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: 0;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.btn:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 1px solid var(--cinnabar);
  outline-offset: 4px;
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn[hidden] {
  display: none;
}

.btn-primary {
  color: #FBF6EA;
  background: var(--cinnabar);
  border-color: var(--cinnabar);
}

.btn-primary:hover:not(:disabled) {
  color: #FFF9EE;
  background: var(--cinnabar-deep);
  border-color: var(--cinnabar-deep);
}

.btn-ghost {
  color: var(--ink-soft);
  border-color: var(--hairline);
}

.btn-ghost:hover:not(:disabled) {
  color: var(--ink);
  background: var(--paper-deep);
  border-color: var(--hairline-strong);
}

.btn-lg {
  padding: 18px 46px;
  font-size: 15.5px;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
}

/* ---------------------------------------------------------
   序章 · 展馆入口
   --------------------------------------------------------- */

.screen-start {
  align-items: center;
}

.hero {
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(36px, 4.4vw, 80px);
  padding: 8px 0;
}

.hero-copy {
  max-width: 620px;
}

.hero-title {
  margin: 26px 0 0;
  font-family: var(--serif);
  font-size: clamp(60px, 7.2vw, 118px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.hero-title-en {
  margin: 16px 0 0;
  font-family: var(--latin);
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hero-rule {
  width: 76px;
  height: 2px;
  margin: 30px 0 26px;
  background: var(--cinnabar);
}

.hero-subtitle {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(17px, 1.35vw, 20px);
  letter-spacing: 0.14em;
  color: var(--ink);
}

.hero-subtitle-en {
  margin: 8px 0 0;
  font-family: var(--latin);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hero-slogan {
  margin: 30px 0 0;
  padding-left: 18px;
  font-family: var(--serif);
  font-size: clamp(20px, 1.7vw, 25px);
  letter-spacing: 0.16em;
  color: var(--ink);
  border-left: 1px solid rgba(163, 75, 57, 0.55);
}

.hero-intro {
  max-width: 33em;
  margin: 20px 0 0;
  font-size: 14.5px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 36px;
}

.hero-fineprint {
  max-width: 34em;
  margin: 28px 0 0;
  font-size: 11.5px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: rgba(34, 35, 31, 0.62);
}

/* 主视觉 */

.hero-art {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4.5;
  min-height: 0;
}

.art-circle {
  position: absolute;
  left: 8%;
  top: 4%;
  width: 84%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--hairline);
  border-radius: 50%;
}

.art-axis {
  position: absolute;
  background: var(--hairline);
}

.art-axis-v {
  left: 45%;
  top: -2%;
  bottom: 2%;
  width: 1px;
}

.art-axis-h {
  top: 52%;
  left: 0;
  right: 2%;
  height: 1px;
}

.art-dot {
  position: absolute;
  left: 45%;
  top: 52%;
  width: 5px;
  height: 5px;
  background: var(--cinnabar);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.glyph {
  position: absolute;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.glyph img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  user-select: none;
  transition: transform 0.4s var(--ease);
}

.glyph:hover img {
  transform: translateY(-5px) scale(1.03);
}

.glyph figcaption {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}

.glyph-index {
  font-size: 10.5px;
  color: var(--cinnabar);
}

.glyph-meaning {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: 0.28em;
  color: var(--cinnabar);
  opacity: 0;
  white-space: nowrap;
  transition:
    max-width 0.4s var(--ease),
    opacity 0.3s var(--ease);
}

.glyph:hover .glyph-meaning {
  max-width: 90px;
  opacity: 1;
}

.glyph-02 figcaption,
.glyph-03 figcaption {
  justify-content: flex-end;
}

.glyph-01 { left: 0;    top: 13%; width: 37%; }
.glyph-02 { left: 53%;  top: 0;   width: 29%; }
.glyph-03 { left: 67%;  top: 35%; width: 24%; }
.glyph-04 { left: 14%;  top: 64%; width: 25%; }
.glyph-05 { left: 39%;  top: 45%; width: 18%; }
.glyph-06 { left: 47%;  top: 75%; width: 15%; }

.art-meta {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--ink-ghost);
  text-transform: uppercase;
}

/* 首屏淡入 */

.screen-start.active .hero-copy > * {
  animation: fade-rise 0.8s var(--ease) both;
}

.screen-start.active .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.screen-start.active .hero-copy > *:nth-child(2) { animation-delay: 0.1s; }
.screen-start.active .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.screen-start.active .hero-copy > *:nth-child(4) { animation-delay: 0.22s; }
.screen-start.active .hero-copy > *:nth-child(5) { animation-delay: 0.28s; }
.screen-start.active .hero-copy > *:nth-child(6) { animation-delay: 0.34s; }
.screen-start.active .hero-copy > *:nth-child(7) { animation-delay: 0.42s; }
.screen-start.active .hero-copy > *:nth-child(8) { animation-delay: 0.5s; }
.screen-start.active .hero-copy > *:nth-child(9) { animation-delay: 0.58s; }
.screen-start.active .hero-copy > *:nth-child(10) { animation-delay: 0.66s; }

.screen-start.active .art-circle {
  animation: circle-in 1.5s var(--ease) both;
  animation-delay: 0.1s;
}

.screen-start.active .art-axis-v {
  animation: axis-in-v 1.4s var(--ease) both;
  animation-delay: 0.3s;
}

.screen-start.active .art-axis-h {
  animation: axis-in-h 1.4s var(--ease) both;
  animation-delay: 0.42s;
}

.screen-start.active .art-dot {
  animation: dot-in 0.6s var(--ease) both;
  animation-delay: 1.15s;
}

.screen-start.active .art-meta {
  animation: fade-rise 0.8s var(--ease) both;
  animation-delay: 1.1s;
}

.screen-start.active .glyph {
  animation: fade-rise 0.9s var(--ease) both;
}

.screen-start.active .glyph-01 { animation-delay: 0.22s; }
.screen-start.active .glyph-02 { animation-delay: 0.35s; }
.screen-start.active .glyph-03 { animation-delay: 0.48s; }
.screen-start.active .glyph-04 { animation-delay: 0.61s; }
.screen-start.active .glyph-05 { animation-delay: 0.74s; }
.screen-start.active .glyph-06 { animation-delay: 0.87s; }

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes circle-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes axis-in-v {
  from {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: 50% 0;
  }
  to {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: 50% 0;
  }
}

@keyframes axis-in-h {
  from {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: 0 50%;
  }
  to {
    opacity: 1;
    transform: scaleX(1);
    transform-origin: 0 50%;
  }
}

@keyframes dot-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ---------------------------------------------------------
   章节导航
   --------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-family: var(--serif);
  font-size: 21px;
  color: var(--cinnabar);
  border: 1px solid rgba(163, 75, 57, 0.55);
}

.brand-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.brand-sub {
  margin: 3px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.map-meta {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-bottom: 4px;
}

.progress-plaque {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}

.progress-plaque strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cinnabar);
}

.map-intro {
  margin-top: clamp(26px, 4.4vh, 60px);
}

.map-intro h2 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: 0.12em;
}

.map-intro p:last-child {
  max-width: 46em;
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.map-grid {
  display: flex;
  flex-direction: column;
  margin-top: clamp(24px, 4vh, 48px);
}

.level-card {
  position: relative;
  display: grid;
  grid-template-columns: clamp(56px, 6vw, 96px) minmax(0, 1fr) clamp(170px, 16vw, 250px) auto;
  align-items: center;
  gap: clamp(16px, 2.4vw, 40px);
  width: 100%;
  padding: clamp(18px, 2.4vh, 30px) 10px;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--hairline);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}

.level-card:last-child {
  border-bottom: 1px solid var(--hairline);
}

.level-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cinnabar);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform var(--dur) var(--ease);
}

.level-card:hover:not(.locked)::before,
.level-card:focus-visible::before {
  transform: scaleY(1);
}

.level-card:hover:not(.locked) {
  background: rgba(179, 165, 140, 0.1);
}

.level-card:focus-visible {
  outline: 1px solid var(--cinnabar);
  outline-offset: -1px;
}

.level-index {
  font-family: var(--latin);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink-ghost);
  font-variant-numeric: tabular-nums;
  transition: color var(--dur-fast) var(--ease);
}

.level-card:hover:not(.locked) .level-index {
  color: var(--cinnabar);
}

.level-card.completed .level-index {
  color: var(--cinnabar);
}

.level-body {
  display: block;
  min-width: 0;
}

.level-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.level-name {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(27px, 2.2vw, 36px);
  font-weight: 600;
  letter-spacing: 0.18em;
}

.level-desc {
  display: block;
  max-width: 46em;
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.level-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mountain);
}

.level-card.available .status-dot {
  background: var(--cinnabar);
}

.level-card.locked .status-dot {
  background: var(--ink-ghost);
}

.level-card.completed .status-dot {
  background: var(--cinnabar);
}

.level-go {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  color: var(--cinnabar);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease), max-width var(--dur) var(--ease);
}

.level-card:hover:not(.locked) .level-go,
.level-card:focus-visible .level-go {
  max-width: 90px;
  opacity: 1;
}

.level-card.locked .level-index {
  color: var(--ink-ghost);
}

.level-card.locked .level-name {
  color: var(--ink-faint);
}

.level-card.locked .level-desc {
  color: var(--ink-faint);
}

.level-card.locked:hover {
  background: transparent;
}

/* 章节视觉预告 */

.level-art {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(84px, 8.4vw, 124px);
  opacity: 0.62;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}

.level-card:hover:not(.locked) .level-art {
  opacity: 1;
}

.level-card.locked .level-art {
  opacity: 0.26;
}

.level-art .la-glyph {
  position: absolute;
  display: block;
  mix-blend-mode: multiply;
}

.level-art .la-note {
  position: absolute;
  right: 0;
  bottom: 0;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}

.level-art-1 .la-frame {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--hairline);
}

.level-art-1 .la-arc {
  position: absolute;
  right: 18px;
  top: 12px;
  width: 74px;
  height: 74px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
}

.level-art-1 .la-a {
  right: 48px;
  top: 19%;
  width: 76px;
}

.level-art-1 .la-note {
  right: 2px;
}

.level-art-2 .la-thread {
  position: absolute;
  left: 8%;
  right: 12%;
  top: 56%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-strong) 18%, var(--hairline-strong) 82%, transparent);
}

.level-art-2 .la-a {
  left: 2%;
  top: 8%;
  width: 62px;
}

.level-art-2 .la-b {
  right: 6%;
  top: 34%;
  width: 48px;
}

.level-art-2 .la-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--cinnabar);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.level-art-2 .la-dot-a {
  left: 28%;
  top: 56%;
}

.level-art-2 .la-dot-b {
  left: 74%;
  top: 56%;
}

.level-art-3 .la-rhythm {
  position: absolute;
  left: 2%;
  right: 0;
  top: 58%;
  height: 1px;
  background-image: repeating-linear-gradient(90deg, var(--hairline-strong) 0 4px, transparent 4px 11px);
  transform: rotate(-5deg);
  transform-origin: 0 50%;
}

.level-art-3 .la-a {
  left: 4%;
  top: 30%;
  width: 48px;
}

.level-art-3 .la-b {
  left: 41%;
  top: 2%;
  width: 42px;
}

.level-art-3 .la-c {
  right: 4%;
  top: 38%;
  width: 50px;
}

.level-art-3 .la-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--cinnabar);
  border-radius: 50%;
}

.level-art-3 .la-dot-a {
  left: 16%;
  top: 57%;
}

.level-art-3 .la-dot-b {
  left: 53%;
  top: 56%;
}

.level-art-3 .la-dot-c {
  right: 12%;
  top: 57%;
}

.map-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: auto;
  padding-top: clamp(20px, 3vh, 36px);
}

.map-note {
  flex: 1;
  max-width: 62em;
  margin: 0;
  font-size: 11.5px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: rgba(34, 35, 31, 0.62);
}

/* ---------------------------------------------------------
   游戏页头部
   --------------------------------------------------------- */

.gamebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}

.gamebar-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bar-seal {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--cinnabar);
  border: 1px solid rgba(163, 75, 57, 0.5);
}

.gamebar-text {
  display: block;
}

.gamebar-chapter {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.gamebar-title strong {
  display: block;
  margin-top: 2px;
  font-family: var(--serif);
  font-size: clamp(23px, 1.5vw, 29px);
  font-weight: 600;
  letter-spacing: 0.2em;
}

.gamebar-title small {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}

.gamebar-progress {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.gamebar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.timer {
  padding-right: 18px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  border-right: 1px solid var(--hairline);
}

/* ---------------------------------------------------------
   图卡 · 藏品式展示
   --------------------------------------------------------- */

.artwork {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 253, 246, 0.9), transparent 62%),
    linear-gradient(158deg, #F8F5EC 0%, #EBE5D5 100%);
  border: 1px solid var(--hairline);
}

.artwork img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 9%;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 1;
  transition: opacity var(--dur) var(--ease);
}

.artwork img.is-loaded {
  opacity: 1;
}

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(-45deg, rgba(179, 165, 140, 0.1) 0 5px, transparent 5px 13px);
}

.ph-label {
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  border: 1px solid var(--hairline);
}

.ph-id {
  font-family: var(--latin);
  font-size: 46px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.ph-warn {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--cinnabar);
}

.artwork.compact .ph-label {
  display: none;
}

.artwork.compact .ph-id {
  font-size: 20px;
}

.artwork.compact .ph-warn {
  display: none;
}

/* ---------------------------------------------------------
   第一章 · 观物
   --------------------------------------------------------- */

.quiz-layout {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 34%) 1fr;
  align-items: center;
  align-items: safe center;
  gap: clamp(32px, 5vw, 96px);
  padding: clamp(20px, 3.4vh, 52px) 0;
}

.symbol-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: min(520px, 46vh);
  justify-self: end;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

.panel-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.panel-code {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--cinnabar);
}

.symbol-art {
  width: 100%;
}

.symbol-art .artwork {
  width: 100%;
}

.panel-cap {
  margin: 0;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

/* 形态观察实验（答题后开放） */

.form-lab {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}

.form-lab[hidden] {
  display: none;
}

.lab-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.lab-title {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.lab-tag {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: var(--cinnabar);
}

.lab-tabs {
  display: flex;
  gap: 6px;
}

.lab-tab {
  flex: 1;
  padding: 7px 4px;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 0;
  cursor: pointer;
  transition:
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}

.lab-tab:hover {
  color: var(--ink);
  border-color: var(--hairline-strong);
}

.lab-tab.is-active {
  color: #FBF6EA;
  background: var(--cinnabar);
  border-color: var(--cinnabar);
}

.lab-tab:focus-visible {
  outline: 1px solid var(--cinnabar);
  outline-offset: 2px;
}

.lab-note {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.lab-nature {
  position: absolute;
  inset: 11%;
  z-index: 2;
  opacity: 0;
  color: var(--mountain);
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

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

.artwork.mode-nature img {
  opacity: 0;
}

.artwork.mode-nature .lab-nature {
  opacity: 1;
}

.artwork.mode-compare img {
  opacity: 0.34;
}

.artwork.mode-compare .lab-nature {
  opacity: 0.9;
}

.quiz-main {
  display: flex;
  flex-direction: column;
  max-width: 780px;
}

.quiz-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--cinnabar);
  text-transform: uppercase;
}

.quiz-question {
  max-width: 26em;
  margin: 14px 0 26px;
  font-family: var(--serif);
  font-size: clamp(22px, 1.65vw, 33px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.06em;
}

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.option {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: clamp(78px, 8.4vh, 100px);
  padding: 18px 24px;
  font-family: var(--serif);
  font-size: clamp(17px, 1.15vw, 22px);
  letter-spacing: 0.16em;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 0;
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    opacity var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.option:hover:not(:disabled) {
  background: rgba(179, 165, 140, 0.12);
  border-color: var(--hairline-strong);
  transform: translateX(3px);
}

.option:focus-visible {
  outline: 1px solid var(--cinnabar);
  outline-offset: 3px;
}

.option:disabled {
  cursor: default;
}

.option-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  font-family: var(--serif);
  font-size: 12px;
  color: var(--ink-faint);
  border: 1px solid var(--hairline);
}

.option-text {
  display: block;
}

.option.is-correct {
  color: var(--ink);
  background: var(--mountain-soft);
  border-color: rgba(126, 137, 119, 0.6);
}

.option.is-correct .option-mark {
  color: var(--paper);
  background: var(--mountain);
  border-color: var(--mountain);
}

.option.is-wrong {
  color: var(--cinnabar);
  background: var(--cinnabar-soft);
  border-color: rgba(163, 75, 57, 0.65);
}

.option.is-wrong .option-mark {
  color: var(--paper);
  background: var(--cinnabar);
  border-color: var(--cinnabar);
}

.option.is-dim {
  opacity: 0.35;
}

/* 反馈区 */

.feedback {
  min-height: 96px;
  margin-top: 20px;
  padding: 12px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}

.feedback.show {
  opacity: 1;
}

.feedback.good,
.feedback.bad {
  padding-left: 18px;
  border-left: 2px solid transparent;
}

.feedback.good {
  border-left-color: var(--mountain);
  background: linear-gradient(90deg, var(--mountain-soft), transparent 70%);
}

.feedback.bad {
  border-left-color: var(--cinnabar);
  background: linear-gradient(90deg, var(--cinnabar-soft), transparent 70%);
}

.feedback-title {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.feedback.good .feedback-title,
.feedback.bad .feedback-title {
  color: var(--cinnabar);
}

.feedback .feedback-seq {
  margin: 2px 0 6px;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.26em;
  color: var(--cinnabar);
}

.feedback p {
  margin: 0;
}

/* 字形解读知识卡 */

#l1-feedback {
  min-height: 124px;
  margin-top: 24px;
  padding: 0;
  border-left: none;
  background: none;
}

#l1-feedback .insight-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 0 0;
  border-top: 1px solid var(--hairline);
  animation: insight-in 0.3s var(--ease) both;
}

.insight-seal {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--cinnabar);
  border: 1px solid rgba(163, 75, 57, 0.5);
}

.insight-main {
  flex: 1;
  min-width: 0;
}

.insight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.insight-kicker {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.insight-verdict {
  padding: 1px 7px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  border: 1px solid;
}

.insight-card.is-right .insight-verdict {
  color: var(--mountain);
  border-color: rgba(126, 137, 119, 0.55);
}

.insight-card.is-wrong .insight-verdict {
  color: var(--cinnabar);
  border-color: rgba(163, 75, 57, 0.5);
}

.insight-answer {
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.insight-answer b {
  margin-left: 4px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.insight-hint {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

@keyframes insight-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.level-footer {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.foot-note {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* ---------------------------------------------------------
   第二章 · 识字
   --------------------------------------------------------- */

.match-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(20px, 3.4vw, 56px);
  align-items: center;
  align-items: safe center;
  padding: clamp(16px, 3vh, 40px) 0;
  min-height: 0;
}

.match-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 620px;
}

.match-col:first-child {
  justify-self: end;
}

.match-col:last-child {
  justify-self: start;
}

.col-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--ink-faint);
}

.col-head span {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--ink);
}

.col-head small {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.match-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.match-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: clamp(70px, 8.4vh, 100px);
  padding: 8px 18px;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 0;
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    opacity var(--dur-fast) var(--ease);
}

.match-item:hover:not(:disabled) {
  border-color: var(--hairline-strong);
  background: rgba(179, 165, 140, 0.1);
}

.match-item:focus-visible {
  outline: 1px solid var(--cinnabar);
  outline-offset: 2px;
}

.match-item:disabled {
  cursor: default;
}

.match-item.selected,
.match-item.selected:hover:not(:disabled) {
  border-color: var(--cinnabar);
  background: var(--cinnabar-soft);
  box-shadow: inset 2px 0 0 var(--cinnabar);
}

.match-item.matched {
  color: var(--ink-soft);
  background: var(--mountain-soft);
  border-color: rgba(126, 137, 119, 0.35);
  box-shadow: none;
}

.match-item.matched .mi-main strong {
  color: var(--ink-soft);
}

.symbol-item .artwork {
  flex: none;
  width: clamp(60px, 4.4vw, 86px);
  height: clamp(60px, 4.4vw, 86px);
}

.symbol-item .artwork img {
  padding: 4%;
}

.symbol-item .mi-main {
  flex: 1;
}

.mi-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.mi-main strong {
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.mi-main small {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.meaning-item {
  justify-content: center;
  text-align: center;
}

.meaning-item .mi-main {
  align-items: center;
}

.meaning-item .mi-main strong {
  font-family: var(--serif);
  font-size: clamp(20px, 1.35vw, 24px);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}

.match-item .matched-seal {
  position: absolute;
  right: 12px;
  top: 50%;
  display: none;
  padding: 1px 5px;
  font-size: 9.5px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--cinnabar);
  border: 1px solid rgba(163, 75, 57, 0.35);
  transform: translateY(-50%);
}

.match-item.matched .matched-seal {
  display: block;
}

.meaning-item.matched .matched-seal {
  display: none;
}

/* 配对反馈：柔和的高亮与错误提示 */

.match-item.is-paired-now {
  animation: pair-in 0.7s var(--ease);
}

.match-item.is-miss {
  border-color: rgba(163, 75, 57, 0.42);
  background: var(--cinnabar-soft);
}

@keyframes pair-in {
  0% {
    background: rgba(126, 137, 119, 0.02);
    box-shadow: inset 0 0 0 1px rgba(126, 137, 119, 0.1);
  }
  45% {
    background: rgba(126, 137, 119, 0.24);
    box-shadow: inset 0 0 0 1px rgba(126, 137, 119, 0.55);
  }
  100% {
    background: var(--mountain-soft);
    box-shadow: inset 0 0 0 1px rgba(126, 137, 119, 0.28);
  }
}

.match-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.match-divider::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--hairline), transparent);
}

.match-divider span {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-faint);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 50%;
}

#l2-feedback {
  min-height: 76px;
  margin-top: 0;
}

.l2-gain {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0 0;
  border-top: 1px solid var(--hairline);
}

.l2-gain .l2-gain-art {
  flex: none;
  width: 46px;
  height: 46px;
}

.l2-gain-text {
  min-width: 0;
}

.l2-gain-text .feedback-title {
  margin-bottom: 2px;
}

.l2-gain-text p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------
   第三章 · 成章
   --------------------------------------------------------- */

.order-layout {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-content: safe center;
  gap: clamp(14px, 2.4vh, 32px);
  padding: clamp(16px, 3vh, 40px) 0;
  min-height: 0;
}

.order-layout > *:not(.narrative-wash) {
  position: relative;
  z-index: 1;
}

.narrative-wash {
  position: absolute;
  inset: -2% -3%;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  border-radius: 2px;
  -webkit-mask-image: radial-gradient(ellipse 76% 80% at 50% 46%, #000 42%, transparent 84%);
  mask-image: radial-gradient(ellipse 76% 80% at 50% 46%, #000 42%, transparent 84%);
}

.order-layout.is-narrating .narrative-wash {
  animation: nightfall 2.8s var(--ease) both;
}

@keyframes nightfall {
  0% {
    opacity: 0;
    background: linear-gradient(112deg, rgba(214, 186, 142, 0.26), rgba(200, 182, 156, 0.08) 55%, transparent);
  }
  22% {
    opacity: 1;
    background: linear-gradient(112deg, rgba(216, 184, 136, 0.38), rgba(196, 176, 146, 0.2) 52%, rgba(122, 126, 132, 0.12));
  }
  58% {
    opacity: 1;
    background: linear-gradient(112deg, rgba(178, 158, 138, 0.24), rgba(128, 126, 140, 0.24) 55%, rgba(74, 82, 102, 0.22));
  }
  88% {
    opacity: 0.55;
    background: linear-gradient(112deg, rgba(108, 112, 132, 0.16), rgba(70, 78, 100, 0.24) 55%, rgba(48, 55, 76, 0.3));
  }
  100% {
    opacity: 0;
    background: linear-gradient(112deg, rgba(70, 78, 100, 0.14), rgba(48, 55, 76, 0.18) 60%, rgba(38, 44, 60, 0.22));
  }
}

.order-layout.is-narrating .slot-card {
  animation: glyph-emphasis 1.15s var(--ease) both;
  animation-delay: calc(var(--d, 0ms) + 220ms);
}

@keyframes glyph-emphasis {
  0% {
    transform: translateY(0);
    opacity: 0.62;
  }
  38% {
    transform: translateY(-7px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.target-banner {
  width: 100%;
  max-width: 940px;
  padding: 0 0 0 22px;
  border-left: 1px solid rgba(163, 75, 57, 0.5);
}

.rule-line {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.rule-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.rule-sub {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.target-label {
  flex: none;
  padding-top: 9px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--cinnabar);
  white-space: nowrap;
}

.rule-text {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(18px, 1.55vw, 26px);
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.rule-poem {
  line-height: 1.62;
}

.rule-poem span {
  display: block;
}

.slot-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(26px, 5vw, 84px);
}

.slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.slot-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
}

.slot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(152px, 12.5vw, 234px);
  color: var(--ink);
  transition: box-shadow var(--dur) var(--ease);
}

.slot-seal {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  font-family: var(--serif);
  font-size: 10px;
  color: var(--cinnabar);
  background: rgba(244, 241, 232, 0.88);
  border: 1px solid rgba(163, 75, 57, 0.45);
}

.slot-card .artwork {
  position: relative;
  z-index: 1;
  width: 100%;
  transition: border-color var(--dur) var(--ease);
}

.slot-card .ph-id {
  font-size: 30px;
}

.sc-id {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

.sc-seal {
  position: absolute;
  right: 8px;
  bottom: 26px;
  z-index: 2;
  padding: 1px 5px;
  font-size: 9.5px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--cinnabar);
  background: rgba(244, 241, 232, 0.9);
  border: 1px solid rgba(163, 75, 57, 0.4);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  transition-delay: var(--d, 0ms);
  pointer-events: none;
}

.slot-card.is-settled .artwork {
  border-color: rgba(163, 75, 57, 0.55);
  box-shadow: 0 0 0 4px rgba(163, 75, 57, 0.07);
  transition-delay: var(--d, 0ms);
}

.slot-card.is-settled .ph-id,
.slot-card.is-settled .sc-id {
  color: var(--cinnabar);
}

.slot-card.is-settled .sc-seal {
  opacity: 1;
  transform: translateY(0);
}

.slot-arrows {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.arrow-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 27px;
  font-size: 13px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 0;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.arrow-btn:hover:not(:disabled) {
  color: var(--cinnabar);
  background: var(--cinnabar-soft);
  border-color: var(--cinnabar);
}

.arrow-btn:focus-visible {
  outline: 1px solid var(--cinnabar);
  outline-offset: 2px;
}

.arrow-btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.order-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 56px;
}

.order-controls .btn {
  min-width: 210px;
}

#l3-feedback {
  width: 100%;
  max-width: 940px;
  min-height: 66px;
  margin-top: 0;
}

.order-hint {
  max-width: 58em;
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  text-align: center;
}

/* ---------------------------------------------------------
   探索成果档案
   --------------------------------------------------------- */

.result-sheet {
  width: 100%;
  max-width: 1240px;
  padding: clamp(12px, 2vh, 26px) 0;
}

.result-head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}

.result-title {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.1vw, 44px);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.result-subtitle {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.result-symbols {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: 100%;
  padding: clamp(16px, 2.4vh, 28px) 0;
  border-bottom: 1px solid var(--hairline);
}

.result-symbol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  opacity: 0;
  animation: symbol-rise 0.5s var(--ease) both;
  animation-delay: calc(180ms + var(--i, 0) * 80ms);
}

.result-symbol + .result-symbol {
  border-left: 1px solid var(--hairline);
}

.result-symbol img {
  width: 100%;
  max-width: 96px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.result-symbol img.is-loaded {
  opacity: 1;
}

.result-symbol .rs-fallback {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  font-family: var(--mono);
  font-size: 22px;
  color: var(--ink-faint);
  border: 1px dashed var(--hairline-strong);
}

.rs-label {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--ink);
}

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 36px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}

.result-stats {
  display: flex;
  align-items: stretch;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 28px;
  border-left: 1px solid var(--hairline);
}

.stat:first-child {
  padding-left: 0;
  border-left: none;
}

.stat b {
  font-family: var(--latin);
  font-size: clamp(24px, 1.7vw, 32px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

.result-score {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-bonus {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.result-bonus b {
  margin-left: 4px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.score-rows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-chip {
  padding: 3px 10px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  border: 1px solid var(--hairline);
}

.score-chip b {
  margin-left: 6px;
  font-family: var(--latin);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.result-honor {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 16px;
  border: 1px solid rgba(163, 75, 57, 0.32);
  background: var(--cinnabar-soft);
}

.honor-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--cinnabar);
}

.result-honor b {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--cinnabar-deep);
}

.result-honor small {
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

.result-conclusion {
  max-width: 56em;
  margin: 18px 0 0;
  font-size: 13.5px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.result-coda {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
}

.result-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.result-actions .btn {
  padding: 10px 20px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
}

@keyframes symbol-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------------------------------
   弹窗
   --------------------------------------------------------- */

.modal-layer {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-layer[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 27, 23, 0.42);
  backdrop-filter: blur(2px);
}

.modal {
  position: relative;
  width: min(540px, 100%);
  padding: 38px 42px 32px;
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 28px 80px rgba(20, 19, 15, 0.26);
  animation: modal-in 0.32s var(--ease) both;
}

.modal::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--hairline);
  pointer-events: none;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-seal {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--cinnabar);
  border: 1px solid rgba(163, 75, 57, 0.55);
}

.modal h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.modal p {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.modal-extra {
  display: block;
  padding: 3px 10px 3px 0 !important;
  font-size: 12px !important;
  color: var(--cinnabar) !important;
  letter-spacing: 0.06em;
}

.modal-extra[hidden] {
  display: none;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.modal-actions .btn {
  padding: 10px 20px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
}

/* ---------------------------------------------------------
   素材来源
   --------------------------------------------------------- */

.sources-layer {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.sources-layer[hidden] {
  display: none;
}

.sources-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 27, 23, 0.42);
  backdrop-filter: blur(2px);
}

.sources-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(620px, 86vh);
  padding: 28px 36px 24px;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 28px 80px rgba(20, 19, 15, 0.26);
  animation: modal-in 0.3s var(--ease) both;
}

.sources-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.sources-head h3 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.sources-close {
  flex: none;
  width: 30px;
  height: 30px;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.sources-close:hover {
  color: var(--cinnabar);
  border-color: var(--cinnabar);
}

.sources-close:focus-visible {
  outline: 1px solid var(--cinnabar);
  outline-offset: 2px;
}

.sources-intro {
  margin: 14px 0 16px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.sources-intro a {
  color: var(--cinnabar);
  text-decoration: none;
  border-bottom: 1px solid rgba(163, 75, 57, 0.4);
}

.sources-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  font-size: 12px;
  border-top: 1px solid var(--hairline);
}

.source-item:last-child {
  border-bottom: 1px solid var(--hairline);
}

.source-meaning {
  font-family: var(--serif);
  font-size: 13.5px;
  letter-spacing: 0.14em;
  text-align: center;
  color: var(--ink);
}

.source-file {
  color: var(--ink-soft);
  text-decoration: none;
  word-break: break-word;
}

.source-file:hover {
  color: var(--cinnabar);
  text-decoration: underline;
}

.source-license {
  padding: 2px 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--hairline);
}

.source-license:hover {
  color: var(--cinnabar);
  border-color: var(--cinnabar);
}

.sources-foot {
  margin: 12px 0 0;
  font-size: 10.5px;
  color: var(--ink-faint);
}

/* ---------------------------------------------------------
   提示与抖动
   --------------------------------------------------------- */

.toast {
  position: absolute;
  left: 50%;
  bottom: 40px;
  z-index: 120;
  max-width: min(520px, 88vw);
  padding: 11px 22px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--paper);
  background: rgba(34, 35, 31, 0.94);
  transform: translate(-50%, 12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@keyframes shake-x {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
}

.shake {
  animation: shake-x 0.36s ease;
}

/* ---------------------------------------------------------
   响应式
   --------------------------------------------------------- */

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .map-meta {
    gap: 20px;
  }

  .level-status {
    font-size: 10px;
  }
}

@media (max-width: 900px) {
  body {
    font-size: 14.5px;
  }

  .screen {
    padding: 22px 20px 34px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 4px 0;
  }

  .hero-title {
    margin-top: 20px;
    font-size: clamp(48px, 14vw, 84px);
  }

  .hero-art {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-top: 28px;
  }

  .hero-slogan {
    margin-top: 24px;
  }

  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
  }

  .map-meta {
    width: 100%;
    justify-content: space-between;
    padding-bottom: 0;
  }

  .map-intro {
    margin-top: 26px;
  }

  .map-intro h2 {
    font-size: 25px;
  }

  .level-card {
    grid-template-columns: 40px 1fr;
    row-gap: 10px;
    padding: 20px 4px;
    gap: 14px;
  }

  .level-index {
    align-self: start;
    font-size: 26px;
  }

  .level-status {
    grid-column: 2;
    white-space: normal;
  }

  .level-art {
    display: none;
  }

  .level-go {
    display: none;
  }

  .map-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .gamebar {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  /* 小屏改为自然文档流，避免固定高度造成内容与底栏重叠 */
  .quiz-layout,
  .match-layout,
  .order-layout {
    flex: 0 0 auto;
    min-height: auto;
  }

  .quiz-layout {
    padding: 22px 0 10px;
  }

  .match-layout {
    padding: 20px 0 8px;
  }

  .order-layout {
    justify-content: flex-start;
    padding: 18px 0 8px;
  }

  .gamebar-progress {
    order: 3;
    width: 100%;
  }

  .gamebar-actions {
    margin-left: auto;
  }

  .bar-seal {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .gamebar-title strong {
    font-size: 21px;
  }

  .quiz-layout {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 24px 0;
  }

  .symbol-panel {
    max-width: 320px;
    justify-self: center;
  }

  .quiz-main {
    max-width: none;
  }

  .quiz-question {
    font-size: 21px;
    margin-bottom: 20px;
  }

  .option {
    min-height: 70px;
    padding: 14px 16px;
    font-size: 17px;
  }

  .level-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .level-footer .btn {
    width: 100%;
  }

  .match-layout {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 22px 0;
    align-items: stretch;
  }

  .match-col,
  .match-col:first-child,
  .match-col:last-child {
    max-width: 520px;
    justify-self: center;
  }

  .match-divider {
    display: none;
  }

  .match-item {
    min-height: 56px;
  }

  .rule-line {
    flex-direction: column;
    gap: 6px;
  }

  .target-label {
    padding-top: 0;
  }

  .slot-row {
    gap: 10px;
  }

  .slot-card {
    width: min(28vw, 160px);
  }

  .slot-arrows {
    gap: 4px;
  }

  .arrow-btn {
    width: 38px;
    height: 26px;
  }

  .order-controls .btn {
    min-width: 0;
    width: 100%;
  }

  .result-symbols {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 22px;
  }

  .result-symbol + .result-symbol {
    border-left: none;
  }

  .result-symbol:nth-child(3n + 2),
  .result-symbol:nth-child(3n) {
    border-left: 1px solid var(--hairline);
  }

  .result-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .result-stats {
    flex-wrap: wrap;
    gap: 16px 0;
  }

  .stat {
    padding: 0 22px;
  }

  .result-honor {
    flex-wrap: wrap;
  }

  .modal,
  .sources-panel {
    padding: 28px 22px 24px;
  }
}

@media (max-width: 560px) {
  .options {
    grid-template-columns: 1fr;
  }

  .slot-card {
    width: 27vw;
  }

  .slot-seal {
    top: 5px;
    left: 5px;
  }

  .sc-seal {
    bottom: 24px;
    right: 5px;
  }

  .order-controls {
    flex-direction: column;
    width: 100%;
  }

  .target-banner {
    padding-left: 14px;
  }

  .stat {
    padding: 0 16px;
  }

  .stat b {
    font-size: 22px;
  }

  .result-actions {
    width: 100%;
  }

  .result-actions .btn {
    flex: 1 1 auto;
  }

  .source-item {
    grid-template-columns: 44px 1fr;
    row-gap: 6px;
  }

  .source-license {
    grid-column: 2;
    justify-self: start;
  }
}

/* 低高度桌面屏：压缩章节导航的纵向节奏，保证底部说明可见 */
@media (max-height: 960px) and (min-width: 901px) {
  .map-intro {
    margin-top: 18px;
  }

  .map-intro h2 {
    margin-top: 10px;
    font-size: 30px;
  }

  .map-intro p:last-child {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.75;
  }

  .map-grid {
    margin-top: 16px;
  }

  .level-card {
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .level-name {
    margin-top: 4px;
    font-size: 27px;
  }

  .level-desc {
    margin-top: 5px;
    font-size: 12.5px;
    line-height: 1.75;
  }

  .map-foot {
    padding-top: 14px;
  }

  .map-note {
    font-size: 11px;
    line-height: 1.7;
  }

  /* 低高度下压缩第一章，保证形态实验出现后仍不溢出 */
  .quiz-layout {
    grid-template-columns: minmax(230px, 29%) 1fr;
    gap: clamp(24px, 3.4vw, 60px);
    padding: 14px 0;
  }

  .symbol-panel {
    max-width: 346px;
    gap: 10px;
  }

  .panel-cap {
    font-size: 9.5px;
  }

  .form-lab {
    gap: 6px;
    padding-top: 8px;
  }

  .lab-tab {
    padding: 5px 3px;
    font-size: 10.5px;
  }

  .lab-note {
    font-size: 9px;
    line-height: 1.6;
  }

  .quiz-question {
    font-size: 23px;
    margin: 10px 0 16px;
  }

  .option {
    min-height: 64px;
    padding: 12px 18px;
    font-size: 16.5px;
  }

  #l1-feedback {
    min-height: 92px;
    margin-top: 12px;
  }

  .level-footer {
    margin-top: 22px;
    padding-top: 8px;
  }

  /* 低高度下压缩第二章，保证六组与反馈同屏完整可见 */
  .match-layout {
    padding: 8px 0;
  }

  .match-col {
    gap: 6px;
  }

  .match-list {
    gap: 5px;
  }

  .match-item {
    min-height: 72px;
    padding: 4px 14px;
    gap: 12px;
  }

  .symbol-item .artwork {
    width: 68px;
    height: 68px;
  }

  #l2-feedback {
    min-height: 62px;
  }

  /* 低高度下压缩第三章诗句与操作区 */
  .rule-text {
    font-size: 18px;
  }

  .rule-body {
    gap: 7px;
  }

  .rule-sub {
    font-size: 11.5px;
  }

  .order-layout {
    gap: 10px;
    padding: 10px 0;
  }

  .slot-card {
    width: clamp(140px, 11.5vw, 180px);
  }

  #l3-feedback {
    min-height: 54px;
  }

  .order-hint {
    font-size: 10.5px;
    line-height: 1.6;
  }

  .order-controls .btn-lg {
    padding: 13px 34px;
    font-size: 13.5px;
  }
}

/* ---------------------------------------------------------
   降低动态效果
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .screen-start.active .hero-copy,
  .screen-start.active .glyph,
  .result-symbol,
  .modal,
  .sources-panel {
    opacity: 1;
    transform: none;
  }

  .shake {
    animation: none;
  }
}

/* =========================================================
   第三章视觉升级 · 艺术层
   章节色彩 / 天体轨道 / 自然物象 / 连线 / 昼夜叙事 / 档案
   ========================================================= */

/* ---------------------------------------------------------
   全站底色与章节气氛
   --------------------------------------------------------- */

.stage {
  background:
    radial-gradient(ellipse 80% 62% at 16% 6%, rgba(255, 253, 246, 0.92), transparent 62%),
    radial-gradient(ellipse 70% 70% at 94% 98%, rgba(176, 141, 87, 0.16), transparent 66%),
    var(--paper);
}

.screen {
  --chapter-accent: var(--cinnabar);
  --chapter-tint: transparent;
  background-color: transparent;
}

.screen[data-screen="map"] {
  --chapter-accent: var(--gold-deep);
  --chapter-tint: rgba(176, 141, 87, 0.1);
  background:
    radial-gradient(ellipse 60% 50% at 88% 6%, rgba(176, 141, 87, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 50% at 6% 92%, rgba(179, 165, 140, 0.2), transparent 70%),
    linear-gradient(168deg, #F7F4EB 0%, #F0EADC 58%, #E7DFCF 100%);
}

.screen[data-screen="level1"] {
  --chapter-accent: #5F7A5E;
  --chapter-tint: rgba(126, 137, 119, 0.12);
  background:
    radial-gradient(ellipse 70% 60% at 4% 0%, rgba(214, 226, 203, 0.7), transparent 68%),
    radial-gradient(ellipse 60% 60% at 96% 100%, rgba(126, 137, 119, 0.16), transparent 70%),
    linear-gradient(172deg, #F6F5EC 0%, #EDEFE1 56%, #E2E7D6 100%);
}

.screen[data-screen="level2"] {
  --chapter-accent: var(--ochre);
  --chapter-tint: rgba(154, 113, 72, 0.12);
  background:
    radial-gradient(ellipse 58% 50% at 92% 0%, rgba(196, 158, 112, 0.22), transparent 70%),
    radial-gradient(ellipse 62% 60% at 0% 96%, rgba(176, 141, 87, 0.16), transparent 70%),
    linear-gradient(168deg, #F7F0E3 0%, #F0E6D4 56%, #E7DAC4 100%);
}

.screen[data-screen="level3"] {
  --chapter-accent: #59627C;
  --chapter-tint: rgba(58, 67, 88, 0.1);
  background:
    radial-gradient(ellipse 64% 46% at 18% 2%, rgba(247, 221, 174, 0.6), transparent 70%),
    radial-gradient(ellipse 60% 46% at 86% 58%, rgba(122, 131, 156, 0.18), transparent 72%),
    linear-gradient(178deg, #F8F1E1 0%, #F1E7D6 40%, #E4DFDA 68%, #D2D6DC 88%, #C3C9D4 100%);
}

.screen[data-screen="result"] {
  --chapter-accent: var(--cinnabar);
  --chapter-tint: rgba(176, 141, 87, 0.12);
  background:
    radial-gradient(ellipse 52% 46% at 82% 4%, rgba(176, 141, 87, 0.2), transparent 70%),
    radial-gradient(ellipse 48% 48% at 6% 96%, rgba(163, 75, 57, 0.07), transparent 70%),
    linear-gradient(168deg, #F4F0E5 0%, #EDE7DA 52%, #E3DCCB 100%);
}

.screen > *:not(.chapter-atmos):not(.hero-sky):not(.l2-atlas) {
  position: relative;
  z-index: 1;
}

/* 非当前页面的动画全部暂停，回到页面时自然继续 */
.screen:not(.active),
.screen:not(.active) * {
  animation-play-state: paused !important;
}

.chapter-atmos {
  position: absolute;
  inset: 0;
  width: auto;
  max-width: none;
  margin: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* 章节印章随章节变色 */

.screen[data-screen="level1"] .bar-seal,
.screen[data-screen="level2"] .bar-seal,
.screen[data-screen="level3"] .bar-seal {
  color: var(--chapter-accent);
  border-color: color-mix(in srgb, var(--chapter-accent) 48%, transparent);
}

.screen[data-screen="level1"] .gamebar,
.screen[data-screen="level2"] .gamebar,
.screen[data-screen="level3"] .gamebar {
  border-bottom-color: color-mix(in srgb, var(--chapter-accent) 26%, transparent);
}

/* 章节氛围 · 导航 */

.atmos-map .atmos-arc {
  position: absolute;
  border: 1px solid var(--gold-hair);
  border-radius: 50%;
  opacity: 0.5;
}

.atmos-map .a1 {
  right: -14vw;
  top: -30vh;
  width: 58vw;
  height: 58vw;
}

.atmos-map .a2 {
  right: -6vw;
  top: -18vh;
  width: 40vw;
  height: 40vw;
  border-style: dashed;
  opacity: 0.32;
  animation: spin-slow 160s linear infinite;
}

.atmos-map .a3 {
  left: -10vw;
  bottom: -26vh;
  width: 44vw;
  height: 44vw;
  border-color: rgba(34, 35, 31, 0.1);
}

.atmos-map .atmos-dots {
  position: absolute;
  right: 7vw;
  top: 16vh;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    -12vw 8vh 0 -1px rgba(176, 141, 87, 0.7),
    -22vw 22vh 0 -1.5px rgba(34, 35, 31, 0.28),
    2vw 34vh 0 -1px rgba(176, 141, 87, 0.5);
  animation: dot-drift 12s ease-in-out infinite alternate;
}

/* 章节氛围 · 第一章 */

.atmos-level1 .atmos-bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(32px);
  opacity: 0.5;
}

.atmos-level1 .b1 {
  left: -12vw;
  top: -10vh;
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle, rgba(151, 174, 140, 0.34), transparent 66%);
  animation: bloom-breathe 20s ease-in-out infinite alternate;
}

.atmos-level1 .b2 {
  right: -14vw;
  bottom: -20vh;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(126, 137, 119, 0.22), transparent 68%);
  animation: bloom-breathe 26s ease-in-out infinite alternate-reverse;
}

.atmos-level1 .atmos-plant {
  position: absolute;
  left: -6vw;
  bottom: 4vh;
  width: 46vw;
  height: 40vh;
  opacity: 0.26;
  fill: none;
  stroke: #6E8268;
  stroke-width: 1;
}

.atmos-level1 .atmos-spores {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(110, 130, 104, 0.55) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(176, 141, 87, 0.4) 0 1px, transparent 1.6px);
  background-size: 180px 180px, 260px 260px;
  background-position: 30px 40px, 120px 90px;
  opacity: 0.35;
  animation: spores-rise 32s linear infinite;
}

/* 章节氛围 · 第二章 */

.atmos-level2 .atmos-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(154, 113, 72, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(154, 113, 72, 0.08) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 10%, transparent 82%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 10%, transparent 82%);
}

.atmos-level2 .atmos-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.34;
  fill: none;
  stroke: rgba(154, 113, 72, 0.55);
  stroke-width: 1;
  stroke-dasharray: 3 8;
  animation: net-flow 30s linear infinite;
}

.atmos-level2 .atmos-node {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-deep);
  opacity: 0.55;
}

.atmos-level2 .atmos-node::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(154, 113, 72, 0.4);
  border-radius: 50%;
  animation: node-pulse 5.5s ease-out infinite;
}

.atmos-level2 .n1 { left: 8%; top: 22%; }
.atmos-level2 .n2 { right: 12%; top: 16%; }
.atmos-level2 .n3 { left: 16%; bottom: 16%; }
.atmos-level2 .n4 { right: 20%; bottom: 12%; }

.atmos-level2 .n2::after { animation-delay: 1.4s; }
.atmos-level2 .n3::after { animation-delay: 2.6s; }
.atmos-level2 .n4::after { animation-delay: 3.8s; }

/* 章节氛围 · 第三章 */

.atmos-level3 span {
  position: absolute;
}

.atmos-level3 .atmos-sky-day {
  inset: 0 0 42% 0;
  background: radial-gradient(ellipse 66% 100% at 20% 0%, rgba(247, 214, 158, 0.45), transparent 72%);
}

.atmos-level3 .atmos-sky-dusk {
  left: 0;
  right: 0;
  top: 46%;
  bottom: 18%;
  background: linear-gradient(180deg, transparent, rgba(196, 158, 140, 0.16) 40%, rgba(122, 131, 156, 0.16));
}

.atmos-level3 .atmos-sky-night {
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(58, 67, 88, 0.14));
}

.atmos-level3 .atmos-orbit-line {
  left: -6%;
  right: -6%;
  top: 54%;
  height: 46%;
  border-top: 1px solid rgba(89, 98, 124, 0.28);
  border-radius: 50%;
  transform: rotate(-6deg);
}

.atmos-level3 .atmos-starfield {
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 252, 240, 0.9) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(214, 224, 244, 0.8) 0 1px, transparent 1.6px);
  background-size: 210px 190px, 310px 270px;
  background-position: 40px 60px, 160px 140px;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, transparent 42%, #000 92%);
  mask-image: linear-gradient(180deg, transparent 42%, #000 92%);
  animation: stars-breathe 9s ease-in-out infinite alternate;
}

/* 章节氛围 · 成果档案 */

.atmos-result .atmos-frame {
  position: absolute;
  border: 1px solid var(--gold-hair);
  opacity: 0.5;
}

.atmos-result .f1 {
  inset: 3vh 3vw;
}

.atmos-result .f2 {
  inset: 4.4vh 4.4vw;
  border-color: rgba(34, 35, 31, 0.08);
}

.atmos-result .atmos-gold-arc {
  position: absolute;
  right: -18vw;
  top: -24vh;
  width: 62vw;
  height: 62vw;
  border: 1px solid var(--gold-hair);
  border-radius: 50%;
  opacity: 0.55;
}

/* ---------------------------------------------------------
   序章 · 天体主视觉
   --------------------------------------------------------- */

.screen-start {
  background:
    radial-gradient(ellipse 50% 44% at 78% 22%, rgba(196, 160, 102, 0.17), transparent 66%),
    radial-gradient(ellipse 46% 50% at 14% 88%, rgba(34, 35, 31, 0.07), transparent 68%),
    linear-gradient(160deg, #F8F5EC 0%, #F2EEE2 48%, #EAE4D5 100%);
}

.hero-sky {
  position: absolute;
  inset: 0;
  width: auto;
  max-width: none;
  margin: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-sky canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
}

.hero-glow-gold {
  right: 4vw;
  top: 4vh;
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle, rgba(198, 164, 106, 0.28), transparent 66%);
  animation: bloom-breathe 24s ease-in-out infinite alternate;
}

.hero-glow-ink {
  left: -8vw;
  bottom: -16vh;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(34, 35, 31, 0.1), transparent 68%);
  animation: bloom-breathe 30s ease-in-out infinite alternate-reverse;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(34, 35, 31, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(34, 35, 31, 0.06) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 62% 46%, #000 4%, transparent 76%);
  mask-image: radial-gradient(ellipse 78% 72% at 62% 46%, #000 4%, transparent 76%);
}

.hero {
  grid-template-columns: minmax(340px, 0.88fr) minmax(400px, 1.12fr);
  gap: clamp(30px, 3.6vw, 72px);
}

.hero-title {
  font-size: clamp(64px, 7.6vw, 132px);
  letter-spacing: 0.09em;
  line-height: 1.02;
}

.hero-subtitle {
  color: var(--ink);
}

.hero-intro {
  color: var(--ink-soft);
}

.hero-credit {
  margin: 24px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

.hero-credit b {
  font-weight: 500;
  color: var(--cinnabar);
}

.credit-dot {
  margin: 0 8px;
  color: var(--ink-ghost);
}

.hero-fineprint {
  margin-top: 8px;
}

.hero-art {
  position: relative;
  width: 100%;
  aspect-ratio: 10 / 9;
  isolation: isolate;
  perspective: 1200px;
}

.hero-motif {
  position: absolute;
  inset: 9% 7%;
  z-index: 0;
  color: var(--gold-deep);
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
  pointer-events: none;
}

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

.hero-motif.is-visible {
  opacity: 0.2;
  transform: scale(1);
}

.hero-orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  transform: translate(
    calc(var(--px, 0) * -10px),
    calc(var(--py, 0) * -10px)
  );
  transition: transform 0.8s var(--ease);
}

.hero-orbit .orbit {
  fill: none;
  stroke: url(#orbit-gold);
  stroke-width: 1;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.hero-orbit .orbit-outer {
  stroke-width: 1.2;
}

.hero-orbit .orbit-mid {
  opacity: 0;
  stroke: rgba(176, 141, 87, 0.46);
  stroke-width: 1;
  animation: orbit-fade 1.2s var(--ease) 1.05s both;
}

.hero-orbit .orbit-inner {
  opacity: 0;
  stroke: rgba(34, 35, 31, 0.2);
  stroke-width: 0.9;
  stroke-dasharray: 1 11;
  animation: orbit-fade 1.2s var(--ease) 1.2s both;
}

.screen-start.active .orbit-outer {
  animation: orbit-draw 1.7s var(--ease) 0.35s forwards;
}

.hero-orbit .orbit-axis {
  fill: none;
  stroke: rgba(34, 35, 31, 0.22);
  stroke-width: 1;
  stroke-dasharray: 2 9;
  opacity: 0;
  animation: axis-fade 1.1s var(--ease) 0.9s both;
}

.hero-orbit .orbit-links path {
  fill: none;
  stroke: rgba(176, 141, 87, 0.26);
  stroke-width: 0.8;
  stroke-dasharray: 1 8;
  opacity: 0;
  animation: axis-fade 1s var(--ease) 1.7s both;
}

.hero-orbit .orbit-core {
  fill: var(--cinnabar);
  opacity: 0;
  animation: orbit-fade 0.6s var(--ease) 1.5s both;
}

.hero-orbit .orbit-core-halo {
  fill: rgba(176, 141, 87, 0.08);
  stroke: rgba(176, 141, 87, 0.45);
  stroke-width: 1;
  opacity: 0;
  animation: orbit-fade 0.8s var(--ease) 1.45s both, halo-breathe 6s ease-in-out 2s infinite;
}

.hero-orbit .orbit-ticks {
  fill: rgba(176, 141, 87, 0.7);
  stroke: rgba(176, 141, 87, 0.55);
  stroke-width: 1;
  opacity: 0;
  animation: orbit-fade 0.9s var(--ease) 1.55s both;
}

.hero-orbit .orbit-node-glow {
  opacity: 0;
  animation: orbit-fade 1s var(--ease) 1.7s both, halo-breathe 7s ease-in-out 2.4s infinite;
}

@keyframes orbit-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes orbit-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes axis-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes halo-breathe {
  0%, 100% { opacity: 0.45; transform: scale(0.98); }
  50% { opacity: 0.9; transform: scale(1.03); }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes dot-drift {
  to { transform: translate(-14px, 20px); }
}

@keyframes bloom-breathe {
  from { transform: scale(0.94); opacity: 0.42; }
  to { transform: scale(1.06); opacity: 0.72; }
}

@keyframes spores-rise {
  to { background-position: 30px -140px, 120px -170px; }
}

@keyframes net-flow {
  to { stroke-dashoffset: -220; }
}

@keyframes node-pulse {
  0% { transform: scale(0.4); opacity: 0.8; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}

@keyframes stars-breathe {
  from { opacity: 0.32; }
  to { opacity: 0.68; }
}

/* 六枚字形的天体式构图 */

.glyph {
  z-index: 3;
  width: auto;
  translate:
    calc(var(--px, 0) * var(--depth, 8px))
    calc(var(--py, 0) * var(--depth, 8px));
  transform-origin: 50% 50%;
  transition: scale 0.45s var(--ease), filter 0.45s var(--ease), translate 0.7s var(--ease);
}

.glyph img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(34, 35, 31, 0.08));
  animation: glyph-float 9s ease-in-out infinite alternate;
  animation-delay: var(--float-delay, 0s);
  transition: filter 0.4s var(--ease);
}

.glyph figcaption {
  justify-content: flex-start;
  gap: 7px;
  opacity: 0.72;
  transition: opacity 0.35s var(--ease);
}

.glyph:hover figcaption,
.glyph:focus-visible figcaption,
.glyph.is-active figcaption {
  opacity: 1;
}

.glyph:hover,
.glyph:focus-visible,
.glyph.is-active {
  scale: 1.06;
  filter: drop-shadow(0 16px 28px rgba(142, 108, 60, 0.2));
  outline: none;
}

.glyph:hover img,
.glyph.is-active img {
  filter: drop-shadow(0 12px 22px rgba(176, 141, 87, 0.24));
}

.glyph:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 6px;
}

@keyframes glyph-float {
  from { transform: translateY(-3px); }
  to { transform: translateY(5px); }
}

.glyph-01 { left: 2%;  top: 10%; width: 35%; --depth: 16px; --float-delay: -1.2s; }
.glyph-02 { left: 69%; top: 4%;  width: 26%; --depth: 11px; --float-delay: -3.4s; }
.glyph-03 { left: 72%; top: 47%; width: 22%; --depth: 14px; --float-delay: -5.1s; }
.glyph-04 { left: 8%;  top: 60%; width: 25%; --depth: 9px;  --float-delay: -2.3s; }
.glyph-05 { left: 41%; top: 43%; width: 18%; --depth: 6px;  --float-delay: -6.2s; }
.glyph-06 { left: 39%; top: 73%; width: 15%; --depth: 4px;  --float-delay: -4.4s; }

.glyph-02 figcaption,
.glyph-03 figcaption {
  justify-content: flex-end;
}

.hero-readout {
  position: absolute;
  right: 0;
  bottom: 1%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 178px;
  padding-top: 10px;
  border-top: 1px solid var(--gold-hair);
  font-family: var(--mono);
  color: var(--ink-faint);
}

.hr-index {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--cinnabar);
}

.hr-rule {
  width: 26px;
  height: 1px;
  background: var(--gold-hair);
}

.hr-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hr-meaning {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--ink);
  line-height: 1.2;
}

.hr-en {
  font-size: 8.5px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.art-meta {
  left: 0;
  right: auto;
  bottom: 1%;
  color: var(--ink-ghost);
}

/* 序章入场 */

.screen-start.active .hero-sky {
  animation: sky-in 1.4s var(--ease) both;
}

@keyframes sky-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.screen-start.active .hero-copy > * {
  animation: fade-rise 0.85s var(--ease) both;
}

.screen-start.active .hero-copy > *:nth-child(1) { animation-delay: 0.06s; }
.screen-start.active .hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
.screen-start.active .hero-copy > *:nth-child(3) { animation-delay: 0.18s; }
.screen-start.active .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.screen-start.active .hero-copy > *:nth-child(5) { animation-delay: 0.3s; }
.screen-start.active .hero-copy > *:nth-child(6) { animation-delay: 0.36s; }
.screen-start.active .hero-copy > *:nth-child(7) { animation-delay: 0.42s; }
.screen-start.active .hero-copy > *:nth-child(8) { animation-delay: 0.48s; }
.screen-start.active .hero-copy > *:nth-child(9) { animation-delay: 0.54s; }
.screen-start.active .hero-copy > *:nth-child(10) { animation-delay: 0.6s; }
.screen-start.active .hero-copy > *:nth-child(11) { animation-delay: 0.66s; }
.screen-start.active .hero-copy > *:nth-child(12) { animation-delay: 0.72s; }

.screen-start.active .glyph {
  animation: glyph-in 0.9s var(--ease) both;
}

.screen-start.active .glyph-01 { animation-delay: 0.55s; }
.screen-start.active .glyph-02 { animation-delay: 0.68s; }
.screen-start.active .glyph-03 { animation-delay: 0.81s; }
.screen-start.active .glyph-04 { animation-delay: 0.94s; }
.screen-start.active .glyph-05 { animation-delay: 1.07s; }
.screen-start.active .glyph-06 { animation-delay: 1.2s; }

.screen-start.active .hero-readout {
  animation: fade-rise 0.8s var(--ease) 1.25s both;
}

.screen-start.active .art-meta {
  animation: fade-rise 0.8s var(--ease) 1.3s both;
}

@keyframes glyph-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.art-meta {
  opacity: 0.75;
}

/* ---------------------------------------------------------
   章节导航 · 展签式
   --------------------------------------------------------- */

.map-intro h2 {
  font-size: clamp(30px, 3.2vw, 46px);
}

.level-card {
  grid-template-columns: clamp(56px, 6vw, 96px) minmax(0, 1fr) clamp(240px, 21vw, 350px) auto;
  padding-top: clamp(14px, 1.8vh, 24px);
  padding-bottom: clamp(14px, 1.8vh, 24px);
}

.level-card:hover:not(.locked) {
  background:
    linear-gradient(90deg, rgba(176, 141, 87, 0.12), rgba(176, 141, 87, 0.03) 58%, transparent);
}

.level-name {
  letter-spacing: 0.2em;
}

.level-desc {
  color: var(--ink-soft);
}

.level-art {
  height: clamp(116px, 8vw, 146px);
  opacity: 0.82;
}

.level-art .la-glyph {
  transition: translate 0.6s var(--ease), scale 0.6s var(--ease);
}

.level-card:hover:not(.locked) .la-glyph {
  scale: 1.04;
}

.level-art-1 .la-frame {
  right: 20px;
  top: 3px;
  width: 78px;
  height: 78px;
  border-color: var(--gold-hair);
}

.level-art-1 .la-arc {
  right: 38px;
  top: 10px;
  width: 120px;
  height: 120px;
  border-color: var(--gold-hair);
  animation: spin-slow 90s linear infinite;
}

.level-art-1 .la-a {
  right: 66px;
  top: 16%;
  width: 120px;
}

.level-art-2 .la-a { width: 104px; }
.level-art-2 .la-b { width: 84px; }

.level-art-2 .la-thread {
  background: linear-gradient(90deg, transparent, var(--gold-hair) 18%, var(--gold-hair) 82%, transparent);
}

.level-art-2 .la-dot {
  background: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.16);
}

.level-art-3 .la-a { width: 82px; }
.level-art-3 .la-b { width: 72px; }
.level-art-3 .la-c { width: 84px; }

.level-art-3 .la-rhythm {
  background-image: repeating-linear-gradient(90deg, rgba(176, 141, 87, 0.55) 0 4px, transparent 4px 11px);
  animation: net-flow 24s linear infinite;
}

.level-art-3 .la-dot {
  background: var(--gold);
}

.level-index {
  font-family: var(--serif);
  font-size: clamp(30px, 2.8vw, 44px);
  font-weight: 400;
}

.level-status {
  font-size: 11px;
}

/* ---------------------------------------------------------
   第一章 · 藏品级图卡与自然物象
   --------------------------------------------------------- */

.artwork {
  background:
    radial-gradient(circle at 26% 14%, rgba(255, 253, 246, 0.96), transparent 58%),
    linear-gradient(158deg, #FAF7EE 0%, #EFE9D9 62%, #E4DCC8 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 18px 40px -28px rgba(34, 35, 31, 0.4);
}

.artwork::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 4;
  border: 1px solid rgba(34, 35, 31, 0.08);
  pointer-events: none;
}

.artwork.compact::after {
  inset: 3px;
  opacity: 0.6;
}

.artwork::before {
  content: "";
  position: absolute;
  inset: 11%;
  z-index: 3;
  border: 1px dashed transparent;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(176, 141, 87, 0.55) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(180deg, transparent calc(50% - 0.5px), rgba(176, 141, 87, 0.55) 50%, transparent calc(50% + 0.5px));
  opacity: 0;
  transition: opacity 0.45s var(--ease), border-color 0.45s var(--ease);
  pointer-events: none;
}

.artwork.mode-compare::before {
  opacity: 1;
  border-color: rgba(176, 141, 87, 0.38);
}

.symbol-panel {
  gap: 14px;
}

.symbol-art {
  position: relative;
}

.symbol-art .artwork {
  transition: box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}

.artwork.is-correct-reveal {
  border-color: rgba(176, 141, 87, 0.55);
  box-shadow:
    0 0 0 1px rgba(176, 141, 87, 0.35),
    0 22px 60px -34px rgba(142, 108, 60, 0.6);
  animation: reveal-glow 1.1s var(--ease);
}

.artwork.is-wrong-reveal {
  border-color: rgba(163, 75, 57, 0.4);
  animation: soft-wrong 0.8s var(--ease);
}

@keyframes reveal-glow {
  0% { box-shadow: 0 0 0 0 rgba(176, 141, 87, 0.5), 0 18px 40px -28px rgba(34, 35, 31, 0.4); }
  45% { box-shadow: 0 0 0 8px rgba(176, 141, 87, 0.12), 0 22px 60px -30px rgba(142, 108, 60, 0.55); }
  100% { box-shadow: 0 0 0 1px rgba(176, 141, 87, 0.35), 0 22px 60px -34px rgba(142, 108, 60, 0.6); }
}

@keyframes soft-wrong {
  0%, 100% { background-color: transparent; }
  40% { background-color: rgba(163, 75, 57, 0.05); }
}

.lab-nature {
  inset: 8%;
  z-index: 3;
  color: #6F8467;
  transform: scale(0.97);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}

.artwork.mode-nature .lab-nature,
.artwork.mode-compare .lab-nature {
  transform: scale(1);
}

.lab-nature svg {
  overflow: visible;
}

.lab-nature svg * {
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
}

.lab-nature .n-faint {
  opacity: 0.42;
}

/* 太阳 */

.n-sun .n-halo {
  animation: sun-halo 5.4s ease-in-out infinite;
}

.n-sun .n-ring-dash {
  animation: spin-slow 42s linear infinite;
}

.n-sun .n-ray {
  animation: ray-turn 26s linear infinite;
}

.n-sun .n-core {
  animation: sun-core 4.6s ease-in-out infinite;
}

/* 月亮 */

.n-moon .n-halo {
  animation: moon-halo 7s ease-in-out infinite;
}

.n-moon .n-disc {
  animation: moon-drift 11s ease-in-out infinite alternate;
}

.n-moon .n-phase {
  animation: phase-breathe 6.5s ease-in-out infinite;
}

.n-moon .n-phase.p2 { animation-delay: 1.1s; }
.n-moon .n-phase.p3 { animation-delay: 2.2s; }

.n-moon .n-star {
  animation: star-twinkle 4.4s ease-in-out infinite;
}

/* 星星 */

.n-star .n-point {
  animation: star-twinkle 4.2s ease-in-out infinite;
}

.n-star .n-point.s2 { animation-delay: 0.9s; }
.n-star .n-point.s3 { animation-delay: 1.8s; }
.n-star .n-point.s4 { animation-delay: 2.7s; }
.n-star .n-point.s5 { animation-delay: 3.4s; }

.n-star .n-trail {
  stroke-dasharray: 3 7;
  animation: net-flow 16s linear infinite;
}

.n-star .n-flare {
  animation: spin-slow 52s linear infinite reverse;
}

/* 雨 */

.n-rain .n-cloud {
  animation: cloud-drift 9s ease-in-out infinite alternate;
}

.n-rain .n-drop {
  animation: rain-fall 1.5s linear infinite;
}

.n-rain .n-drop.d2 { animation-delay: 0.3s; }
.n-rain .n-drop.d3 { animation-delay: 0.6s; }
.n-rain .n-drop.d4 { animation-delay: 0.9s; }
.n-rain .n-drop.d5 { animation-delay: 1.15s; }

.n-rain .n-ripple {
  animation: ripple 3.2s ease-out infinite;
}

.n-rain .n-ripple.r2 { animation-delay: 1.1s; }
.n-rain .n-ripple.r3 { animation-delay: 2.2s; }

/* 云 */

.n-cloud .n-layer {
  animation: cloud-drift 12s ease-in-out infinite alternate;
}

.n-cloud .n-layer.l2 { animation-duration: 16s; animation-direction: alternate-reverse; }
.n-cloud .n-layer.l3 { animation-duration: 21s; animation-delay: -3s; }

.n-cloud .n-mist {
  animation: mist-drift 14s ease-in-out infinite alternate;
}

/* 风 */

.n-wind .n-flow {
  stroke-dasharray: 22 12;
  animation: wind-flow 5.5s linear infinite;
}

.n-wind .n-flow.f2 { animation-duration: 7s; animation-delay: -1.6s; }
.n-wind .n-flow.f3 { animation-duration: 8.5s; animation-delay: -3.2s; }

.n-wind .n-gust {
  animation: gust-drift 6s ease-in-out infinite alternate;
}

@keyframes sun-halo {
  0%, 100% { opacity: 0.35; transform: scale(0.94); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes sun-core {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}

@keyframes ray-turn {
  to { transform: rotate(360deg); }
}

@keyframes moon-halo {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.66; }
}

@keyframes moon-drift {
  from { transform: translate(-3px, 2px); }
  to { transform: translate(4px, -4px); }
}

@keyframes phase-breathe {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.85; }
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.28; }
  45% { opacity: 1; }
}

@keyframes rain-fall {
  0% { transform: translateY(-8px); opacity: 0; }
  25% { opacity: 0.9; }
  100% { transform: translateY(16px); opacity: 0; }
}

@keyframes ripple {
  0% { transform: scale(0.4); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes cloud-drift {
  from { transform: translateX(-5px); }
  to { transform: translateX(7px); }
}

@keyframes mist-drift {
  from { transform: translateX(-8px); opacity: 0.35; }
  to { transform: translateX(8px); opacity: 0.6; }
}

@keyframes wind-flow {
  to { stroke-dashoffset: -68; }
}

@keyframes gust-drift {
  from { transform: translateX(-6px); opacity: 0.4; }
  to { transform: translateX(9px); opacity: 0.85; }
}

/* 形态实验面板 */

.form-lab {
  padding: 13px 14px 12px;
  border: 1px solid var(--hairline);
  border-top-color: color-mix(in srgb, var(--chapter-accent) 34%, transparent);
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.6), rgba(244, 241, 232, 0.2));
}

.lab-tab {
  color: var(--ink-soft);
  border-color: rgba(34, 35, 31, 0.16);
}

.lab-tab.is-active {
  box-shadow: 0 4px 12px -8px rgba(163, 75, 57, 0.8);
}

.lab-note {
  color: var(--ink-faint);
}

/* ---------------------------------------------------------
   第二章 · 配对与连接线
   --------------------------------------------------------- */

.match-layout {
  position: relative;
  flex: 0 0 auto;
  padding-bottom: clamp(12px, 1.4vh, 22px);
}

.screen[data-screen="level2"] {
  padding-bottom: 16px;
}

.l2-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.match-col {
  position: relative;
  z-index: 2;
}

.match-item {
  min-height: clamp(96px, 9.6vh, 124px);
}

.symbol-item .artwork {
  width: clamp(82px, 9vh, 112px);
  height: clamp(82px, 9vh, 112px);
}

.symbol-item .artwork img {
  padding: 5%;
}

.symbol-item {
  padding-left: 14px;
  padding-right: 22px;
}

.symbol-item .mi-main strong {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}

.symbol-item .mi-main small {
  font-size: 9.5px;
}

.meaning-item .mi-main strong {
  font-size: clamp(22px, 1.5vw, 28px);
}

.match-item:hover:not(:disabled) {
  background:
    linear-gradient(90deg, rgba(176, 141, 87, 0.08), transparent 80%);
  border-color: rgba(154, 113, 72, 0.4);
}

.match-item.selected {
  box-shadow: inset 2px 0 0 var(--cinnabar), 0 8px 24px -22px rgba(163, 75, 57, 0.6);
}

.match-item.matched {
  background: rgba(126, 137, 119, 0.1);
  border-color: rgba(126, 137, 119, 0.32);
}

.symbol-item.matched .artwork {
  border-color: rgba(126, 137, 119, 0.35);
}

.l2-lines .l2-link {
  fill: none;
  stroke: rgba(176, 141, 87, 0.78);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: l2-draw 0.72s var(--ease) forwards;
}

.l2-lines .l2-link-halo {
  fill: none;
  stroke: rgba(176, 141, 87, 0.16);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: l2-draw 0.72s var(--ease) forwards;
}

@keyframes l2-draw {
  to { stroke-dashoffset: 0; }
}

.l2-lines .l2-node {
  fill: var(--paper);
  stroke: var(--gold-deep);
  stroke-width: 1;
}

.l2-lines .l2-spark {
  fill: #F2DFB6;
  filter: drop-shadow(0 0 4px rgba(232, 211, 169, 0.9));
}

.l2-lines.is-complete .l2-link {
  stroke: rgba(142, 108, 60, 0.9);
}

.l2-lines.is-complete .l2-node {
  fill: var(--gold-deep);
  stroke: var(--gold-deep);
}

.match-layout.is-completing .match-item.matched {
  animation: match-lit 0.9s var(--ease);
}

@keyframes match-lit {
  0%, 100% { background: rgba(126, 137, 119, 0.1); }
  45% { background: rgba(176, 141, 87, 0.22); }
}

#l2-feedback {
  min-height: 70px;
}

.l2-gain {
  border-top-color: rgba(176, 141, 87, 0.32);
}

.l2-gain .l2-gain-art {
  width: 54px;
  height: 54px;
}

/* ---------------------------------------------------------
   第三章 · 排序与昼夜叙事
   --------------------------------------------------------- */

.slot-row {
  position: relative;
}

.slot-card {
  width: clamp(158px, 13vw, 246px);
}

.slot-card::before {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(89, 98, 124, 0.28), transparent);
  z-index: 0;
  pointer-events: none;
}

.slot-card .artwork {
  box-shadow: 0 24px 48px -34px rgba(34, 35, 31, 0.55);
}

.slot-card:hover .artwork {
  border-color: rgba(89, 98, 124, 0.4);
}

.slot-seal {
  background: rgba(248, 244, 234, 0.92);
}

.target-banner {
  border-left-color: rgba(89, 98, 124, 0.4);
}

.rule-poem {
  font-size: clamp(19px, 1.6vw, 27px);
  letter-spacing: 0.12em;
}

.arrow-btn:hover:not(:disabled) {
  color: var(--chapter-accent);
  background: rgba(89, 98, 124, 0.08);
  border-color: rgba(89, 98, 124, 0.5);
}

.narrative-wash {
  inset: -4% -4%;
  -webkit-mask-image: radial-gradient(ellipse 82% 86% at 50% 48%, #000 38%, transparent 82%);
  mask-image: radial-gradient(ellipse 82% 86% at 50% 48%, #000 38%, transparent 82%);
}

/* 全屏昼夜叙事 */

.l3-cinema {
  position: fixed;
  inset: 0;
  z-index: 45;
  overflow: hidden;
  background: #141A26;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}

.l3-cinema[hidden] {
  display: none;
}

.l3-cinema.is-visible {
  opacity: 1;
}

.l3-cinema > * {
  position: absolute;
}

.cinema-sky {
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 26% 22%, rgba(247, 216, 160, 0.7), transparent 66%),
    linear-gradient(176deg, #F3E3C4 0%, #E8D3B2 22%, #C9A98E 42%, #7C7E95 60%, #3D4760 78%, #1B2334 100%);
  opacity: 0;
  animation: cine-sky 4.6s linear forwards;
}

.cinema-sun {
  left: 22%;
  top: 20%;
  width: 26vmin;
  height: 26vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 245, 217, 0.95), rgba(240, 199, 132, 0.55) 44%, transparent 70%);
  filter: blur(2px);
  opacity: 0;
  animation: cine-sun 4.6s var(--ease) forwards;
}

.cinema-moon {
  right: 24%;
  top: 16%;
  width: 16vmin;
  height: 16vmin;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 34%, rgba(252, 250, 240, 0.95), rgba(206, 216, 232, 0.72) 58%, rgba(178, 192, 214, 0.1) 72%, transparent 76%);
  box-shadow: 0 0 70px rgba(196, 210, 232, 0.35);
  opacity: 0;
  animation: cine-moon 4.6s var(--ease) forwards;
}

.cinema-stars {
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 251, 236, 0.95) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(208, 222, 246, 0.9) 0 1.2px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 0.8px, transparent 1.4px);
  background-size: 230px 200px, 320px 280px, 150px 160px;
  background-position: 40px 60px, 160px 130px, 80px 20px;
  opacity: 0;
  animation: cine-stars 4.6s linear forwards;
}

.cinema-orbits {
  inset: 0;
}

.cinema-orbits .cine-orbit {
  position: absolute;
  left: 50%;
  top: 52%;
  border: 1px solid rgba(232, 211, 169, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0;
  animation: cine-orbit 4.6s var(--ease) forwards;
}

.cinema-orbits .co1 {
  width: 66vmin;
  height: 42vmin;
  rotate: -16deg;
}

.cinema-orbits .co2 {
  width: 46vmin;
  height: 28vmin;
  rotate: 12deg;
  animation-delay: 0.3s;
}

.cinema-orbits .co3 {
  width: 82vmin;
  height: 54vmin;
  rotate: -34deg;
  animation-delay: 0.5s;
}

.cinema-glyphs {
  inset: 0;
}

.cine-glyph {
  position: absolute;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  filter: drop-shadow(0 0 26px rgba(240, 214, 160, 0.28));
}

.cine-glyph img {
  display: block;
  width: 100%;
  height: auto;
  filter: invert(0.93) sepia(0.24) saturate(1.2) hue-rotate(-8deg);
  mix-blend-mode: screen;
}

.cine-glyph figcaption {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.28em;
  color: rgba(240, 232, 212, 0.72);
}

.cg-1 {
  left: 14%;
  top: 34%;
  width: 15vmin;
  animation: cine-glyph-1 4.6s var(--ease) forwards;
}

.cg-2 {
  left: 43%;
  top: 26%;
  width: 13vmin;
  animation: cine-glyph-2 4.6s var(--ease) forwards;
}

.cg-3 {
  right: 15%;
  top: 36%;
  width: 12vmin;
  animation: cine-glyph-3 4.6s var(--ease) forwards;
}

.cinema-lines {
  left: 0;
  right: 0;
  bottom: 16%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.cine-line {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 38px);
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: #F4EBD8;
  text-shadow: 0 2px 30px rgba(20, 26, 38, 0.5);
  opacity: 0;
}

.cine-1 { animation: cine-line 4.6s var(--ease) forwards; }
.cine-2 { animation: cine-line-2 4.6s var(--ease) forwards; }
.cine-3 { animation: cine-line-3 4.6s var(--ease) forwards; }

.cine-line.cine-4 {
  margin-top: 10px;
  font-size: clamp(15px, 1.3vw, 20px);
  letter-spacing: 0.26em;
  color: rgba(238, 225, 200, 0.82);
  animation: cine-line-4 4.6s var(--ease) forwards;
}

.cinema-note {
  left: 0;
  right: 0;
  bottom: 9%;
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-align: center;
  color: rgba(232, 224, 206, 0.5);
  opacity: 0;
  animation: cine-note 4.6s var(--ease) forwards;
}

.cinema-skip {
  right: clamp(20px, 3vw, 44px);
  bottom: clamp(20px, 3vh, 36px);
  z-index: 3;
  padding: 9px 20px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(244, 235, 216, 0.86);
  background: rgba(20, 26, 38, 0.3);
  border: 1px solid rgba(232, 211, 169, 0.38);
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.cinema-skip:hover {
  background: rgba(20, 26, 38, 0.6);
  border-color: rgba(232, 211, 169, 0.72);
}

.cinema-skip:focus-visible {
  outline: 1px solid #E8D3A9;
  outline-offset: 4px;
}

@keyframes cine-sky {
  0% { opacity: 1; filter: brightness(1.06); }
  26% { opacity: 1; filter: brightness(1.04); }
  58% { opacity: 1; filter: brightness(0.94); }
  100% { opacity: 1; filter: brightness(0.9); }
}

@keyframes cine-sun {
  0% { opacity: 0; transform: scale(0.6); }
  12% { opacity: 0.96; transform: scale(1); }
  38% { opacity: 0.82; }
  62% { opacity: 0; transform: scale(1.12) translateY(6vh); }
  100% { opacity: 0; }
}

@keyframes cine-moon {
  0%, 30% { opacity: 0; transform: translateY(4vh); }
  52% { opacity: 0.95; transform: translateY(0); }
  100% { opacity: 0.9; }
}

@keyframes cine-stars {
  0%, 44% { opacity: 0; }
  72% { opacity: 0.7; }
  100% { opacity: 0.95; }
}

@keyframes cine-orbit {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  55% { opacity: 0.5; }
  100% { opacity: 0.34; transform: translate(-50%, -50%) scale(1); }
}

@keyframes cine-glyph-1 {
  0%, 4% { opacity: 0; transform: translateY(18px) scale(0.94); }
  16% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0.95; transform: translateY(0) scale(1); }
}

@keyframes cine-glyph-2 {
  0%, 28% { opacity: 0; transform: translateY(18px) scale(0.94); }
  44% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0.95; transform: translateY(0) scale(1); }
}

@keyframes cine-glyph-3 {
  0%, 52% { opacity: 0; transform: translateY(16px) scale(0.94); }
  70% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0.95; transform: translateY(0) scale(1); }
}

@keyframes cine-line {
  0%, 6% { opacity: 0; letter-spacing: 0.5em; }
  18%, 100% { opacity: 1; letter-spacing: 0.32em; }
}

@keyframes cine-line-2 {
  0%, 30% { opacity: 0; }
  42%, 100% { opacity: 1; }
}

@keyframes cine-line-3 {
  0%, 55% { opacity: 0; }
  67%, 100% { opacity: 1; }
}

@keyframes cine-line-4 {
  0%, 74% { opacity: 0; }
  86%, 100% { opacity: 1; }
}

@keyframes cine-note {
  0%, 84% { opacity: 0; }
  94%, 100% { opacity: 1; }
}

/* 第三章正确排序后的卡片强调 */

.order-layout.is-narrating .slot-card .artwork {
  animation: slot-lit 1.4s var(--ease) both;
  animation-delay: calc(var(--d, 0ms) + 300ms);
}

@keyframes slot-lit {
  0% { box-shadow: 0 24px 48px -34px rgba(34, 35, 31, 0.55); }
  40% { box-shadow: 0 0 0 6px rgba(176, 141, 87, 0.14), 0 24px 60px -30px rgba(142, 108, 60, 0.65); }
  100% { box-shadow: 0 0 0 1px rgba(176, 141, 87, 0.32), 0 24px 48px -34px rgba(34, 35, 31, 0.55); }
}

/* ---------------------------------------------------------
   成果档案 · 展览图录
   --------------------------------------------------------- */

.result-sheet {
  max-width: 1320px;
}

.result-head {
  position: relative;
  padding-bottom: 22px;
  border-bottom-color: rgba(176, 141, 87, 0.34);
}

.result-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 120px;
  height: 1px;
  background: var(--cinnabar);
}

.result-title {
  font-size: clamp(30px, 3.3vw, 50px);
  letter-spacing: 0.14em;
}

.archive-stage {
  position: relative;
  padding: clamp(16px, 2.4vh, 30px) clamp(6px, 1.4vw, 22px);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}

.archive-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.archive-lines .archive-arc {
  position: absolute;
  border: 1px solid var(--gold-hair);
  border-radius: 50%;
  opacity: 0.6;
}

.archive-lines .arc-a {
  left: 50%;
  top: 50%;
  width: 78%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-style: dashed;
  opacity: 0.35;
}

.archive-lines .arc-b {
  left: 50%;
  top: 50%;
  width: 54%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
}

.archive-lines .archive-axis {
  position: absolute;
  background: rgba(176, 141, 87, 0.28);
}

.archive-lines .arc-v {
  left: 50%;
  top: 4%;
  bottom: 4%;
  width: 1px;
}

.archive-lines .arc-h {
  top: 50%;
  left: 3%;
  right: 3%;
  height: 1px;
}

.result-symbols {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: start;
  gap: clamp(6px, 1vw, 18px);
  padding: clamp(8px, 1.6vh, 18px) 0 clamp(4px, 1vh, 10px);
  border-bottom: 0;
}

.result-symbol {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 0;
  border-left: 0 !important;
  opacity: 0;
  animation: symbol-rise 0.65s var(--ease) both;
  animation-delay: calc(240ms + var(--i, 0) * 95ms);
}

.result-symbol:nth-child(1) { translate: 0 16px; }
.result-symbol:nth-child(2) { translate: 0 -6px; }
.result-symbol:nth-child(3) { translate: 0 24px; }
.result-symbol:nth-child(4) { translate: 0 2px; }
.result-symbol:nth-child(5) { translate: 0 30px; }
.result-symbol:nth-child(6) { translate: 0 12px; }

.result-symbol::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8%;
  bottom: 34%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(176, 141, 87, 0.24), transparent);
  transform: translateX(-50%);
  z-index: -1;
}

.result-symbol img {
  width: 100%;
  max-width: clamp(76px, 6.4vw, 118px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 12px 18px rgba(34, 35, 31, 0.08));
  transition: scale 0.5s var(--ease), filter 0.5s var(--ease);
}

.result-symbol:hover img {
  scale: 1.05;
  filter: drop-shadow(0 16px 26px rgba(142, 108, 60, 0.24));
}

.rs-index {
  position: absolute;
  top: 0;
  left: 6%;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
}

.rs-label {
  font-family: var(--serif);
  font-size: clamp(13px, 1.05vw, 16px);
  letter-spacing: 0.2em;
  color: var(--ink);
}

.rs-en {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
}

.result-symbol .rs-fallback {
  width: 78px;
  height: 78px;
}

.archive-caption {
  position: absolute;
  top: clamp(6px, 1.2vh, 14px);
  right: clamp(10px, 1.6vw, 24px);
  z-index: 2;
  margin: 0;
  padding: 3px 0;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.26em;
  text-align: right;
  color: var(--ink-ghost);
  background: linear-gradient(90deg, transparent, rgba(244, 240, 229, 0.9) 22%);
}

.result-meta {
  padding: 18px 0;
  border-bottom-color: rgba(176, 141, 87, 0.26);
}

.result-honor {
  background:
    linear-gradient(90deg, rgba(163, 75, 57, 0.08), rgba(176, 141, 87, 0.1));
  border-color: rgba(176, 141, 87, 0.36);
}

.result-credit {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  text-align: right;
}

.result-credit b {
  color: var(--cinnabar);
  font-weight: 500;
}

/* ---------------------------------------------------------
   关于作品 · 展签
   --------------------------------------------------------- */

.about-layer {
  position: absolute;
  inset: 0;
  z-index: 92;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.about-layer[hidden] {
  display: none;
}

.about-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 27, 23, 0.46);
  backdrop-filter: blur(3px);
}

.about-panel {
  position: relative;
  width: min(880px, 100%);
  max-height: min(720px, 90vh);
  padding: clamp(24px, 3.4vw, 42px) clamp(22px, 3.4vw, 48px) clamp(22px, 3vw, 34px);
  overflow-y: auto;
  background:
    radial-gradient(ellipse 70% 60% at 84% 4%, rgba(176, 141, 87, 0.16), transparent 68%),
    linear-gradient(162deg, #F8F5EC, #EFE9DA 70%, #E8E1D0);
  border: 1px solid rgba(176, 141, 87, 0.5);
  box-shadow: 0 34px 90px rgba(20, 19, 15, 0.32);
  animation: modal-in 0.36s var(--ease) both;
}

.about-panel::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(176, 141, 87, 0.2);
  pointer-events: none;
}

.about-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(176, 141, 87, 0.3);
}

.about-plate {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.75fr);
  gap: clamp(24px, 4vw, 54px);
  padding: 24px 0 20px;
}

.about-plate-main h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.about-en {
  margin: 10px 0 0;
  font-family: var(--latin);
  font-size: 10.5px;
  letter-spacing: 0.36em;
  color: var(--gold-deep);
}

.about-sub {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.about-slogan {
  margin: 12px 0 0;
  padding-left: 14px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--cinnabar);
  border-left: 1px solid rgba(163, 75, 57, 0.45);
}

.about-desc {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--ink-soft);
}

.about-author {
  padding-left: clamp(18px, 2.4vw, 30px);
  border-left: 1px solid rgba(34, 35, 31, 0.14);
}

.about-role {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  color: var(--ink-faint);
}

.about-name {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink);
}

.about-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.contact-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(34, 35, 31, 0.1);
}

.contact-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.contact-value {
  min-width: 0;
  overflow: hidden;
  font-family: var(--latin);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.contact-value {
  border-bottom: 1px solid rgba(163, 75, 57, 0.3);
}

a.contact-value:hover {
  color: var(--cinnabar);
}

.copy-btn {
  flex: none;
  padding: 2px 8px;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.copy-btn:hover {
  color: var(--cinnabar);
  border-color: rgba(163, 75, 57, 0.5);
  background: var(--cinnabar-soft);
}

.copy-btn:focus-visible {
  outline: 1px solid var(--cinnabar);
  outline-offset: 2px;
}

.copy-btn.is-done {
  color: var(--mountain);
  border-color: rgba(126, 137, 119, 0.5);
}

.about-note {
  margin: 4px 0 0;
  padding-top: 14px;
  font-size: 11px;
  line-height: 1.85;
  color: var(--ink-faint);
  border-top: 1px solid rgba(34, 35, 31, 0.12);
}

.about-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.about-credit-note {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.contact-value.is-copyable {
  cursor: pointer;
}

.contact-value.is-copyable:hover,
.contact-value.is-copyable:focus-visible {
  color: var(--cinnabar);
}

.match-item.is-finale-lit {
  animation: match-lit 0.9s var(--ease);
}

body.is-anonymous [data-author-block],
body.is-anonymous [data-author-name],
body.is-anonymous .credit-author,
body.is-anonymous .result-credit {
  display: none !important;
}

/* ---------------------------------------------------------
   响应式补充
   --------------------------------------------------------- */

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(300px, 0.94fr) minmax(340px, 1.06fr);
    gap: 34px;
  }

  .hero-readout {
    min-width: 150px;
  }

  .glyph-01 { width: 34%; }
  .about-plate {
    grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.8fr);
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .screen-start {
    background:
      radial-gradient(ellipse 70% 50% at 70% 18%, rgba(196, 160, 102, 0.18), transparent 68%),
      linear-gradient(160deg, #F8F5EC, #EEE8DA);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-art {
    max-width: 560px;
    margin: 0 auto;
    aspect-ratio: 10 / 9;
  }

  .hero-readout {
    bottom: 0;
    min-width: 132px;
  }

  .hero-credit {
    font-size: 9px;
    line-height: 1.8;
  }

  .glyph-01 { left: 2%; top: 9%; width: 35%; }
  .glyph-02 { left: 68%; top: 3%; width: 27%; }
  .glyph-03 { left: 72%; top: 47%; width: 23%; }
  .glyph-04 { left: 7%; top: 60%; width: 26%; }
  .glyph-05 { left: 40%; top: 43%; width: 19%; }
  .glyph-06 { left: 38%; top: 74%; width: 16%; }

  .atmos-map .a1 { width: 90vw; height: 90vw; }
  .atmos-map .a2 { width: 64vw; height: 64vw; }
  .atmos-map .a3 { width: 70vw; height: 70vw; }
  .atmos-result .atmos-frame { display: none; }

  .match-item {
    min-height: 74px;
  }

  .symbol-item .artwork {
    width: 82px;
    height: 82px;
  }

  .screen[data-screen="level2"] {
    padding-bottom: 34px;
  }

  .l2-lines {
    display: none;
  }

  .result-symbols {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 26px;
  }

  .result-symbol:nth-child(n) {
    translate: 0 0;
  }

  .result-symbol:nth-child(1),
  .result-symbol:nth-child(4) { translate: 0 8px; }

  .archive-lines .arc-a,
  .archive-lines .arc-b {
    width: 120%;
  }

  .about-plate {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 18px;
  }

  .about-author {
    padding-left: 0;
    padding-top: 18px;
    border-left: 0;
    border-top: 1px solid rgba(34, 35, 31, 0.14);
  }

  .about-panel {
    max-height: 88vh;
  }

  .cinema-lines {
    bottom: 20%;
    padding: 0 22px;
  }

  .cg-1 { left: 8%; top: 30%; width: 19vmin; }
  .cg-2 { left: 41%; top: 22%; width: 16vmin; }
  .cg-3 { right: 9%; top: 32%; width: 15vmin; }

  .cinema-note {
    bottom: 11%;
  }
}

@media (max-width: 560px) {
  .hero-readout {
    position: absolute;
    right: 0;
    bottom: 0;
    margin-top: 0;
    justify-content: flex-start;
  }

  .art-meta {
    display: none;
  }

  .hero-title {
    font-size: clamp(46px, 15vw, 76px);
  }

  .hero-actions {
    gap: 16px;
  }

  .hero-actions .link-btn {
    font-size: 11.5px;
  }

  .result-symbols {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-symbol:nth-child(n) {
    translate: 0 0;
  }

  .archive-caption {
    position: static;
    margin-top: 10px;
    text-align: left;
    background: none;
  }

  .contact-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }

  .cinema-glyphs {
    top: 2vh;
  }

  .cg-1 { left: 6%; top: 30%; width: 22vmin; }
  .cg-2 { left: 39%; top: 20%; width: 19vmin; }
  .cg-3 { right: 7%; top: 32%; width: 18vmin; }

  .cinema-lines {
    bottom: 24%;
  }

  .cine-line {
    font-size: 20px;
    letter-spacing: 0.22em;
    text-indent: 0.22em;
  }

  .cinema-note {
    bottom: 14%;
    font-size: 8px;
  }
}

/* 低高度桌面：在视觉升级后重新压缩，保证不重叠 */

@media (max-height: 960px) and (min-width: 901px) {
  .hero-title {
    font-size: clamp(58px, 6.6vw, 92px);
    margin-top: 18px;
  }

  .hero-intro {
    margin-top: 14px;
    line-height: 1.85;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-credit {
    margin-top: 16px;
  }

  .hero-fineprint {
    margin-top: 6px;
  }

  .hero-art {
    aspect-ratio: 10 / 8.6;
    max-width: 620px;
    justify-self: end;
  }

  .map-intro h2 {
    font-size: 30px;
  }

  .level-card {
    grid-template-columns: 56px minmax(0, 1fr) clamp(150px, 15vw, 220px) auto;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 18px;
  }

  .level-art {
    height: 104px;
  }

  .level-art-1 .la-a { width: 92px; right: 58px; top: 12%; }
  .level-art-1 .la-frame { right: 18px; width: 62px; height: 62px; }
  .level-art-1 .la-arc { right: 32px; width: 96px; height: 96px; }
  .level-art-2 .la-a { width: 84px; }
  .level-art-2 .la-b { width: 68px; }
  .level-art-3 .la-a { width: 66px; }
  .level-art-3 .la-b { width: 58px; }
  .level-art-3 .la-c { width: 68px; }

  .level-name {
    font-size: 26px;
  }

  .quiz-layout {
    grid-template-columns: minmax(230px, 29%) 1fr;
  }

  .symbol-panel {
    max-width: 330px;
  }

  .form-lab {
    padding: 8px 10px 8px;
  }

  .lab-tab {
    padding: 5px 3px;
    font-size: 10.5px;
  }

  .lab-note {
    font-size: 9px;
  }

  .match-item {
    min-height: 72px;
    padding: 4px 14px;
  }

  .symbol-item {
    padding-left: 10px;
    padding-right: 18px;
  }

  .symbol-item .artwork {
    width: 70px;
    height: 70px;
  }

  .meaning-item .mi-main strong {
    font-size: 21px;
  }

  .match-list {
    gap: 5px;
  }

  #l2-feedback {
    min-height: 56px;
  }

  .l2-gain .l2-gain-art {
    width: 44px;
    height: 44px;
  }

  .slot-card {
    width: clamp(146px, 12vw, 188px);
  }

  .rule-poem {
    font-size: 19px;
  }

  .result-sheet {
    padding-top: 6px;
  }

  .result-title {
    font-size: clamp(28px, 2.8vw, 38px);
  }

  .archive-stage {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .result-symbol img {
    max-width: 84px;
  }

  .result-meta {
    padding: 12px 0;
  }

  .result-conclusion {
    margin-top: 12px;
  }

  .result-actions {
    margin-top: 18px;
  }

  .about-panel {
    max-height: 92vh;
    padding-top: 24px;
    padding-bottom: 22px;
  }

  .about-plate {
    padding: 16px 0 12px;
  }

  .about-desc {
    margin-top: 10px;
    line-height: 1.8;
  }
}

/* =========================================================
   V4 · 万象宇宙
   东方神秘自然主义 × 象形文字艺术 × 沉浸式数字宇宙
   ========================================================= */

:root {
  --void: #07080B;
  --void-2: #0B0E14;
  --void-3: #10141C;
  --panel: rgba(20, 23, 31, 0.86);
  --panel-solid: #14171F;
  --jade: #2E8B7A;
  --jade-deep: #123B34;
  --jade-soft: rgba(46, 139, 122, 0.16);

  --paper: #0A0C11;
  --paper-warm: #0F1218;
  --paper-deep: #171B23;
  --ink: #F3EBD9;
  --ink-soft: rgba(243, 235, 217, 0.84);
  --ink-faint: rgba(243, 235, 217, 0.66);
  --ink-ghost: rgba(243, 235, 217, 0.38);
  --cinnabar: #C34A35;
  --cinnabar-deep: #A63A28;
  --cinnabar-soft: rgba(195, 74, 53, 0.13);
  --mountain: #7FA695;
  --mountain-soft: rgba(127, 166, 149, 0.13);
  --stone: #8C8371;
  --stone-soft: rgba(140, 131, 113, 0.16);
  --gold: #C9A45C;
  --gold-deep: #E8C98A;
  --gold-soft: rgba(201, 164, 92, 0.15);
  --gold-hair: rgba(201, 164, 92, 0.38);
  --ochre: #B98B52;
  --night: #060C16;
  --night-soft: #13203A;
  --hairline: rgba(232, 213, 170, 0.15);
  --hairline-strong: rgba(232, 213, 170, 0.32);
}

body {
  background: var(--void);
  color: var(--ink);
}

.stage {
  background:
    radial-gradient(ellipse 80% 60% at 78% 4%, rgba(201, 164, 92, 0.09), transparent 62%),
    radial-gradient(ellipse 70% 60% at 8% 98%, rgba(46, 139, 122, 0.09), transparent 66%),
    radial-gradient(ellipse 60% 50% at 96% 78%, rgba(195, 74, 53, 0.07), transparent 70%),
    linear-gradient(168deg, #08090C 0%, #0A0D13 44%, #06070A 100%);
}

.grain {
  opacity: 0.3;
  mix-blend-mode: overlay;
}

::selection {
  background: var(--gold);
  color: #0A0C11;
}

/* 通用文字与按钮的深色对比 */

.kicker,
.eyebrow {
  color: var(--ink-faint);
}

.kicker-line {
  background: var(--gold-hair);
}

.eyebrow {
  color: var(--gold-deep);
}

.link-btn {
  color: var(--gold-deep);
  border-bottom-color: rgba(201, 164, 92, 0.5);
}

.link-btn:hover {
  color: #F6E3B8;
  border-bottom-color: #F6E3B8;
}

.btn {
  color: var(--ink);
  border-color: var(--hairline-strong);
  background: rgba(12, 15, 21, 0.4);
}

.btn:hover:not(:disabled) {
  color: #0A0C11;
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}

.btn-primary {
  color: #FFF6E6;
  background: linear-gradient(135deg, #C9543C, #A63A28);
  border-color: rgba(195, 74, 53, 0.6);
  box-shadow: 0 12px 34px -22px rgba(195, 74, 53, 0.9);
}

.btn-primary:hover:not(:disabled) {
  color: #FFF9EE;
  background: linear-gradient(135deg, #DC6448, #B4432D);
  border-color: #DC6448;
}

.btn-ghost {
  color: var(--ink-soft);
  border-color: var(--hairline);
  background: rgba(12, 15, 21, 0.3);
}

.btn-ghost:hover:not(:disabled) {
  color: var(--gold-deep);
  background: rgba(201, 164, 92, 0.1);
  border-color: var(--gold-hair);
}

.btn:focus-visible,
.link-btn:focus-visible {
  outline-color: var(--gold);
}

/* 屏幕底色 */

.screen {
  scrollbar-color: var(--gold-hair) transparent;
}

.screen::-webkit-scrollbar-thumb {
  background: var(--gold-hair);
}

.screen-start {
  background:
    radial-gradient(ellipse 62% 56% at 78% 18%, rgba(201, 164, 92, 0.16), transparent 68%),
    radial-gradient(ellipse 60% 60% at 4% 92%, rgba(46, 139, 122, 0.12), transparent 70%),
    radial-gradient(ellipse 48% 42% at 92% 96%, rgba(195, 74, 53, 0.1), transparent 72%),
    linear-gradient(158deg, #07080B 0%, #0A0D13 46%, #07090D 100%);
}

.screen[data-screen="map"] {
  background:
    radial-gradient(ellipse 54% 46% at 86% 0%, rgba(201, 164, 92, 0.14), transparent 68%),
    radial-gradient(ellipse 56% 56% at 2% 100%, rgba(46, 139, 122, 0.12), transparent 70%),
    linear-gradient(166deg, #080A0F 0%, #0A0D13 52%, #06080C 100%);
}

.screen[data-screen="level1"] {
  --chapter-accent: #7FBFA4;
  background:
    radial-gradient(ellipse 52% 46% at 12% 2%, rgba(46, 139, 122, 0.2), transparent 66%),
    radial-gradient(ellipse 50% 50% at 92% 92%, rgba(126, 137, 119, 0.14), transparent 70%),
    linear-gradient(164deg, #060B0A 0%, #08110F 48%, #050A09 100%);
}

.screen[data-screen="level2"] {
  --chapter-accent: #E0B873;
  background:
    radial-gradient(ellipse 54% 48% at 84% 0%, rgba(201, 164, 92, 0.2), transparent 66%),
    radial-gradient(ellipse 52% 52% at 8% 100%, rgba(154, 113, 72, 0.16), transparent 70%),
    linear-gradient(164deg, #0B0A08 0%, #120F0B 50%, #090806 100%);
}

.screen[data-screen="level3"] {
  --chapter-accent: #9DB4E0;
  background:
    radial-gradient(ellipse 56% 46% at 18% 0%, rgba(78, 108, 168, 0.22), transparent 68%),
    radial-gradient(ellipse 50% 46% at 92% 88%, rgba(201, 164, 92, 0.12), transparent 70%),
    linear-gradient(170deg, #05080F 0%, #080D1A 46%, #04060B 100%);
}

.screen[data-screen="result"] {
  --chapter-accent: var(--gold);
  background:
    radial-gradient(ellipse 52% 44% at 84% 2%, rgba(201, 164, 92, 0.16), transparent 68%),
    radial-gradient(ellipse 48% 46% at 4% 98%, rgba(195, 74, 53, 0.1), transparent 72%),
    linear-gradient(168deg, #07080B 0%, #0B0E15 52%, #06070A 100%);
}

/* 深色底上的真实字形：保持结构，仅作暖色反相 */

.glyph img,
.artwork img,
.result-symbol img,
.lw-glyph,
.la-glyph,
.cine-glyph img,
.rs-fallback {
  mix-blend-mode: normal;
  filter: invert(0.93) sepia(0.28) saturate(1.25) hue-rotate(-10deg) brightness(1.08)
    drop-shadow(0 12px 26px rgba(201, 164, 92, 0.16));
}

/* =========================================================
   首页 · 万象宇宙
   ========================================================= */

.hero-sky canvas {
  opacity: 0.9;
}

.hero-nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.hero-nebula.neb-a {
  right: 6vw;
  top: 10vh;
  width: 40vw;
  height: 40vw;
  background:
    radial-gradient(circle at 40% 40%, rgba(201, 164, 92, 0.3), transparent 62%),
    radial-gradient(circle at 68% 62%, rgba(195, 74, 53, 0.14), transparent 66%);
  animation: nebula-drift 30s ease-in-out infinite alternate;
}

.hero-nebula.neb-b {
  left: -10vw;
  bottom: -14vh;
  width: 44vw;
  height: 44vw;
  background:
    radial-gradient(circle at 50% 50%, rgba(46, 139, 122, 0.28), transparent 64%),
    radial-gradient(circle at 30% 70%, rgba(78, 108, 168, 0.16), transparent 70%);
  animation: nebula-drift 36s ease-in-out infinite alternate-reverse;
}

.hero-ink-wash {
  position: absolute;
  left: -6vw;
  bottom: -18vh;
  width: 56vw;
  height: 46vh;
  background:
    radial-gradient(ellipse 60% 70% at 40% 60%, rgba(0, 0, 0, 0.7), transparent 70%),
    radial-gradient(ellipse 44% 52% at 70% 40%, rgba(12, 16, 22, 0.8), transparent 72%);
  filter: blur(18px);
  opacity: 0.8;
}

.hero-glow {
  filter: blur(56px);
}

.hero-glow-gold {
  background: radial-gradient(circle, rgba(201, 164, 92, 0.3), transparent 66%);
}

.hero-glow-ink {
  background: radial-gradient(circle, rgba(46, 139, 122, 0.18), transparent 68%);
}

.hero-grid {
  background-image:
    linear-gradient(90deg, rgba(232, 213, 170, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(232, 213, 170, 0.06) 1px, transparent 1px);
  opacity: 0.55;
}

.hero-horizon-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 164, 92, 0.24), transparent);
  opacity: 0.7;
}

.hero {
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(28px, 3.4vw, 64px);
}

.hero-copy {
  max-width: 660px;
}

.hero-title {
  margin-top: 18px;
  font-size: clamp(86px, 10.6vw, 192px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0.04em;
}

.hero-title span {
  display: inline-block;
  background: linear-gradient(180deg, #FFF9E8 0%, #F0D7A0 46%, #9D7B42 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 14px 40px rgba(201, 164, 92, 0.24));
  animation: hero-char-in 1.1s var(--ease) both;
}

.hero-title span:nth-of-type(1) { animation-delay: 0.16s; }
.hero-title span:nth-of-type(2) { animation-delay: 0.28s; }
.hero-title span:nth-of-type(3) { animation-delay: 0.4s; }
.hero-title span:nth-of-type(4) { animation-delay: 0.52s; }

@keyframes hero-char-in {
  from {
    opacity: 0;
    transform: translateY(30px) rotate(-3deg);
    filter: blur(10px) drop-shadow(0 14px 40px rgba(201, 164, 92, 0));
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
    filter: blur(0) drop-shadow(0 14px 40px rgba(201, 164, 92, 0.24));
  }
}

.hero-title-en {
  color: rgba(232, 213, 170, 0.62);
  letter-spacing: 0.34em;
}

.hero-rule {
  background: linear-gradient(90deg, var(--cinnabar), rgba(201, 164, 92, 0.2));
}

.hero-subtitle {
  color: #F1E6D0;
}

.hero-subtitle-en {
  color: rgba(232, 213, 170, 0.56);
}

.hero-slogan {
  color: #F6E9CE;
  border-left-color: rgba(195, 74, 53, 0.7);
  text-shadow: 0 0 40px rgba(201, 164, 92, 0.18);
}

.hero-intro {
  color: rgba(243, 235, 217, 0.76);
}

.hero-actions .link-btn {
  color: rgba(232, 213, 170, 0.72);
  border-bottom-color: rgba(201, 164, 92, 0.32);
}

.hero-credit {
  color: rgba(243, 235, 217, 0.56);
}

.hero-credit b {
  color: var(--gold-deep);
}

.hero-fineprint {
  color: rgba(243, 235, 217, 0.5);
}

.hero-art {
  aspect-ratio: 10 / 9.2;
  --px: 0px;
  --py: 0px;
}

.hero-art .glyph {
  translate: calc(var(--px) * 12px * var(--par, 0.8)) calc(var(--py) * 9px * var(--par, 0.8));
  transition: translate 0.7s var(--ease);
}

.hero-art .glyph-01 { --par: 1.25; }
.hero-art .glyph-02 { --par: 0.95; }
.hero-art .glyph-03 { --par: 0.8; }
.hero-art .glyph-04 { --par: 1.1; }
.hero-art .glyph-05 { --par: 0.58; }
.hero-art .glyph-06 { --par: 0.7; }

.hero-art .hero-orbit {
  translate: calc(var(--px) * 4px) calc(var(--py) * 3px);
  transition: translate 0.9s var(--ease);
}

.hero-art .hero-nebula {
  translate: calc(var(--px) * 2px) calc(var(--py) * 2px);
}

.hero-art .hero-seal-mini {
  translate: calc(var(--px) * 6px) calc(var(--py) * 5px);
  transition: translate 0.8s var(--ease);
}

.hero-vert {
  position: absolute;
  right: -1.6%;
  top: 7%;
  z-index: 5;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.42em;
  color: rgba(232, 213, 170, 0.6);
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.hero-seal-mini {
  position: absolute;
  right: 1%;
  top: 1%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-family: var(--serif);
  font-size: 18px;
  color: #F5D9C8;
  background: rgba(195, 74, 53, 0.16);
  border: 1px solid rgba(195, 74, 53, 0.66);
  box-shadow: 0 0 30px rgba(195, 74, 53, 0.18);
}

.hero-orbit .orbit {
  stroke: url(#orbit-gold);
}

.hero-orbit .orbit-outer {
  stroke-width: 1.3;
}

.hero-orbit .orbit-mid {
  stroke: rgba(201, 164, 92, 0.4);
}

.hero-orbit .orbit-inner {
  stroke: rgba(201, 164, 92, 0.28);
}

.hero-orbit .orbit-extra {
  stroke: rgba(201, 164, 92, 0.16);
  stroke-dasharray: 1 7;
  opacity: 0;
  animation: orbit-fade 1.2s var(--ease) 1s both;
}

.hero-orbit .orbit-extra2 {
  stroke: rgba(232, 213, 170, 0.1);
  opacity: 0;
  animation: orbit-fade 1.2s var(--ease) 1.15s both;
}

.hero-orbit .orbit-axis {
  stroke: rgba(232, 213, 170, 0.14);
}

.hero-orbit .orbit-axis-diag {
  opacity: 0;
  animation: axis-fade 1.2s var(--ease) 1.5s both;
}

.hero-orbit .orbit-links path {
  stroke: rgba(201, 164, 92, 0.26);
}

.hero-orbit .orbit-core {
  fill: var(--cinnabar);
}

.hero-orbit .orbit-core-halo {
  fill: rgba(201, 164, 92, 0.08);
  stroke: rgba(232, 201, 138, 0.42);
}

.hero-orbit .orbit-ticks {
  fill: rgba(232, 201, 138, 0.68);
  stroke: rgba(232, 201, 138, 0.4);
}

.hero-orbit .orbit-constellation {
  color: rgba(232, 201, 138, 0.6);
  animation: constellation-twinkle 6s ease-in-out infinite alternate;
}

.hero-orbit .orbit-nebula-core {
  opacity: 0;
  animation: orbit-fade 2s var(--ease) 0.9s both;
}

@keyframes constellation-twinkle {
  from { opacity: 0.4; }
  to { opacity: 0.9; }
}

@keyframes nebula-drift {
  from { transform: scale(0.95) translate3d(0, 0, 0); opacity: 0.5; }
  to { transform: scale(1.08) translate3d(-2%, 2%, 0); opacity: 0.85; }
}

.glyph {
  z-index: 3;
}

.glyph img {
  filter: invert(0.93) sepia(0.3) saturate(1.3) hue-rotate(-10deg) brightness(1.1)
    drop-shadow(0 14px 30px rgba(201, 164, 92, 0.2));
}

.glyph:hover img,
.glyph.is-active img {
  filter: invert(0.96) sepia(0.36) saturate(1.35) hue-rotate(-8deg) brightness(1.18)
    drop-shadow(0 18px 40px rgba(232, 201, 138, 0.34));
}

.glyph figcaption {
  color: rgba(232, 213, 170, 0.62);
}

.glyph-index {
  color: rgba(232, 201, 138, 0.8);
}

.hero-readout {
  padding: 10px 14px;
  border: 1px solid var(--gold-hair);
  background: rgba(8, 10, 14, 0.62);
  backdrop-filter: blur(6px);
  color: rgba(232, 213, 170, 0.64);
}

.hr-index {
  color: var(--cinnabar);
}

.hr-meaning {
  color: #F4E7CB;
}

.hr-en {
  color: rgba(232, 213, 170, 0.5);
}

.art-meta {
  color: rgba(232, 213, 170, 0.36);
}

.hero-motif {
  color: var(--gold-deep);
}

.hero-motif.is-visible {
  opacity: 0.16;
}

/* =========================================================
   章节导航 · 三个沉浸式艺术展窗
   ========================================================= */

.map-intro {
  margin-top: clamp(20px, 3.4vh, 46px);
}

.map-intro h2 {
  color: #F5EAD4;
  text-shadow: 0 0 50px rgba(201, 164, 92, 0.12);
}

.map-intro p:last-child {
  color: rgba(243, 235, 217, 0.64);
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 26px);
  margin-top: clamp(18px, 3vh, 38px);
  flex: 1 1 auto;
  min-height: 0;
}

.level-window {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(360px, 52vh, 580px);
  padding: 0;
  overflow: hidden;
  text-align: left;
  color: var(--ink);
  background: #0B0D12;
  border: 1px solid rgba(232, 213, 170, 0.18);
  cursor: pointer;
  isolation: isolate;
  transition:
    border-color 0.45s var(--ease),
    transform 0.6s var(--ease),
    box-shadow 0.6s var(--ease);
}

.level-window::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.32) 0%, transparent 26%),
    linear-gradient(0deg, rgba(6, 8, 12, 0.94) 4%, rgba(6, 8, 12, 0.6) 42%, transparent 74%);
}

.level-window:hover,
.level-window:focus-visible {
  border-color: rgba(232, 201, 138, 0.6);
  transform: translateY(-6px);
  box-shadow:
    0 34px 70px -40px rgba(0, 0, 0, 0.9),
    0 0 60px -18px rgba(201, 164, 92, 0.22);
  outline: none;
}

.level-window:focus-visible {
  box-shadow:
    0 0 0 1px rgba(232, 201, 138, 0.5),
    0 34px 70px -40px rgba(0, 0, 0, 0.9);
}

.lw-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  transition: transform 1.2s var(--ease), filter 0.8s var(--ease);
}

.level-window:hover .lw-scene {
  transform: scale(1.045);
}

.lw-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 20%, transparent 30%, rgba(4, 6, 9, 0.34) 100%);
  transition: opacity 0.6s var(--ease);
}

.lw-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(14px, 1.6vw, 22px);
}

.lw-index {
  font-family: var(--latin);
  font-size: clamp(30px, 2.6vw, 44px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(243, 235, 217, 0.46);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.level-window.available .lw-index,
.level-window.completed .lw-index {
  color: rgba(232, 201, 138, 0.9);
}

.lw-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: rgba(243, 235, 217, 0.8);
  background: rgba(6, 8, 12, 0.5);
  border: 1px solid rgba(232, 213, 170, 0.2);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.lw-state .status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mountain);
}

.level-window.available .status-dot {
  background: var(--cinnabar);
  box-shadow: 0 0 10px rgba(195, 74, 53, 0.8);
}

.level-window.completed .status-dot {
  background: var(--gold-deep);
  box-shadow: 0 0 10px rgba(232, 201, 138, 0.8);
}

.level-window.locked .status-dot {
  background: rgba(243, 235, 217, 0.36);
}

.lw-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: block;
  padding: clamp(18px, 2vw, 30px);
}

.lw-chapter {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: rgba(232, 213, 170, 0.72);
  text-transform: uppercase;
}

.lw-name {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(40px, 3.6vw, 62px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.14em;
  color: #F8EFDA;
  text-shadow: 0 4px 34px rgba(0, 0, 0, 0.7);
}

.lw-desc {
  display: block;
  max-width: 24em;
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: rgba(243, 235, 217, 0.8);
}

.lw-enter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.lw-enter em {
  font-style: normal;
  transition: transform 0.4s var(--ease);
}

.level-window:hover .lw-enter,
.level-window:focus-visible .lw-enter {
  opacity: 1;
  transform: translateY(0);
}

.level-window:hover .lw-enter em {
  transform: translateX(4px);
}

.lw-lock {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-bottom: 34%;
  background:
    radial-gradient(ellipse 60% 50% at 50% 46%, rgba(6, 8, 12, 0.18), rgba(6, 8, 12, 0.52) 78%);
  backdrop-filter: saturate(0.72);
  pointer-events: none;
}

.level-window.locked .lw-lock {
  display: flex;
}

.lw-lock i {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  font-family: var(--serif);
  font-size: 22px;
  font-style: normal;
  color: rgba(243, 235, 217, 0.76);
  border: 1px solid rgba(232, 213, 170, 0.34);
  background: rgba(6, 8, 12, 0.4);
}

.lw-lock b {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: rgba(232, 213, 170, 0.6);
}

.level-window.locked:hover {
  border-color: rgba(232, 213, 170, 0.4);
}

.level-window.locked .lw-name {
  color: rgba(243, 235, 217, 0.74);
}

.level-window.completed::after {
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.28) 0%, transparent 26%),
    linear-gradient(0deg, rgba(16, 12, 6, 0.94) 4%, rgba(10, 9, 7, 0.6) 42%, transparent 74%);
}

/* 展窗 · 青绿自然世界 */

.scene-nature {
  background:
    radial-gradient(ellipse 80% 60% at 24% 8%, rgba(120, 196, 164, 0.22), transparent 62%),
    linear-gradient(180deg, #0C2B27 0%, #123B34 38%, #0A211D 70%, #050D0B 100%);
}

.scene-nature .lw-sky {
  position: absolute;
  inset: 0 0 34% 0;
  background:
    radial-gradient(ellipse 50% 40% at 26% 20%, rgba(246, 226, 170, 0.24), transparent 68%),
    linear-gradient(180deg, rgba(46, 139, 122, 0.2), transparent 80%);
}

.lw-nature-sun {
  position: absolute;
  left: 22%;
  top: 16%;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 38%, rgba(255, 246, 218, 0.92), rgba(228, 196, 132, 0.5) 44%, transparent 70%);
  box-shadow: 0 0 70px rgba(232, 201, 138, 0.3);
  animation: lw-sun-breathe 9s ease-in-out infinite alternate;
}

@keyframes lw-sun-breathe {
  from { transform: scale(0.96); opacity: 0.82; }
  to { transform: scale(1.05); opacity: 1; }
}

.scene-nature .lw-cloud {
  position: absolute;
  height: 14%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(220, 240, 226, 0.26), transparent 70%);
  filter: blur(12px);
}

.scene-nature .lc1 {
  left: -10%;
  top: 30%;
  width: 68%;
  animation: cloud-drift 18s ease-in-out infinite alternate;
}

.scene-nature .lc2 {
  right: -14%;
  top: 44%;
  width: 74%;
  animation: cloud-drift 24s ease-in-out infinite alternate-reverse;
}

.lw-ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 52%;
}

.lw-ridge .r1 { fill: rgba(10, 38, 32, 0.9); }
.lw-ridge .r2 { fill: rgba(6, 26, 22, 0.94); }
.lw-ridge .r3 { fill: rgba(3, 14, 12, 0.98); }

.scene-nature .lw-mist {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 22%;
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(180, 220, 202, 0.2), transparent);
  filter: blur(10px);
  animation: mist-drift 16s ease-in-out infinite alternate;
}

.lw-rings {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 66%;
  aspect-ratio: 1;
  border: 1px solid rgba(232, 201, 138, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 60px rgba(232, 201, 138, 0.06);
}

.lw-rings::before,
.lw-rings::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px dashed rgba(232, 201, 138, 0.22);
  border-radius: 50%;
  animation: spin-slow 90s linear infinite;
}

.lw-rings::after {
  inset: 22%;
  border-style: solid;
  opacity: 0.5;
  animation-direction: reverse;
}

.scene-nature .lw-spores {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(190, 232, 208, 0.7) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(232, 201, 138, 0.6) 0 1px, transparent 1.6px);
  background-size: 150px 150px, 220px 220px;
  background-position: 30px 40px, 120px 90px;
  opacity: 0.4;
  animation: spores-rise 30s linear infinite;
}

.scene-nature .lw-glyph.g-main {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 34%;
  transform: translate(-50%, -50%);
  animation: lw-glyph-float 10s ease-in-out infinite alternate;
}

@keyframes lw-glyph-float {
  from { transform: translate(-50%, -50%) translateY(-6px) rotate(-1deg); }
  to { transform: translate(-50%, -50%) translateY(8px) rotate(1deg); }
}

/* 展窗 · 金色文字关系世界 */

.scene-glyph {
  background:
    radial-gradient(ellipse 72% 58% at 60% 30%, rgba(201, 164, 92, 0.24), transparent 66%),
    linear-gradient(180deg, #1A130A 0%, #241A0C 42%, #120D07 74%, #080604 100%);
}

.lw-amber-glow {
  position: absolute;
  left: 12%;
  top: 8%;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 201, 138, 0.24), transparent 64%);
  filter: blur(30px);
  animation: bloom-breathe 16s ease-in-out infinite alternate;
}

.lw-rings.lr-gold {
  top: 40%;
  width: 72%;
  border-color: rgba(232, 201, 138, 0.34);
}

.lw-net {
  position: absolute;
  inset: 6% 2%;
  width: 96%;
  height: 76%;
  overflow: visible;
}

.lw-net-lines path {
  fill: none;
  stroke: rgba(232, 201, 138, 0.42);
  stroke-width: 1;
  stroke-dasharray: 2 9;
  animation: net-flow 26s linear infinite;
}

.lw-net-nodes circle {
  fill: rgba(246, 224, 174, 0.86);
  stroke: rgba(201, 164, 92, 0.5);
  stroke-width: 1;
}

.scene-glyph .lw-glyph {
  position: absolute;
  animation: lw-glyph-float-abs 11s ease-in-out infinite alternate;
}

.scene-glyph .g1 {
  left: 10%;
  top: 22%;
  width: 30%;
  --rot: -5deg;
}

.scene-glyph .g2 {
  left: 39%;
  top: 36%;
  width: 34%;
  --rot: 3deg;
  animation-delay: -3s;
}

.scene-glyph .g3 {
  right: 9%;
  top: 18%;
  width: 27%;
  --rot: 6deg;
  animation-delay: -6s;
}

@keyframes lw-glyph-float-abs {
  from { transform: translateY(-6px) rotate(var(--rot, 0deg)); }
  to { transform: translateY(6px) rotate(calc(var(--rot, 0deg) * -1)); }
}

/* 展窗 · 深蓝昼夜宇宙 */

.scene-cosmos {
  background:
    radial-gradient(ellipse 70% 54% at 70% 16%, rgba(96, 130, 196, 0.24), transparent 66%),
    linear-gradient(180deg, #081226 0%, #0B1830 40%, #081020 70%, #04070E 100%);
}

.lw-cosmos-sky {
  position: absolute;
  inset: 0;
}

.lw-cosmos-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 250, 232, 0.9) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(204, 220, 246, 0.8) 0 1.1px, transparent 1.8px),
    radial-gradient(circle, rgba(232, 201, 138, 0.7) 0 0.9px, transparent 1.5px);
  background-size: 190px 180px, 260px 240px, 140px 150px;
  background-position: 30px 40px, 120px 90px, 70px 20px;
  opacity: 0.75;
  animation: star-field-drift 40s linear infinite alternate;
}

@keyframes star-field-drift {
  from { background-position: 30px 40px, 120px 90px, 70px 20px; }
  to { background-position: 60px 100px, 80px 150px, 110px 60px; }
}

.lw-cosmos-moon {
  position: absolute;
  right: 16%;
  top: 12%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 34%, rgba(252, 250, 242, 0.95), rgba(202, 214, 234, 0.66) 56%, rgba(150, 172, 210, 0.08) 72%, transparent 76%);
  box-shadow: 0 0 70px rgba(190, 210, 240, 0.32);
  animation: lw-moon-breathe 12s ease-in-out infinite alternate;
}

@keyframes lw-moon-breathe {
  from { transform: translateY(2px) scale(0.97); opacity: 0.86; }
  to { transform: translateY(-4px) scale(1.03); opacity: 1; }
}

.lw-cosmos-orbit {
  position: absolute;
  left: 50%;
  top: 52%;
  border: 1px solid rgba(232, 201, 138, 0.24);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
}

.lw-cosmos-orbit.og1 { width: 76%; height: 42%; }
.lw-cosmos-orbit.og2 { width: 56%; height: 30%; transform: translate(-50%, -50%) rotate(12deg); opacity: 0.7; }
.lw-cosmos-orbit.og3 {
  width: 92%;
  height: 54%;
  transform: translate(-50%, -50%) rotate(-30deg);
  opacity: 0.4;
  border-style: dashed;
}

.lw-cosmos-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background:
    radial-gradient(ellipse 70% 100% at 50% 100%, rgba(24, 44, 78, 0.8), transparent 74%),
    linear-gradient(180deg, transparent, rgba(3, 7, 14, 0.92));
}

.scene-cosmos .lw-glyph {
  position: absolute;
  animation: lw-glyph-float-abs 12s ease-in-out infinite alternate;
}

.scene-cosmos .g1 {
  left: 12%;
  top: 24%;
  width: 26%;
  --rot: -4deg;
}

.scene-cosmos .g2 {
  left: 39%;
  top: 40%;
  width: 30%;
  --rot: 2deg;
  animation-delay: -4s;
}

.scene-cosmos .g3 {
  right: 10%;
  top: 48%;
  width: 22%;
  --rot: 5deg;
  animation-delay: -8s;
}

.map-foot {
  border-top: 1px solid var(--hairline);
  margin-top: clamp(18px, 2.6vh, 32px);
  padding-top: clamp(14px, 2vh, 24px);
  flex: 0 0 auto;
}

.map-note {
  color: rgba(243, 235, 217, 0.68);
}

.progress-plaque strong {
  color: var(--gold-deep);
}

.brand-mark {
  color: #F0D3B8;
  border-color: rgba(195, 74, 53, 0.6);
  background: rgba(195, 74, 53, 0.12);
}

/* =========================================================
   V4 · 游戏页通用深色层
   ========================================================= */

.gamebar {
  border-bottom-color: rgba(232, 213, 170, 0.18);
}

.bar-seal {
  color: var(--gold-deep);
  border-color: rgba(232, 201, 138, 0.42);
  background: rgba(201, 164, 92, 0.08);
}

.gamebar-title strong {
  color: #F4EAD6;
}

.gamebar-progress {
  color: rgba(232, 213, 170, 0.72);
}

.timer {
  color: var(--gold-deep);
  border-right-color: rgba(232, 213, 170, 0.16);
}

.artwork {
  background:
    radial-gradient(circle at 30% 18%, rgba(201, 164, 92, 0.16), transparent 62%),
    linear-gradient(158deg, #151922 0%, #0C0E14 100%);
  border: 1px solid rgba(232, 213, 170, 0.22);
  box-shadow:
    inset 0 0 50px rgba(201, 164, 92, 0.07),
    0 26px 60px -40px rgba(0, 0, 0, 0.9);
}

.artwork::after {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(232, 213, 170, 0.12);
  pointer-events: none;
}

.placeholder {
  background: repeating-linear-gradient(-45deg, rgba(232, 213, 170, 0.07) 0 5px, transparent 5px 13px);
}

.ph-label {
  color: rgba(232, 213, 170, 0.62);
  border-color: rgba(232, 213, 170, 0.2);
}

.ph-id {
  color: rgba(232, 213, 170, 0.6);
}

/* =========================================================
   第一章 · 观物 · 自然场景
   ========================================================= */

.quiz-layout {
  grid-template-columns: minmax(300px, 39%) 1fr;
  gap: clamp(36px, 5vw, 100px);
}

.symbol-panel {
  max-width: min(560px, 52vh);
}

.panel-head {
  border-bottom-color: rgba(232, 213, 170, 0.2);
}

.panel-code {
  color: var(--gold-deep);
}

.panel-cap {
  color: rgba(243, 235, 217, 0.56);
}

.symbol-stage {
  position: relative;
  width: 100%;
  isolation: isolate;
}

.symbol-stage .symbol-art {
  position: relative;
  z-index: 3;
}

.symbol-stage.scene-on::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 120%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(232, 201, 138, 0.4);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  animation: scene-ring 2.8s var(--ease) 1;
}

/* 场景开启后让图卡底衬半透明，使自然意象从字形内部与四周同时浮现 */
.symbol-stage.scene-on .artwork {
  background:
    radial-gradient(circle at 50% 46%, rgba(10, 16, 20, 0.08), rgba(5, 8, 11, 0.26) 70%);
  border-color: rgba(232, 201, 138, 0.46);
  box-shadow:
    inset 0 0 90px rgba(201, 164, 92, 0.1),
    0 0 90px -18px rgba(201, 164, 92, 0.28);
}

.symbol-stage.scene-on .artwork::after {
  border-color: rgba(232, 201, 138, 0.2);
}

.l1-scene-inner {
  filter: saturate(1.18);
}

@keyframes scene-ring {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  30% { opacity: 0.8; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.25); }
}

.l1-scene {
  position: absolute;
  inset: -16% -14%;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s var(--ease);
  overflow: visible;
}

.l1-scene.is-active {
  opacity: 1;
}

.l1-scene-inner {
  position: absolute;
  inset: 0;
  overflow: visible;
}

/* 日光 */

.ls-sun-orb {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 82%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 244, 214, 0.36), rgba(232, 201, 138, 0.16) 36%, transparent 68%);
  animation: scene-sun 7s ease-in-out infinite alternate;
}

@keyframes scene-sun {
  from { opacity: 0.75; transform: translate(-50%, -50%) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

.ls-sun-halo {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 118%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(232, 201, 138, 0.28);
  box-shadow: 0 0 90px rgba(232, 201, 138, 0.14);
  animation: scene-halo 9s ease-in-out infinite alternate;
}

@keyframes scene-halo {
  from { opacity: 0.4; transform: translate(-50%, -50%) scale(0.92) rotate(0); }
  to { opacity: 0.9; transform: translate(-50%, -50%) scale(1.05) rotate(12deg); }
}

.ls-sun-rays {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 150%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 8deg,
    rgba(232, 201, 138, 0.2) 9deg 10deg,
    transparent 11deg 26deg,
    rgba(232, 201, 138, 0.14) 27deg 28deg,
    transparent 29deg 46deg,
    rgba(232, 201, 138, 0.18) 47deg 48deg,
    transparent 49deg 66deg,
    rgba(232, 201, 138, 0.12) 67deg 68deg,
    transparent 69deg 90deg
  );
  -webkit-mask-image: radial-gradient(circle, transparent 34%, #000 52%, transparent 76%);
  mask-image: radial-gradient(circle, transparent 34%, #000 52%, transparent 76%);
  animation: spin-slow 60s linear infinite;
}

.ls-mote,
.ls-star,
.ls-gust {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s, 3px);
  height: var(--s, 3px);
  border-radius: 50%;
  background: rgba(246, 226, 178, 0.9);
  box-shadow: 0 0 8px rgba(232, 201, 138, 0.6);
  animation: mote-drift 7s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}

@keyframes mote-drift {
  from { opacity: 0.12; transform: translateY(6px) scale(0.7); }
  to { opacity: 0.95; transform: translateY(-12px) scale(1.1); }
}

/* 月色 */

.scene-moon .ls-moon-halo {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 96%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 216, 244, 0.22), transparent 66%);
  filter: blur(10px);
  animation: scene-moon-halo 10s ease-in-out infinite alternate;
}

@keyframes scene-moon-halo {
  from { opacity: 0.5; transform: translate(-50%, -50%) scale(0.95); }
  to { opacity: 0.95; transform: translate(-50%, -50%) scale(1.06); }
}

.scene-moon .ls-moon {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 62%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 34%, rgba(252, 250, 242, 0.92), rgba(198, 214, 238, 0.54) 56%, rgba(140, 166, 206, 0.06) 74%, transparent 78%);
  box-shadow: 0 0 70px rgba(186, 208, 240, 0.3);
  animation: scene-moon-disc 9s ease-in-out infinite alternate;
}

@keyframes scene-moon-disc {
  from { transform: translate(-50%, -50%) scale(0.97); }
  to { transform: translate(-50%, -50%) scale(1.03); }
}

.scene-moon .ls-haze {
  position: absolute;
  left: -14%;
  right: -14%;
  bottom: 8%;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(150, 184, 224, 0.16), transparent);
  filter: blur(14px);
  animation: mist-drift 18s ease-in-out infinite alternate;
}

.scene-moon .ls-star {
  background: rgba(230, 240, 255, 0.9);
  box-shadow: 0 0 7px rgba(200, 222, 250, 0.7);
  animation-name: star-twinkle;
  animation-duration: 4s;
}

/* 星空 */

.scene-star .ls-deep {
  position: absolute;
  inset: -14%;
  background:
    radial-gradient(ellipse 60% 50% at 36% 34%, rgba(48, 76, 130, 0.3), transparent 66%),
    radial-gradient(ellipse 60% 50% at 72% 66%, rgba(30, 44, 82, 0.4), transparent 70%);
  border-radius: 50%;
}

.scene-star .ls-starfield {
  position: absolute;
  inset: 0;
  display: block;
}

.scene-star .ls-star {
  background: rgba(248, 244, 226, 0.95);
  box-shadow: 0 0 9px rgba(226, 236, 255, 0.8);
  animation-name: star-twinkle;
  animation-duration: 4.6s;
  animation-direction: alternate;
}

.scene-star .ls-trails i {
  position: absolute;
  display: block;
  height: 1px;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(226, 238, 255, 0.7), transparent);
  transform: rotate(-32deg);
  opacity: 0;
  animation: star-trail 6s ease-in-out infinite;
}

.scene-star .ls-trails i:nth-child(1) {
  left: 6%;
  top: 30%;
}

.scene-star .ls-trails i:nth-child(2) {
  right: 2%;
  top: 58%;
  animation-delay: 2s;
}

.scene-star .ls-trails i:nth-child(3) {
  left: 22%;
  bottom: 14%;
  animation-delay: 4s;
}

@keyframes star-trail {
  0% { opacity: 0; transform: rotate(-32deg) translateX(-18px); }
  30% { opacity: 0.9; }
  100% { opacity: 0; transform: rotate(-32deg) translateX(34px); }
}

/* 雨丝 */

.scene-rain .ls-rain-cloud {
  position: absolute;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(176, 198, 212, 0.26), transparent 70%);
  filter: blur(10px);
}

.scene-rain .ls-rain-cloud.c1 {
  left: 8%;
  top: 18%;
  width: 66%;
  animation: cloud-drift 14s ease-in-out infinite alternate;
}

.scene-rain .ls-rain-cloud.c2 {
  right: 2%;
  top: 28%;
  width: 58%;
  animation: cloud-drift 19s ease-in-out infinite alternate-reverse;
}

.scene-rain .ls-rain {
  position: absolute;
  inset: 26% -6% 0 -6%;
  display: block;
}

.scene-rain .ls-drop {
  position: absolute;
  left: var(--x);
  top: 0;
  width: 1px;
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(176, 208, 226, 0.8));
  animation: l1-rain-fall var(--t, 1s) linear infinite;
  animation-delay: var(--d, 0s);
}

@keyframes l1-rain-fall {
  0% { transform: translateY(-18%); opacity: 0; }
  20% { opacity: 0.8; }
  100% { transform: translateY(96%); opacity: 0; }
}

.scene-rain .ls-ripples i {
  position: absolute;
  bottom: 4%;
  width: 24%;
  height: 5%;
  border: 1px solid rgba(176, 208, 226, 0.4);
  border-radius: 50%;
  opacity: 0;
  animation: ripple 3.6s ease-out infinite;
}

.scene-rain .ls-ripples i:nth-child(1) { left: 6%; }
.scene-rain .ls-ripples i:nth-child(2) { left: 38%; animation-delay: 1.2s; }
.scene-rain .ls-ripples i:nth-child(3) { right: 6%; animation-delay: 2.4s; }

.scene-rain .ls-mist-rain {
  position: absolute;
  inset: 30% -10% 0;
  background: linear-gradient(180deg, transparent, rgba(150, 186, 208, 0.14), transparent);
  filter: blur(12px);
}

.scene-rain .l1-scene-inner::after {
  content: "";
  position: absolute;
  inset: -12%;
  background: repeating-linear-gradient(
    100deg,
    transparent 0 16px,
    rgba(190, 220, 238, 0.16) 17px,
    transparent 18px 38px
  );
  mix-blend-mode: screen;
  animation: rain-sheet 1.3s linear infinite;
}

@keyframes rain-sheet {
  from { transform: translate3d(0, -6%, 0); }
  to { transform: translate3d(-4%, 6%, 0); }
}

/* 云雾 */

.scene-cloud .ls-fog {
  position: absolute;
  left: -20%;
  width: 90%;
  height: 26%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 60% 100% at 50% 50%, rgba(224, 238, 230, 0.42), transparent 72%);
  filter: blur(16px);
  mix-blend-mode: screen;
  animation: fog-drift 20s ease-in-out infinite alternate;
}

.scene-cloud .ls-fog.f1 { top: 8%; animation-delay: -2s; }
.scene-cloud .ls-fog.f2 { top: 26%; left: 20%; width: 84%; animation-duration: 26s; }
.scene-cloud .ls-fog.f3 { top: 46%; left: -8%; width: 94%; animation-duration: 23s; animation-direction: alternate-reverse; }
.scene-cloud .ls-fog.f4 { top: 64%; left: 14%; width: 78%; animation-duration: 30s; }

@keyframes fog-drift {
  from { transform: translateX(-6%) scale(0.96); opacity: 0.5; }
  to { transform: translateX(8%) scale(1.06); opacity: 0.95; }
}

.scene-cloud .ls-mist-cloud {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 50% 40% at 50% 44%, rgba(220, 234, 226, 0.16), transparent 70%);
}

/* 风场 */

.scene-wind .ls-wind {
  position: absolute;
  inset: -14%;
  width: 128%;
  height: 128%;
  overflow: visible;
}

.scene-wind .ls-wind path {
  fill: none;
  stroke: rgba(198, 226, 214, 0.52);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 26 16;
  animation: wind-flow 6s linear infinite;
}

.scene-wind .ls-wind path:nth-child(2) { animation-duration: 7.4s; animation-delay: -1.4s; }
.scene-wind .ls-wind path:nth-child(3) { animation-duration: 8.8s; animation-delay: -2.8s; }
.scene-wind .ls-wind path:nth-child(4) { animation-duration: 10s; animation-delay: -4s; }

.scene-wind .ls-gust {
  background: rgba(198, 240, 224, 0.8);
  box-shadow: 0 0 10px rgba(160, 220, 200, 0.7);
  animation-name: gust-drift;
  animation-duration: 7s;
}

/* 形态观察实验 */

.form-lab {
  border-color: rgba(232, 213, 170, 0.18);
  border-top-color: rgba(232, 201, 138, 0.36);
  background: linear-gradient(180deg, rgba(24, 28, 36, 0.7), rgba(10, 13, 18, 0.4));
}

.lab-title {
  color: rgba(232, 213, 170, 0.72);
}

.lab-tag {
  color: var(--gold-deep);
}

.lab-tab {
  color: rgba(243, 235, 217, 0.62);
  border-color: rgba(232, 213, 170, 0.2);
  background: rgba(8, 10, 14, 0.4);
}

.lab-tab.is-active {
  color: #0A0C11;
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}

.lab-note {
  color: rgba(243, 235, 217, 0.46);
}

.nature-svg {
  color: var(--gold-deep);
}

.artwork .lab-nature {
  color: var(--gold-deep);
}

.artwork.mode-nature img {
  opacity: 0.14;
}

.artwork.mode-compare img {
  opacity: 0.42;
}

/* 答题选项 */

.quiz-kicker {
  color: var(--gold-deep);
}

.quiz-question {
  color: #F5EBD7;
}

.option {
  color: rgba(243, 235, 217, 0.92);
  background: linear-gradient(150deg, rgba(20, 24, 32, 0.82), rgba(10, 13, 18, 0.68));
  border-color: rgba(232, 213, 170, 0.18);
}

.option:hover:not(:disabled) {
  background: linear-gradient(150deg, rgba(38, 34, 24, 0.9), rgba(16, 16, 14, 0.7));
  border-color: rgba(232, 201, 138, 0.5);
  transform: translateX(4px);
  box-shadow: 0 12px 30px -24px rgba(201, 164, 92, 0.8);
}

.option-mark {
  color: rgba(232, 213, 170, 0.6);
  border-color: rgba(232, 213, 170, 0.22);
}

.option.is-correct {
  color: #EFF7F0;
  background: linear-gradient(150deg, rgba(32, 74, 62, 0.7), rgba(10, 26, 22, 0.6));
  border-color: rgba(127, 191, 164, 0.64);
  box-shadow: inset 2px 0 0 rgba(127, 191, 164, 0.9);
}

.option.is-correct .option-mark {
  color: #07110E;
  background: #7FBFA4;
  border-color: #7FBFA4;
}

.option.is-wrong {
  color: #F0B7A8;
  background: linear-gradient(150deg, rgba(88, 30, 22, 0.6), rgba(26, 12, 9, 0.5));
  border-color: rgba(195, 74, 53, 0.62);
  box-shadow: inset 2px 0 0 rgba(195, 74, 53, 0.9);
}

.option.is-wrong .option-mark {
  color: #170705;
  background: var(--cinnabar);
  border-color: var(--cinnabar);
}

.option.is-dim {
  opacity: 0.28;
}

.feedback {
  color: rgba(243, 235, 217, 0.7);
}

.feedback-title {
  color: #F3EAD6;
}

.feedback.good {
  border-left-color: #7FBFA4;
  background: linear-gradient(90deg, rgba(46, 139, 122, 0.16), transparent 70%);
}

.feedback.bad {
  border-left-color: var(--cinnabar);
  background: linear-gradient(90deg, rgba(195, 74, 53, 0.14), transparent 70%);
}

.feedback.good .feedback-title,
.feedback.bad .feedback-title {
  color: var(--gold-deep);
}

#l1-feedback .insight-card {
  border-top-color: rgba(232, 213, 170, 0.2);
}

.insight-seal {
  color: #F0CCB8;
  border-color: rgba(195, 74, 53, 0.54);
  background: rgba(195, 74, 53, 0.1);
}

.insight-kicker {
  color: rgba(232, 213, 170, 0.6);
}

.insight-card.is-right .insight-verdict {
  color: #9FD2BC;
  border-color: rgba(127, 191, 164, 0.5);
}

.insight-card.is-wrong .insight-verdict {
  color: #EFA593;
  border-color: rgba(195, 74, 53, 0.5);
}

.insight-answer {
  color: rgba(243, 235, 217, 0.68);
}

.insight-answer b {
  color: var(--gold-deep);
}

.insight-hint {
  color: rgba(243, 235, 217, 0.62);
}

.level-footer {
  border-top-color: rgba(232, 213, 170, 0.16);
}

.foot-note {
  color: rgba(243, 235, 217, 0.56);
}

/* =========================================================
   第二章 · 识字 · 金色关系网络
   ========================================================= */

.l2-atlas {
  position: absolute;
  inset: 4% 0;
  z-index: 0;
  width: auto;
  max-width: none;
  margin: 0;
  opacity: 0.34;
  pointer-events: none;
  transition: opacity 1.2s var(--ease);
}

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

.l2-atlas-rings circle,
.l2-atlas-rings path {
  fill: none;
  stroke: rgba(232, 201, 138, 0.36);
  stroke-width: 1;
}

.l2-atlas-rings circle:nth-child(2) {
  stroke-dasharray: 2 9;
  opacity: 0.6;
}

.l2-atlas-star circle {
  fill: rgba(246, 224, 174, 0.9);
}

.l2-atlas-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 224, 174, 0.9), rgba(201, 164, 92, 0.2) 46%, transparent 70%);
  box-shadow: 0 0 40px rgba(232, 201, 138, 0.4);
}

.l2-atlas.is-lit {
  opacity: 0.92;
}

.l2-atlas.is-lit .l2-atlas-rings {
  transform-origin: 50% 50%;
  animation: spin-slow 70s linear infinite;
}

.l2-atlas.is-lit .l2-atlas-core {
  animation: halo-breathe 3.6s ease-in-out infinite;
}

.match-layout {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  align-items: start;
  padding-bottom: clamp(12px, 1.4vh, 22px);
}

.match-item {
  min-height: clamp(86px, 8.8vh, 110px);
  background:
    linear-gradient(150deg, rgba(24, 22, 16, 0.88), rgba(12, 12, 12, 0.8));
  border: 1px solid rgba(232, 213, 170, 0.18);
  border-radius: 0;
  transition:
    border-color 0.35s var(--ease),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.match-item:hover:not(:disabled) {
  background: linear-gradient(150deg, rgba(48, 40, 26, 0.9), rgba(18, 16, 12, 0.8));
  border-color: rgba(232, 201, 138, 0.52);
  box-shadow: 0 14px 40px -30px rgba(232, 201, 138, 0.6);
}

.match-item.selected {
  border-color: rgba(232, 201, 138, 0.8);
  box-shadow:
    inset 2px 0 0 var(--gold-deep),
    0 0 40px -18px rgba(232, 201, 138, 0.6);
}

.match-item.matched {
  background: linear-gradient(150deg, rgba(28, 38, 32, 0.8), rgba(10, 16, 13, 0.72));
  border-color: rgba(127, 191, 164, 0.34);
}

.match-item.matched .mi-main strong {
  color: rgba(196, 226, 214, 0.9);
}

.match-divider {
  border-left-color: rgba(232, 213, 170, 0.16);
}

.match-divider span {
  color: var(--gold-deep);
  background: #0B0A08;
  border: 1px solid rgba(232, 201, 138, 0.4);
}

.symbol-item {
  padding-left: 12px;
  padding-right: 18px;
  gap: 16px;
}

.symbol-item .artwork {
  width: clamp(96px, 10.4vh, 136px);
  height: clamp(96px, 10.4vh, 136px);
  flex: none;
  background:
    radial-gradient(circle at 32% 22%, rgba(232, 201, 138, 0.2), transparent 60%),
    linear-gradient(158deg, #1A1710 0%, #0D0C0A 100%);
  border-color: rgba(232, 213, 170, 0.26);
}

.symbol-item .artwork img {
  padding: 3%;
  filter: invert(0.94) sepia(0.32) saturate(1.35) hue-rotate(-10deg) brightness(1.12)
    drop-shadow(0 10px 24px rgba(232, 201, 138, 0.22));
}

.symbol-item:hover .artwork img {
  transform: scale(1.03);
}

.symbol-item .mi-main strong {
  color: rgba(232, 213, 170, 0.6);
}

.symbol-item .mi-main small,
.meaning-item .mi-main small {
  color: rgba(243, 235, 217, 0.44);
}

.meaning-item .mi-main strong {
  font-size: clamp(24px, 1.6vw, 31px);
  color: #F5EAD4;
}

.matched-seal {
  color: rgba(196, 226, 214, 0.9);
  border-color: rgba(127, 191, 164, 0.4);
}

.match-item .matched-seal {
  opacity: 0;
}

.match-item.matched .matched-seal {
  opacity: 1;
}

.match-item.is-paired-now {
  animation: pair-flash 0.9s var(--ease);
}

.match-item.is-miss {
  animation: pair-miss 0.5s var(--ease);
}

@keyframes pair-flash {
  0%, 100% { box-shadow: 0 0 0 rgba(232, 201, 138, 0); }
  42% {
    box-shadow:
      0 0 0 2px rgba(232, 201, 138, 0.5),
      0 0 50px -8px rgba(232, 201, 138, 0.6);
  }
}

@keyframes pair-miss {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  70% { transform: translateX(3px); }
}

.l2-lines .l2-link {
  stroke: rgba(232, 201, 138, 0.82);
  stroke-width: 1.4;
}

.l2-lines .l2-link-halo {
  stroke: rgba(232, 201, 138, 0.14);
  stroke-width: 7;
}

.l2-lines .l2-node {
  fill: #0C0B09;
  stroke: var(--gold-deep);
  stroke-width: 1.2;
}

.l2-lines .l2-spark {
  fill: #FFF0CC;
  filter: drop-shadow(0 0 6px rgba(255, 239, 200, 0.95));
}

.l2-lines.is-complete .l2-link {
  stroke: rgba(246, 224, 174, 0.96);
  filter: drop-shadow(0 0 4px rgba(232, 201, 138, 0.8));
}

.l2-lines.is-complete .l2-node {
  fill: var(--gold-deep);
  stroke: #FFF0CC;
}

.match-layout.is-completing .match-item.matched {
  animation: match-lit 1.1s var(--ease);
}

@keyframes match-lit {
  0%, 100% { background: linear-gradient(150deg, rgba(28, 38, 32, 0.8), rgba(10, 16, 13, 0.72)); }
  45% {
    background: linear-gradient(150deg, rgba(92, 72, 32, 0.8), rgba(30, 24, 12, 0.8));
    border-color: rgba(246, 224, 174, 0.9);
    box-shadow: 0 0 50px -10px rgba(232, 201, 138, 0.7);
  }
}

.match-item.is-finale-lit {
  animation: match-lit 1.1s var(--ease);
}

#l2-feedback {
  color: rgba(243, 235, 217, 0.7);
}

.l2-gain {
  border-top-color: rgba(232, 213, 170, 0.2);
}

.l2-gain .l2-gain-art {
  border-color: rgba(232, 201, 138, 0.3);
}

/* =========================================================
   第三章 · 成章 · 昼夜宇宙
   ========================================================= */

.atmos-level3 {
  background:
    radial-gradient(ellipse 60% 46% at 18% 0%, rgba(201, 164, 92, 0.14), transparent 66%),
    radial-gradient(ellipse 56% 46% at 86% 18%, rgba(96, 130, 196, 0.18), transparent 68%),
    linear-gradient(178deg, #0A1322 0%, #0C1729 34%, #0A1220 58%, #060B14 82%, #04060B 100%);
}

.l3-sky-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.l3-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.5;
}

.l3-aurora.a1 {
  left: -12vw;
  top: -16vh;
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle, rgba(96, 150, 196, 0.24), transparent 66%);
  animation: bloom-breathe 24s ease-in-out infinite alternate;
}

.l3-aurora.a2 {
  right: -14vw;
  bottom: -20vh;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(201, 164, 92, 0.16), transparent 68%);
  animation: bloom-breathe 30s ease-in-out infinite alternate-reverse;
}

.l3-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 251, 236, 0.85) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(204, 222, 250, 0.7) 0 1.1px, transparent 1.8px),
    radial-gradient(circle, rgba(232, 201, 138, 0.6) 0 0.9px, transparent 1.5px);
  background-size: 210px 190px, 300px 270px, 160px 170px;
  background-position: 40px 60px, 160px 130px, 80px 20px;
  opacity: 0.55;
  animation: star-field-drift 44s linear infinite alternate;
}

.l3-trails {
  position: absolute;
  inset: 14% 0 0;
  width: 100%;
  height: 70%;
  overflow: visible;
  opacity: 0.5;
}

.l3-trail {
  fill: none;
  stroke: rgba(232, 201, 138, 0.3);
  stroke-width: 1;
  stroke-dasharray: 3 10;
  animation: net-flow 40s linear infinite;
}

.l3-trail.t2 {
  stroke: rgba(196, 216, 246, 0.22);
  animation-duration: 56s;
  animation-direction: reverse;
}

.l3-trail.t3 {
  stroke: rgba(232, 201, 138, 0.16);
  animation-duration: 70s;
}

.l3-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background:
    radial-gradient(ellipse 72% 100% at 50% 100%, rgba(20, 38, 68, 0.7), transparent 76%),
    linear-gradient(180deg, transparent 0%, rgba(6, 11, 20, 0.5) 42%, rgba(3, 6, 11, 0.92) 100%);
}

.l3-glow-sun {
  position: absolute;
  left: 6%;
  top: 8%;
  width: 30vw;
  height: 30vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 220, 164, 0.2), transparent 64%);
  filter: blur(40px);
  animation: bloom-breathe 22s ease-in-out infinite alternate;
}

.l3-glow-moon {
  position: absolute;
  right: 8%;
  top: 10%;
  width: 24vw;
  height: 24vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190, 212, 246, 0.18), transparent 66%);
  filter: blur(36px);
  animation: bloom-breathe 26s ease-in-out infinite alternate-reverse;
}

.narrative-wash {
  background:
    radial-gradient(ellipse 60% 50% at 50% 46%, rgba(201, 164, 92, 0.1), transparent 72%);
}

.target-banner {
  border-left-color: rgba(232, 201, 138, 0.5);
  background: linear-gradient(90deg, rgba(201, 164, 92, 0.08), transparent 74%);
}

.target-label {
  color: var(--gold-deep);
}

.rule-text {
  color: #F4EAD6;
}

.rule-sub {
  color: rgba(243, 235, 217, 0.6);
}

.rule-poem {
  color: #F6EBD7;
  text-shadow: 0 0 40px rgba(201, 164, 92, 0.16);
}

.slot {
  background: transparent;
}

.slot-label {
  color: rgba(232, 213, 170, 0.54);
}

.slot-card {
  width: clamp(164px, 13vw, 232px);
}

.slot-card .artwork {
  background:
    radial-gradient(circle at 34% 22%, rgba(201, 164, 92, 0.18), transparent 60%),
    linear-gradient(158deg, #131824 0%, #0A0D14 100%);
  border-color: rgba(232, 213, 170, 0.24);
  box-shadow: 0 30px 60px -38px rgba(0, 0, 0, 0.9);
}

.slot-card .artwork img {
  filter: invert(0.94) sepia(0.3) saturate(1.3) hue-rotate(-10deg) brightness(1.1)
    drop-shadow(0 12px 28px rgba(201, 164, 92, 0.2));
}

.slot-card::before {
  background: linear-gradient(90deg, transparent, rgba(232, 201, 138, 0.26), transparent);
}

.slot-seal {
  color: #F0E4CC;
  background: rgba(10, 14, 22, 0.9);
  border: 1px solid rgba(232, 213, 170, 0.28);
}

.sc-id {
  color: rgba(232, 213, 170, 0.6);
}

.sc-seal {
  color: #0A0C11;
  background: var(--gold-deep);
}

.slot-card.is-settled .artwork {
  border-color: rgba(246, 224, 174, 0.7);
  box-shadow:
    0 0 0 4px rgba(201, 164, 92, 0.12),
    0 0 60px -10px rgba(232, 201, 138, 0.5);
}

.arrow-btn {
  color: rgba(243, 235, 217, 0.6);
  background: rgba(10, 13, 19, 0.6);
  border-color: rgba(232, 213, 170, 0.2);
}

.arrow-btn:hover:not(:disabled) {
  color: #0A0C11;
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}

.order-hint {
  color: rgba(243, 235, 217, 0.42);
}

.order-layout.is-narrating .slot-card .artwork {
  animation: slot-lit 1.8s var(--ease) both;
  animation-delay: calc(var(--d, 0ms) + 300ms);
}

@keyframes slot-lit {
  0% { box-shadow: 0 30px 60px -38px rgba(0, 0, 0, 0.9); }
  40% {
    box-shadow:
      0 0 0 8px rgba(232, 201, 138, 0.14),
      0 0 80px -12px rgba(232, 201, 138, 0.8);
    border-color: rgba(246, 224, 174, 0.9);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(232, 201, 138, 0.4),
      0 30px 60px -38px rgba(0, 0, 0, 0.9);
  }
}

/* =========================================================
   第三章 · 电影感昼夜叙事
   ========================================================= */

.l3-cinema {
  background: #04060B;
}

.cinema-sky {
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 54% at 22% 18%, rgba(248, 214, 152, 0.5), transparent 64%),
    radial-gradient(ellipse 50% 44% at 78% 24%, rgba(150, 178, 224, 0.2), transparent 66%),
    linear-gradient(176deg, #2A1B10 0%, #6E3F22 20%, #7A5238 34%, #3C3B52 56%, #17233C 76%, #05080F 100%);
}

.cinema-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  animation: cine-aurora 4.6s var(--ease) forwards;
}

.cinema-aurora.a1 {
  left: -16%;
  top: 4%;
  width: 60vmax;
  height: 34vmax;
  background: radial-gradient(circle, rgba(248, 214, 152, 0.28), transparent 66%);
}

.cinema-aurora.a2 {
  right: -18%;
  bottom: 8%;
  width: 54vmax;
  height: 40vmax;
  background: radial-gradient(circle, rgba(96, 140, 196, 0.24), transparent 68%);
  animation-delay: 0.3s;
}

@keyframes cine-aurora {
  0% { opacity: 0; transform: scale(0.9); }
  40% { opacity: 0.8; }
  100% { opacity: 0.45; transform: scale(1.06); }
}

.cinema-sun {
  z-index: 3;
  left: 18%;
  top: 18%;
  background: radial-gradient(circle, rgba(255, 246, 218, 0.98), rgba(246, 198, 124, 0.6) 44%, transparent 70%);
  filter: blur(1px);
}

.cinema-rays {
  position: absolute;
  left: 18%;
  top: 18%;
  z-index: 2;
  width: 70vmax;
  height: 70vmax;
  margin-left: -35vmax;
  margin-top: -35vmax;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 9deg,
    rgba(255, 236, 196, 0.16) 10deg 11deg,
    transparent 12deg 30deg,
    rgba(255, 236, 196, 0.1) 31deg 32deg,
    transparent 33deg 54deg,
    rgba(255, 236, 196, 0.14) 55deg 56deg,
    transparent 57deg 78deg,
    rgba(255, 236, 196, 0.08) 79deg 80deg,
    transparent 81deg 108deg
  );
  -webkit-mask-image: radial-gradient(circle, transparent 18%, #000 34%, transparent 68%);
  mask-image: radial-gradient(circle, transparent 18%, #000 34%, transparent 68%);
  animation: cine-rays 4.6s linear forwards;
}

@keyframes cine-rays {
  0% { opacity: 0; transform: rotate(0deg) scale(0.8); }
  18% { opacity: 0.85; }
  60% { opacity: 0.4; }
  100% { opacity: 0; transform: rotate(46deg) scale(1.12); }
}

.cinema-moon {
  z-index: 3;
  background:
    radial-gradient(circle at 36% 34%, rgba(252, 250, 240, 0.96), rgba(206, 216, 232, 0.68) 58%, rgba(178, 192, 214, 0.08) 72%, transparent 76%);
  box-shadow: 0 0 90px rgba(196, 210, 232, 0.4);
}

.cinema-stars {
  z-index: 2;
}

.cinema-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 34%;
  background:
    radial-gradient(ellipse 74% 100% at 50% 100%, rgba(20, 36, 62, 0.86), transparent 78%),
    linear-gradient(180deg, transparent 0%, rgba(6, 11, 20, 0.46) 46%, rgba(3, 5, 10, 0.96) 100%);
  opacity: 0;
  animation: cine-horizon 4.6s var(--ease) forwards;
}

@keyframes cine-horizon {
  0% { opacity: 0; }
  40% { opacity: 0.7; }
  100% { opacity: 1; }
}

.cinema-trails {
  position: absolute;
  inset: 10% 0 0;
  z-index: 4;
  width: 100%;
  height: 76%;
  overflow: visible;
  opacity: 0;
  animation: cine-trails 4.6s var(--ease) 0.2s forwards;
}

@keyframes cine-trails {
  0% { opacity: 0; }
  50% { opacity: 0.5; }
  100% { opacity: 0.8; }
}

.cine-trail {
  fill: none;
  stroke: rgba(255, 236, 196, 0.3);
  stroke-width: 1;
  stroke-dasharray: 3 12;
  animation: net-flow 36s linear infinite;
}

.cine-trail.ctr-2 {
  stroke: rgba(196, 216, 246, 0.2);
  animation-duration: 50s;
  animation-direction: reverse;
}

.cine-trail.ctr-3 {
  stroke: rgba(255, 236, 196, 0.14);
  animation-duration: 64s;
}

.cinema-inkwash {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -6%;
  z-index: 5;
  height: 34%;
  background:
    radial-gradient(ellipse 60% 100% at 50% 100%, rgba(2, 4, 8, 0.9), transparent 76%);
  filter: blur(6px);
}

.cinema-orbits {
  z-index: 6;
}

.cinema-glyphs {
  z-index: 7;
}

.cine-glyph img {
  filter: invert(0.95) sepia(0.3) saturate(1.3) hue-rotate(-8deg) brightness(1.12);
}

.cine-glyph figcaption {
  color: rgba(246, 232, 206, 0.76);
}

.cinema-lines {
  z-index: 8;
}

.cine-line {
  color: #FBF2DE;
  text-shadow: 0 2px 40px rgba(4, 6, 11, 0.8), 0 0 30px rgba(246, 214, 158, 0.18);
}

.cinema-note {
  z-index: 8;
  color: rgba(246, 232, 206, 0.5);
}

.cinema-skip {
  z-index: 9;
}

/* =========================================================
   成果档案 · 万象之印
   ========================================================= */

.screen-result {
  justify-content: flex-start;
  padding-top: clamp(18px, 3vh, 40px);
}

.result-poster {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(34px, 4.4vw, 68px) clamp(22px, 3.4vw, 58px) clamp(30px, 3.4vw, 50px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 46% at 78% 0%, rgba(201, 164, 92, 0.16), transparent 66%),
    radial-gradient(ellipse 54% 44% at 6% 100%, rgba(195, 74, 53, 0.1), transparent 70%),
    linear-gradient(168deg, #0B0D13 0%, #10141D 46%, #080A0E 100%);
  border: 1px solid rgba(232, 213, 170, 0.32);
  box-shadow:
    0 50px 120px -60px rgba(0, 0, 0, 0.95),
    inset 0 0 120px rgba(201, 164, 92, 0.04);
}

.poster-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(232, 213, 170, 0.18);
  pointer-events: none;
  z-index: 1;
}

.poster-atmos {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.poster-orbit {
  position: absolute;
  left: 50%;
  top: 54%;
  border: 1px solid rgba(232, 201, 138, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.poster-orbit.po1 {
  width: 84%;
  aspect-ratio: 1 / 0.6;
  transform: translate(-50%, -50%) rotate(-16deg);
}

.poster-orbit.po2 {
  width: 62%;
  aspect-ratio: 1 / 0.72;
  transform: translate(-50%, -50%) rotate(12deg);
  border-style: dashed;
  opacity: 0.7;
}

.poster-orbit.po3 {
  width: 106%;
  aspect-ratio: 1 / 0.5;
  transform: translate(-50%, -50%) rotate(-34deg);
  opacity: 0.4;
}

.poster-axis {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(232, 201, 138, 0.2), transparent);
}

.poster-axis.pax {
  left: 8%;
  right: 8%;
  top: 54%;
  height: 1px;
}

.poster-axis.pay {
  top: 6%;
  bottom: 26%;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(232, 201, 138, 0.18), transparent);
}

.poster-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
}

.poster-glow.pg1 {
  right: -10%;
  top: -12%;
  width: 50%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(201, 164, 92, 0.2), transparent 66%);
}

.poster-glow.pg2 {
  left: -12%;
  bottom: -16%;
  width: 54%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(195, 74, 53, 0.12), transparent 68%);
}

.poster-trails {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 48%;
  opacity: 0.6;
}

.poster-trails path {
  fill: none;
  stroke: rgba(232, 201, 138, 0.18);
  stroke-width: 1;
  stroke-dasharray: 3 12;
}

.poster-grain {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.poster-head {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-bottom: clamp(16px, 2vh, 28px);
}

.poster-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(232, 201, 138, 0.82);
  text-transform: uppercase;
}

.result-title {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(52px, 6.6vw, 104px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.12em;
  background: linear-gradient(180deg, #FFF9EA 0%, #F0D8A4 52%, #A9854B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 34px rgba(201, 164, 92, 0.24));
}

.result-subtitle {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(14px, 1.2vw, 18px);
  letter-spacing: 0.2em;
  color: rgba(243, 235, 217, 0.78);
}

.poster-en {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: rgba(232, 201, 138, 0.56);
}

.poster-seal {
  position: absolute;
  right: clamp(26px, 3vw, 46px);
  top: clamp(26px, 3vw, 46px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(46px, 4.4vw, 62px);
  height: clamp(46px, 4.4vw, 62px);
  border: 2px solid rgba(195, 74, 53, 0.78);
  background: rgba(195, 74, 53, 0.1);
  box-shadow: 0 0 34px rgba(195, 74, 53, 0.22);
}

.poster-seal span {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  color: #F2C8B6;
}

.poster-glyph-stage {
  position: relative;
  z-index: 2;
}

.result-symbols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(10px, 1.6vw, 26px) clamp(10px, 1.8vw, 30px);
  padding: clamp(8px, 1.6vh, 20px) 0 0;
}

.result-symbol {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 18px 10px 14px;
  border-top: 1px solid rgba(232, 201, 138, 0.22);
  border-left: 0 !important;
  opacity: 0;
  animation: symbol-rise 0.7s var(--ease) both;
  animation-delay: calc(160ms + var(--i, 0) * 90ms);
}

.result-symbol:nth-child(n) {
  translate: 0 0 !important;
}

.result-symbol::before {
  display: none;
}

.result-symbol img {
  width: clamp(88px, 8.6vw, 148px);
  max-width: none;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: invert(0.94) sepia(0.3) saturate(1.3) hue-rotate(-10deg) brightness(1.12)
    drop-shadow(0 14px 30px rgba(201, 164, 92, 0.22));
  transition: scale 0.5s var(--ease), filter 0.5s var(--ease);
}

.result-symbol:hover img {
  scale: 1.06;
  filter: invert(0.98) sepia(0.36) saturate(1.35) hue-rotate(-8deg) brightness(1.2)
    drop-shadow(0 18px 40px rgba(246, 224, 174, 0.34));
}

.rs-index {
  position: absolute;
  top: 6px;
  right: 10px;
  left: auto;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(232, 201, 138, 0.62);
}

.rs-label {
  font-family: var(--serif);
  font-size: clamp(16px, 1.3vw, 21px);
  letter-spacing: 0.24em;
  color: #F3E9D4;
}

.rs-en {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: rgba(232, 201, 138, 0.5);
}

.result-symbol .rs-fallback {
  width: 96px;
  height: 96px;
  color: rgba(232, 201, 138, 0.4);
  border: 1px solid rgba(232, 201, 138, 0.24);
}

.archive-caption {
  position: static;
  margin: 12px 0 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-align: center;
  color: rgba(232, 201, 138, 0.46);
  background: none;
}

.poster-meta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(18px, 2.4vw, 38px);
  align-items: center;
  margin-top: clamp(20px, 3vh, 34px);
  padding: clamp(18px, 2.4vh, 28px) 0;
  border-top: 1px solid rgba(232, 201, 138, 0.24);
  border-bottom: 1px solid rgba(232, 201, 138, 0.24);
}

.result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat b {
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #F4E9D2;
  line-height: 1.1;
}

.stat-score b {
  color: var(--gold-deep);
}

.stat span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(232, 201, 138, 0.6);
}

.result-score {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-bonus {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(243, 235, 217, 0.62);
}

.result-bonus b {
  color: var(--gold-deep);
}

.score-rows {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.score-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: rgba(243, 235, 217, 0.6);
  border: 1px solid rgba(232, 201, 138, 0.24);
  background: rgba(8, 10, 14, 0.36);
}

.score-chip b {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--gold-deep);
}

.result-honor {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  background: linear-gradient(120deg, rgba(195, 74, 53, 0.12), rgba(201, 164, 92, 0.1));
  border: 1px solid rgba(232, 201, 138, 0.3);
}

.honor-label {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  color: rgba(232, 201, 138, 0.6);
}

.result-honor b {
  font-family: var(--serif);
  font-size: clamp(17px, 1.4vw, 22px);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #F4E7CB;
}

.result-honor small {
  font-size: 9px;
  line-height: 1.6;
  color: rgba(243, 235, 217, 0.42);
}

.poster-coda {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: clamp(18px, 2.6vh, 30px);
}

.result-conclusion {
  margin: 0 auto;
  max-width: 44em;
  font-size: 12.5px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: rgba(243, 235, 217, 0.7);
}

.result-coda {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 25px);
  letter-spacing: 0.24em;
  color: var(--gold-deep);
}

.poster-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: clamp(20px, 3vh, 34px);
  padding-top: clamp(14px, 2vh, 22px);
  border-top: 1px solid rgba(232, 201, 138, 0.16);
}

.poster-honor-line {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(232, 201, 138, 0.62);
}

.poster-source {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: rgba(243, 235, 217, 0.46);
}

.result-credit {
  margin: 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: rgba(243, 235, 217, 0.5);
  text-align: right;
}

.result-credit b {
  color: var(--gold-deep);
}

.result-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  flex: 0 0 auto;
  max-width: 1180px;
  margin: clamp(18px, 2.6vh, 30px) auto 0;
}

.result-actions .btn {
  padding: 11px 22px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
}

.result-export-note {
  max-width: 1180px;
  margin: 12px auto 6px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-align: center;
  color: rgba(243, 235, 217, 0.5);
}

/* =========================================================
   弹窗 · 深色展签
   ========================================================= */

.about-backdrop,
.sources-backdrop,
.modal-backdrop {
  background: rgba(3, 5, 9, 0.72);
  backdrop-filter: blur(6px);
}

.about-panel,
.sources-panel,
.modal {
  background:
    radial-gradient(ellipse 70% 60% at 84% 4%, rgba(201, 164, 92, 0.14), transparent 68%),
    linear-gradient(162deg, #12151D 0%, #0B0E14 68%, #080A0F 100%);
  border: 1px solid rgba(232, 213, 170, 0.36);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.7);
  color: var(--ink);
}

.about-panel::before {
  border-color: rgba(232, 201, 138, 0.16);
}

.about-head,
.about-note {
  border-color: rgba(232, 201, 138, 0.24);
}

.about-en {
  color: var(--gold-deep);
}

.about-sub {
  color: #F2E8D4;
}

.about-slogan {
  color: #EAB29E;
  border-left-color: rgba(195, 74, 53, 0.6);
}

.about-desc {
  color: rgba(243, 235, 217, 0.68);
}

.about-author {
  border-left-color: rgba(232, 213, 170, 0.18);
}

.about-role {
  color: rgba(232, 201, 138, 0.62);
}

.about-name {
  color: #F6EAD2;
}

.contact-row {
  border-top-color: rgba(232, 213, 170, 0.14);
}

.contact-label {
  color: rgba(232, 201, 138, 0.56);
}

.contact-value {
  color: rgba(243, 235, 217, 0.86);
}

a.contact-value {
  border-bottom-color: rgba(232, 201, 138, 0.34);
}

a.contact-value:hover,
.contact-value.is-copyable:hover,
.contact-value.is-copyable:focus-visible {
  color: var(--gold-deep);
}

.copy-btn {
  color: rgba(243, 235, 217, 0.66);
  border-color: rgba(232, 213, 170, 0.24);
}

.copy-btn:hover {
  color: var(--gold-deep);
  border-color: rgba(232, 201, 138, 0.5);
  background: rgba(201, 164, 92, 0.1);
}

.copy-btn.is-done {
  color: #9FD2BC;
  border-color: rgba(127, 191, 164, 0.5);
}

.about-note {
  color: rgba(243, 235, 217, 0.48);
}

.about-credit-note {
  color: rgba(243, 235, 217, 0.44);
}

.sources-head {
  border-bottom-color: rgba(232, 201, 138, 0.24);
}

.sources-intro,
.sources-foot {
  color: rgba(243, 235, 217, 0.58);
}

.sources-intro a {
  color: var(--gold-deep);
}

.source-item {
  border-bottom-color: rgba(232, 213, 170, 0.14);
}

.source-meaning {
  color: #F2E8D4;
}

.source-file {
  color: var(--gold-deep);
}

.source-license {
  color: rgba(159, 210, 188, 0.86);
}

.sources-close {
  color: rgba(243, 235, 217, 0.7);
}

.sources-close:hover {
  color: var(--gold-deep);
}

.modal-seal {
  color: #F2C8B6;
  border-color: rgba(195, 74, 53, 0.6);
  background: rgba(195, 74, 53, 0.1);
}

.modal h3 {
  color: #F6EAD2;
}

.modal p {
  color: rgba(243, 235, 217, 0.68);
}

.modal-extra {
  color: rgba(232, 201, 138, 0.72);
}

.toast {
  color: #F8EDD6;
  background: rgba(16, 14, 10, 0.94);
  border: 1px solid rgba(232, 201, 138, 0.42);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   V4 · 响应式
   ========================================================= */

@media (max-width: 1280px) {
  .hero {
    grid-template-columns: minmax(340px, 0.92fr) minmax(380px, 1.08fr);
    gap: 30px;
  }

  .hero-title {
    font-size: clamp(80px, 9.6vw, 150px);
  }

  .level-window {
    min-height: clamp(340px, 50vh, 520px);
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 4px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-art {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    aspect-ratio: 10 / 8.4;
  }

  .hero-vert {
    display: none;
  }

  .map-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    flex: 0 0 auto;
  }

  .level-window {
    height: auto;
    min-height: clamp(300px, 38vh, 420px);
  }

  .lw-body {
    max-width: 620px;
  }

  .lw-name {
    font-size: clamp(34px, 4.6vw, 48px);
  }

  .poster-meta {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .result-honor {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .screen-start {
    background:
      radial-gradient(ellipse 64% 50% at 70% 12%, rgba(201, 164, 92, 0.16), transparent 68%),
      radial-gradient(ellipse 60% 50% at 4% 96%, rgba(46, 139, 122, 0.12), transparent 70%),
      linear-gradient(160deg, #080A0F, #07090D);
  }

  .hero-title {
    font-size: clamp(62px, 15vw, 112px);
  }

  .hero-art {
    max-width: 100%;
  }

  .hero-seal-mini {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .quiz-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .symbol-panel {
    max-width: 100%;
    justify-self: stretch;
  }

  .symbol-stage {
    max-width: 440px;
    margin: 0 auto;
  }

  .match-layout {
    max-width: 100%;
  }

  .symbol-item .artwork {
    width: 86px;
    height: 86px;
  }

  .meaning-item .mi-main strong {
    font-size: 22px;
  }

  .slot-row {
    gap: 8px;
  }

  .slot-card {
    width: min(27vw, 150px);
  }

  .slot-arrows {
    gap: 4px;
  }

  .arrow-btn {
    width: 32px;
    height: 26px;
  }

  .result-symbols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 14px;
  }

  .poster-meta {
    grid-template-columns: 1fr;
  }

  .result-honor {
    grid-column: auto;
  }

  .poster-foot {
    justify-content: center;
    text-align: center;
  }

  .result-credit {
    text-align: center;
  }
}

@media (max-width: 620px) {
  .hero-title {
    font-size: clamp(54px, 17vw, 88px);
  }

  .hero-title-en {
    letter-spacing: 0.22em;
  }

  .hero-art {
    aspect-ratio: 10 / 9.4;
  }

  .hero-readout {
    right: 0;
    bottom: 0;
    min-width: 132px;
  }

  .level-window {
    min-height: 300px;
  }

  .lw-top {
    padding: 12px;
  }

  .lw-index {
    font-size: 26px;
  }

  .lw-state {
    font-size: 8.5px;
    padding: 4px 7px;
  }

  .lw-body {
    padding: 14px;
  }

  .lw-name {
    font-size: 32px;
  }

  .lw-desc {
    font-size: 11.5px;
  }

  .lw-enter {
    opacity: 1;
    transform: none;
  }

  .result-poster {
    padding: 30px 16px 26px;
  }

  .poster-seal {
    right: 14px;
    top: 14px;
    width: 38px;
    height: 38px;
  }

  .poster-seal span {
    font-size: 19px;
  }

  .result-title {
    margin-top: 22px;
    font-size: clamp(40px, 12.5vw, 58px);
  }

  .result-symbols {
    gap: 8px;
  }

  .result-symbol {
    padding: 14px 4px 10px;
  }

  .result-symbol img {
    width: 82px;
  }

  .poster-meta {
    padding: 16px 0;
  }

  .result-stats {
    gap: 10px 12px;
  }

  .stat b {
    font-size: 24px;
  }

  .poster-coda .result-coda {
    font-size: 17px;
    letter-spacing: 0.16em;
  }

  .result-actions {
    gap: 8px;
  }

  .result-actions .btn {
    padding: 10px 14px;
    font-size: 11.5px;
  }

  .about-panel,
  .sources-panel,
  .modal {
    padding: 22px 18px;
  }

  .contact-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }
}

@media (max-height: 960px) and (min-width: 901px) {
  .hero-title {
    font-size: clamp(74px, 8.4vw, 132px);
    margin-top: 12px;
  }

  .hero-art {
    aspect-ratio: 10 / 8.4;
    max-width: 640px;
    justify-self: end;
  }

  .map-intro {
    margin-top: 16px;
  }

  .map-intro h2 {
    margin-top: 8px;
    font-size: 28px;
  }

  .map-intro p:last-child {
    margin-top: 8px;
    font-size: 13px;
  }

  .map-grid {
    margin-top: 14px;
  }

  .level-window {
    min-height: clamp(310px, 42vh, 420px);
  }

  .lw-name {
    font-size: 38px;
  }

  .lw-desc {
    font-size: 11.5px;
    line-height: 1.7;
  }

  .map-foot {
    margin-top: 12px;
    padding-top: 12px;
  }

  .map-note {
    font-size: 10.5px;
    line-height: 1.7;
  }

  .quiz-layout {
    gap: 28px;
  }

  .form-lab {
    margin-top: 8px;
    padding: 9px 11px 9px;
    gap: 6px;
  }

  .lab-tabs {
    margin-top: 4px;
  }

  .lab-note {
    font-size: 8.5px;
    line-height: 1.6;
  }

  .level-footer {
    margin-top: 14px;
  }

  .symbol-item .artwork {
    width: 84px;
    height: 84px;
  }

  .match-item {
    min-height: 72px;
  }

  .result-title {
    font-size: clamp(44px, 4.6vw, 72px);
  }

  .result-symbol img {
    width: 88px;
  }

  .result-symbol {
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .poster-meta {
    margin-top: 16px;
    padding: 14px 0;
  }

  .poster-coda {
    margin-top: 14px;
  }

  .result-actions {
    margin-top: 14px;
  }
}

@media (max-height: 1120px) and (min-width: 901px) {
  .result-poster {
    padding: 28px 46px 20px;
  }

  .poster-head {
    padding-bottom: 12px;
  }

  .result-title {
    font-size: clamp(50px, 4.9vw, 82px);
  }

  .result-subtitle {
    margin-top: 8px;
  }

  .poster-en {
    margin-top: 6px;
  }

  .result-symbols {
    gap: 8px 24px;
  }

  .result-symbol img {
    width: clamp(76px, 6.7vw, 110px);
  }

  .result-symbol {
    padding: 8px 8px 6px;
  }

  .poster-meta {
    margin-top: 12px;
    padding: 12px 0;
  }

  .poster-coda {
    margin-top: 12px;
  }

  .result-coda {
    margin-top: 8px;
  }

  .poster-foot {
    margin-top: 12px;
    padding-top: 8px;
  }

  .result-actions {
    margin-top: 12px;
  }

  .result-export-note {
    margin-top: 6px;
  }
}

@media (max-height: 960px) and (min-width: 901px) {
  .result-poster {
    padding: 22px 40px 18px;
  }

  .poster-head {
    padding-bottom: 10px;
  }

  .poster-kicker {
    font-size: 8.5px;
  }

  .result-title {
    margin-top: 8px;
    font-size: clamp(42px, 4.6vw, 62px);
  }

  .result-subtitle {
    margin-top: 6px;
    font-size: 12px;
  }

  .poster-en {
    margin-top: 4px;
    font-size: 8px;
  }

  .result-symbols {
    gap: 2px 16px;
  }

  .result-symbol {
    gap: 4px;
    padding: 8px 6px 5px;
  }

  .result-symbol img {
    width: 74px;
  }

  .rs-label {
    font-size: 14px;
  }

  .rs-en {
    font-size: 7.5px;
  }

  .rs-index {
    top: 3px;
    font-size: 8px;
  }

  .archive-caption {
    margin-top: 6px;
    font-size: 7.5px;
  }

  .poster-meta {
    margin-top: 8px;
    padding: 8px 0;
    gap: 12px;
  }

  .result-stats {
    gap: 8px 12px;
  }

  .stat b {
    font-size: 22px;
  }

  .stat span {
    font-size: 8px;
  }

  .result-bonus {
    font-size: 9px;
  }

  .score-chip {
    padding: 3px 8px;
    font-size: 8.5px;
  }

  .score-chip b {
    font-size: 13px;
  }

  .result-honor {
    padding: 8px 10px;
  }

  .result-honor b {
    font-size: 15px;
  }

  .result-honor small {
    display: none;
  }

  .poster-coda {
    margin-top: 8px;
  }

  .result-conclusion {
    font-size: 10.5px;
    line-height: 1.7;
  }

  .result-coda {
    margin-top: 4px;
    font-size: 15px;
  }

  .poster-foot {
    margin-top: 8px;
    padding-top: 6px;
  }

  .result-actions {
    margin-top: 10px;
  }

  .result-export-note {
    margin-top: 6px;
    font-size: 9px;
  }
}

/* V4-END */
