/* 基础色彩：深色雨夜背景，保留电子书阅读的安静感。 */
:root {
  --bg: #0b1013;
  --bg-soft: #11191f;
  --panel: #162129;
  --panel-2: #1c2a32;
  --text: #edf4ef;
  --muted: #a9bbb5;
  --line: rgba(207, 235, 226, 0.16);
  --glow: #b8fff4;
  --gold: #d6bd7b;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(153, 255, 240, 0.12), transparent 34rem),
    radial-gradient(circle at 16% 22%, rgba(214, 189, 123, 0.08), transparent 28rem),
    linear-gradient(180deg, #0a0f13 0%, #10171b 48%, #090d10 100%);
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.ambient-field {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 12%, rgba(214,189,123,.055), transparent 18rem),
    radial-gradient(circle at 82% 24%, rgba(184,255,244,.06), transparent 22rem);
}
.ambient-field::before,
.ambient-field::after {
  content: "";
  position: absolute;
  inset: -20%;
  opacity: .38;
  background-image:
    radial-gradient(circle, rgba(214,189,123,.32) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(184,255,244,.24) 0 1px, transparent 1.8px);
  background-position: 0 0, 32px 48px;
  background-size: 112px 112px, 148px 148px;
  animation: dustFloat 46s linear infinite;
}
.ambient-field::after {
  opacity: .16;
  background-image: linear-gradient(112deg, transparent 0 48%, rgba(207,235,226,.16) 50%, transparent 52% 100%);
  background-size: 96px 220px;
  animation: rainVeil 34s linear infinite;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -9;
  pointer-events: none;
}
body::before {
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(214,189,123,.035) 12.2%, transparent 12.4% 58%, rgba(184,255,244,.028) 58.2%, transparent 58.5%),
    linear-gradient(178deg, transparent 0 18%, rgba(207,235,226,.025) 18.2%, transparent 18.45% 71%, rgba(214,189,123,.022) 71.15%, transparent 71.4%),
    radial-gradient(ellipse at 76% 64%, transparent 0 20rem, rgba(214,189,123,.05) 20.1rem 20.22rem, transparent 20.35rem);
  opacity: .52;
}
body::after {
  background-image:
    linear-gradient(0deg, rgba(255,255,255,.018) 1px, transparent 1px),
    radial-gradient(circle at 24% 38%, rgba(214,189,123,.08) 0 1px, transparent 1.5px);
  background-size: 100% 7px, 190px 170px;
  opacity: .18;
  mix-blend-mode: screen;
}

/* 顶部导航：适合静态网页和手机折叠菜单。 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 15, 18, 0.86);
  backdrop-filter: blur(16px);
}
.brand { font-weight: 700; letter-spacing: 0; color: #f7efe0; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 16px; font-size: 14px; color: var(--muted); }
.site-nav a { padding: 4px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a.active { color: var(--text); border-color: var(--gold); }
.menu-toggle { display: none; border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,.04); border-radius: 8px; padding: 8px 10px; }

main { min-height: 76vh; }
.section, .page-title, .hero { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.section { padding: 72px 0; }
.section { position: relative; }
.section::before {
  content: "ARCHIVE / SHL-01";
  position: absolute;
  right: 0;
  top: 34px;
  color: rgba(214,189,123,.12);
  font-size: .7rem;
  letter-spacing: .14em;
  pointer-events: none;
}
.page-title { padding: 76px 0 24px; }
.page-title h1, .hero h1 { margin: 0; font-size: clamp(2.3rem, 5vw, 5rem); line-height: 1.12; letter-spacing: 0; }
h2 { margin: 0 0 14px; font-size: clamp(1.55rem, 2.5vw, 2.45rem); line-height: 1.25; letter-spacing: 0; }
h3 { margin: 0 0 8px; font-size: 1.12rem; letter-spacing: 0; }
p { margin: 0 0 16px; }
.eyebrow { color: var(--gold); font-size: .84rem; letter-spacing: 0; margin-bottom: 8px; }
.muted, .subtitle, .author { color: var(--muted); }

/* 按钮保持克制，不做商业广告感。 */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid rgba(184,255,244,.42);
  border-radius: 8px;
  background: rgba(184,255,244,.12);
  color: #effffb;
  font-size: 15px;
}
.button.secondary { border-color: rgba(214,189,123,.5); background: rgba(214,189,123,.12); }
.button.ghost { border-color: var(--line); background: rgba(255,255,255,.03); color: var(--muted); }
.button.small { min-height: 36px; padding: 7px 13px; font-size: 14px; }

/* 首页首屏：书封与文字一起建立阅读入口。 */
.book-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 420px);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  padding: 72px 0 54px;
}
.book-hero::before {
  content: "";
  position: absolute;
  inset: 18px -6vw 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(214,189,123,.12), transparent 26%, transparent 74%, rgba(184,255,244,.08)),
    conic-gradient(from 32deg at 78% 42%, transparent 0 19deg, rgba(214,189,123,.09) 20deg 21deg, transparent 22deg 170deg, rgba(184,255,244,.07) 171deg 172deg, transparent 173deg 360deg),
    radial-gradient(circle at 68% 35%, rgba(184,255,244,.13), transparent 22rem),
    radial-gradient(circle at 18% 55%, rgba(214,189,123,.08), transparent 24rem);
  border-radius: 8px;
  opacity: .82;
}
.book-hero::after {
  content: "";
  position: absolute;
  inset: 0 -6vw;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(184,255,244,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214,189,123,.026) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  opacity: .5;
  animation: archiveGridDrift 38s linear infinite;
}
.hero-atmosphere { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.drift-light {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(184,255,244,.72);
  box-shadow: 0 0 24px rgba(184,255,244,.55);
  animation: slowDrift 16s ease-in-out infinite alternate;
}
.light-one { top: 28%; left: 7%; }
.light-two { right: 32%; bottom: 24%; width: 5px; height: 5px; animation-duration: 21s; opacity: .75; }
.time-ring {
  position: absolute;
  right: 3%;
  top: 10%;
  width: clamp(180px, 28vw, 380px);
  aspect-ratio: 1;
  border: 1px solid rgba(214,189,123,.1);
  border-radius: 999px;
  box-shadow: inset 0 0 42px rgba(184,255,244,.045), 0 0 54px rgba(214,189,123,.055);
  animation: ringBreath 12s ease-in-out infinite;
}
.time-ring::before,
.time-ring::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(184,255,244,.07);
  border-radius: inherit;
}
.time-ring::after { inset: 31%; border-color: rgba(214,189,123,.08); }
.archive-mark {
  position: absolute;
  right: 2%;
  top: 12%;
  color: rgba(214,189,123,.16);
  font-size: clamp(3.6rem, 9vw, 8.5rem);
  line-height: 1;
  letter-spacing: .08em;
}
.hero-whisper {
  position: absolute;
  right: 4%;
  bottom: 8%;
  color: rgba(223,234,229,.18);
  font-size: .88rem;
  letter-spacing: .08em;
}
.hero-whisper::before {
  content: "UNSEALED / VOL-01";
  display: block;
  margin-bottom: 5px;
  color: rgba(214,189,123,.2);
  font-size: .68rem;
  letter-spacing: .16em;
}
.hero-copy { min-width: 0; }
.intro { max-width: 680px; font-size: 1.08rem; color: #dfeae5; }
.fragment-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  color: rgba(223,234,229,.68);
  font-size: .78rem;
}
.fragment-strip span {
  border: 1px solid rgba(207,235,226,.14);
  border-radius: 8px;
  padding: 5px 9px;
  background: rgba(8, 13, 16, .36);
  box-shadow: inset 0 0 18px rgba(184,255,244,.025);
}
.hero-cover, .book-display, .single-cover, .image-page figure, .gallery-card, .character-card, .chapter-card, .mood-grid article, .world-list article, .note-band, .progress-grid article, .timeline article {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: var(--shadow);
}
.hero-cover {
  position: relative;
  padding: 14px;
  border-radius: 8px;
  transform: rotate(1deg);
  background:
    linear-gradient(180deg, rgba(214,189,123,.12), rgba(255,255,255,.025)),
    rgba(10,15,18,.56);
  overflow: hidden;
}
.hero-cover::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 28%, rgba(184,255,244,.2), transparent 68%);
  filter: blur(8px);
  opacity: .75;
  animation: coverBreath 8s ease-in-out infinite;
}
.hero-cover::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 5px;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 42%, rgba(184,255,244,.08) 48%, transparent 56% 100%);
  opacity: .32;
  animation: archiveSheen 13s ease-in-out infinite;
}
.hero-cover img {
  filter: contrast(1.03) saturate(.94);
}
.hero-world-visual {
  min-height: clamp(340px, 38vw, 530px);
  padding: 0;
}
.hero-world-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
  filter: brightness(.68) contrast(1.11) saturate(.82);
}
.hero-world-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 68% 22%, rgba(184,255,244,.18), transparent 18rem),
    linear-gradient(90deg, rgba(5,9,12,.68), rgba(5,9,12,.12) 42%, rgba(5,9,12,.55)),
    linear-gradient(180deg, rgba(5,9,12,.3), rgba(5,9,12,.08) 42%, rgba(5,9,12,.62));
  box-shadow: inset 0 0 68px rgba(0,0,0,.48);
  opacity: .78;
  animation: none;
}
.hero-world-visual::before {
  inset: -20px;
  opacity: .58;
}
.cover-label {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 1;
  color: rgba(247,239,224,.72);
  font-size: .72rem;
  letter-spacing: .08em;
  writing-mode: vertical-rl;
}
.hero-cover img, .book-display img, .single-cover img { border-radius: 5px; box-shadow: 0 18px 42px rgba(0,0,0,.35); }
.two-column { display: grid; grid-template-columns: minmax(220px, 390px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.book-display { padding: 12px; border-radius: 8px; }
.book-display, .gallery-preview, .character-card {
  position: relative;
}
.book-display::after,
.gallery-preview::after,
.character-card::after {
  content: "公开展示版";
  position: absolute;
  right: 14px;
  top: 14px;
  color: rgba(214,189,123,.24);
  font-size: .68rem;
  letter-spacing: .1em;
}
.meta-list { display: grid; gap: 10px; margin: 22px 0; }
.meta-list div { display: grid; grid-template-columns: 70px 1fr; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.project-ledger div { grid-template-columns: 88px 1fr; }
dt { color: var(--muted); } dd { margin: 0; }

.chapter-grid, .chapter-list, .mood-grid, .gallery-grid, .character-grid, .progress-grid { display: grid; gap: 18px; }
.chapter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chapter-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chapter-card, .mood-grid article, .gallery-card, .character-card, .world-list article, .progress-grid article, .timeline article { border-radius: 8px; padding: 22px; }
.chapter-card {
  position: relative;
  background: linear-gradient(180deg, rgba(214,189,123,.075), rgba(255,255,255,.02));
  overflow: hidden;
}
.chapter-card::after {
  content: attr(data-archive);
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: rgba(214,189,123,.16);
  font-size: .7rem;
  letter-spacing: .12em;
}
.chapter-card::before {
  content: "未归档片段：梦里有人喊他回头";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 42px;
  color: rgba(223,234,229,.12);
  font-size: .72rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .7s ease, transform .7s ease;
}
.chapter-card:hover::before { opacity: 1; transform: translateY(0); }
.chapter-card h3::before {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  margin: 4px 0 10px;
  background: linear-gradient(90deg, rgba(214,189,123,.55), transparent);
}
.chapter-card:nth-child(2), .chapter-card:nth-child(4) { transform: translateY(12px); border-color: rgba(214,189,123,.22); }
.chapter-card:nth-child(3) { border-color: rgba(184,255,244,.22); }
.chapter-index { color: var(--gold); font-size: .85rem; letter-spacing: .1em; }
.chapter-card h3 { min-height: 3.1em; }
.chapter-card p { min-height: 5.4em; color: #cfddd7; }
.mood-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.progress-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.progress-grid article { position: relative; overflow: hidden; background: rgba(15,22,27,.62); }
.progress-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), rgba(184,255,244,.35));
}
.progress-grid article::after {
  content: attr(data-status);
  position: absolute;
  right: 16px;
  top: 16px;
  color: rgba(214,189,123,.3);
  font-size: .72rem;
  letter-spacing: .08em;
}
.progress-grid article h3::after {
  content: " / 待归档";
  color: rgba(223,234,229,.24);
  font-size: .74rem;
  font-weight: 400;
}
.progress-grid span, .timeline span { display: inline-flex; margin-bottom: 10px; color: var(--gold); font-size: .84rem; }
.progress-grid p, .timeline p { color: #cfddd7; }
.world-fragments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
  color: rgba(223,234,229,.58);
  font-size: .9rem;
}
.world-fragments p {
  margin: 0;
  border-top: 1px solid rgba(214,189,123,.18);
  padding-top: 10px;
  transition: color .8s ease, border-color .8s ease;
}
.world-fragments::after {
  content: "可见权限：公开展示版 / 备注：部分内容暂缓开放";
  position: absolute;
  left: 0;
  bottom: -2px;
  color: rgba(223,234,229,.2);
  font-size: .72rem;
  letter-spacing: .08em;
}
.world-fragments p:hover { color: rgba(247,239,224,.78); border-color: rgba(184,255,244,.28); }
.timeline { display: grid; gap: 14px; position: relative; }
.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  background: linear-gradient(90deg, rgba(214,189,123,.07), rgba(255,255,255,.024));
}
.timeline article::after {
  content: "记录节点";
  position: absolute;
  right: 18px;
  top: 18px;
  color: rgba(223,234,229,.18);
  font-size: .68rem;
  letter-spacing: .12em;
}
.timeline article::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 22px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(214,189,123,.5);
  animation: pulseDot 6s ease-in-out infinite;
}
.timeline span { padding-left: 18px; }
.timeline article p { margin-bottom: 0; }
.gallery-preview img, .gallery-card img, .character-card img { width: 100%; border-radius: 8px; object-fit: cover; background: #0c1216; }
.gallery-preview img { aspect-ratio: 16 / 10; }
.archive-scene-preview { overflow: hidden; }
.archive-scene-preview img {
  aspect-ratio: 16 / 9;
  filter: brightness(.84) contrast(1.15) saturate(.82);
}
.archive-scene-preview::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 1;
  border-radius: 8px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(184,255,244,.045), transparent 32%),
    radial-gradient(circle at 72% 64%, rgba(214,189,123,.09), transparent 18rem),
    linear-gradient(90deg, rgba(4,8,11,.16), transparent 44%, rgba(4,8,11,.14));
  box-shadow: inset 0 0 30px rgba(0,0,0,.32);
}
.gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-card img { aspect-ratio: 4 / 5; object-fit: contain; padding: 10px; border: 1px solid var(--line); }
.concept-card {
  position: relative;
  overflow: hidden;
}
.concept-card::after {
  content: "公开展示版";
  position: absolute;
  right: 18px;
  top: 18px;
  color: rgba(214,189,123,.24);
  font-size: .68rem;
  letter-spacing: .12em;
}
.concept-card img {
  object-fit: cover;
  padding: 0;
  filter: brightness(.87) contrast(1.14) saturate(.82);
}
.hero-concept { grid-column: span 2; }
.hero-concept img {
  aspect-ratio: 16 / 9;
  filter: brightness(.86) contrast(1.14) saturate(.82);
}
.scene-card img {
  aspect-ratio: 16 / 9;
  filter: brightness(.9) contrast(1.14) saturate(.82);
}
.anomaly-card img {
  width: min(78%, 260px);
  margin: 0 auto 18px;
  aspect-ratio: 1;
  opacity: .66;
  object-fit: cover;
  filter: brightness(.82) contrast(1.1) saturate(.72);
}
.character-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.character-card img { aspect-ratio: 4 / 5; margin-bottom: 18px; }
.archive-person img {
  object-fit: cover;
  object-position: center;
  filter: brightness(.88) contrast(1.12) saturate(.82);
  border: 1px solid rgba(214,189,123,.18);
}
.archive-person::before {
  content: "";
  position: absolute;
  inset: 22px 22px auto;
  height: min(58%, 360px);
  border-radius: 8px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(184,255,244,.045), transparent 26%),
    linear-gradient(90deg, rgba(0,0,0,.14), transparent 36%, rgba(0,0,0,.18));
  z-index: 1;
}
.archive-anomaly {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.anomaly-visual {
  width: min(260px, 72%);
  align-self: center;
  margin: 12px auto 28px;
  padding: 18px;
  border: 1px solid rgba(184,255,244,.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 46%, rgba(184,255,244,.1), transparent 62%),
    rgba(7,11,14,.48);
  box-shadow: inset 0 0 34px rgba(0,0,0,.42), 0 18px 44px rgba(0,0,0,.25);
}
.anomaly-visual img {
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
  object-fit: cover;
  opacity: .62;
  filter: brightness(.82) contrast(1.08) saturate(.7);
  transition: opacity .8s ease, filter .8s ease, transform .8s ease;
}
.archive-anomaly:hover .anomaly-visual img {
  opacity: .92;
  filter: brightness(.98) contrast(1.12) saturate(.86);
  transform: scale(1.025);
}
.archive-anomaly::after { content: "异常记录"; }
.tags { color: var(--gold); }
.note-band { border-radius: 8px; padding: 30px; }
.project-return {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(184,255,244,.12), transparent 28rem),
    linear-gradient(180deg, rgba(214,189,123,.06), rgba(255,255,255,.025));
}
.project-return::before {
  content: "SHILUNHUI / UNSEALED";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  color: rgba(214,189,123,.09);
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  line-height: 1;
  white-space: nowrap;
}
.project-return::after {
  content: "本档案暂未封存";
  position: absolute;
  right: 24px;
  top: 20px;
  color: rgba(214,189,123,.18);
  font-size: .72rem;
  letter-spacing: .12em;
}
.project-return > * { position: relative; z-index: 1; }
.project-return p { max-width: 660px; margin-left: auto; margin-right: auto; }
.project-return .button { margin-top: 6px; }

.reveal-enabled .reveal-block {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.reveal-enabled .reveal-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.center-page { width: min(1080px, calc(100% - 36px)); margin: 0 auto; padding: 64px 0; }
.cover-stage { display: grid; grid-template-columns: minmax(220px, 420px) minmax(0, 1fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
.single-cover, .image-page figure { padding: 12px; border-radius: 8px; }
.image-page { width: min(760px, 100%); margin: 0 auto; text-align: center; }
.image-page figure { margin: 0 0 24px; }
.image-page img { max-height: 78vh; margin: 0 auto; border-radius: 5px; }
.copyright-text { color: #f1e6c6; }

/* 阅读页：控制正文宽度、行距和暗色背景，优先保护长文舒适度。 */
.reader-shell { width: min(880px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 72px; }
.progress-wrap { position: sticky; top: 61px; z-index: 18; height: 3px; background: rgba(255,255,255,.08); }
.reading-progress { width: 0%; height: 100%; background: linear-gradient(90deg, var(--gold), var(--glow)); }
.reader-nav, .reader-bottom { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; color: var(--muted); font-size: 14px; padding: 18px 0; }
.reader-nav a { border-bottom: 1px solid var(--line); }
.reading-percent { color: var(--gold); }
.reader-article { padding: clamp(26px, 5vw, 56px); border: 1px solid var(--line); border-radius: 8px; background: rgba(15, 22, 27, .72); box-shadow: var(--shadow); }
.reader-article h1 { margin: 0 0 34px; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.25; letter-spacing: 0; }
.chapter-body p { margin: 0 0 1.05em; color: #f2f0e6; font-size: clamp(1.04rem, 1.8vw, 1.18rem); line-height: 2.05; text-align: justify; }
.chapter-body .lead { color: #fff6d8; font-size: clamp(1.15rem, 2vw, 1.32rem); }
.chapter-illustration { margin: 0 0 28px; }
.chapter-illustration img { border-radius: 8px; border: 1px solid var(--line); }
.world-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.site-footer { border-top: 1px solid var(--line); padding: 32px 18px 42px; text-align: center; color: var(--muted); font-size: 14px; }
.site-footer p { margin-bottom: 6px; }

@keyframes slowDrift {
  from { transform: translate3d(0, 0, 0); opacity: .35; }
  to { transform: translate3d(18px, -22px, 0); opacity: .85; }
}

@keyframes dustFloat {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(48px, -72px, 0); }
}

@keyframes rainVeil {
  from { transform: translate3d(-24px, -80px, 0); }
  to { transform: translate3d(28px, 80px, 0); }
}

@keyframes archiveGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 88px 44px, 44px 88px; }
}

@keyframes ringBreath {
  0%, 100% { transform: scale(.985) rotate(0deg); opacity: .36; }
  50% { transform: scale(1.025) rotate(7deg); opacity: .62; }
}

@keyframes coverBreath {
  0%, 100% { opacity: .48; filter: blur(10px); }
  50% { opacity: .86; filter: blur(7px); }
}

@keyframes archiveSheen {
  0%, 70%, 100% { transform: translateX(-34%); opacity: 0; }
  82% { transform: translateX(24%); opacity: .28; }
}

@keyframes pulseDot {
  0%, 100% { transform: scale(.92); opacity: .62; }
  50% { transform: scale(1.16); opacity: 1; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .site-header { align-items: flex-start; }
  .site-nav { display: none; position: absolute; top: 58px; left: 18px; right: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: rgba(10,15,18,.96); }
  .site-nav.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-hero, .two-column, .cover-stage, .world-list { grid-template-columns: 1fr; }
  .hero-cover { transform: none; max-width: 360px; margin: 0 auto; }
  .book-hero::before { inset: 6px -18px 0; }
  .book-hero::after, .archive-mark { opacity: .34; }
  .ambient-field::before { opacity: .22; background-size: 150px 150px, 190px 190px; }
  .ambient-field::after, .time-ring, .hero-whisper { display: none; }
  body::before { opacity: .25; }
  body::after { opacity: .1; }
  .section::before { display: none; }
  .cover-label { display: none; }
  .hero-world-visual {
    max-width: 360px;
    min-height: 520px;
  }
  .hero-world-visual img {
    min-height: 520px;
    object-position: center;
    filter: brightness(.76) contrast(1.14) saturate(.82);
  }
  .hero-world-visual::after {
    background:
      radial-gradient(circle at 56% 18%, rgba(184,255,244,.13), transparent 15rem),
      linear-gradient(180deg, rgba(5,9,12,.32), rgba(5,9,12,.08) 42%, rgba(5,9,12,.56)),
      linear-gradient(90deg, rgba(5,9,12,.3), transparent 48%, rgba(5,9,12,.28));
  }
  .fragment-strip { gap: 7px; }
  .fragment-strip span { flex: 1 1 100%; }
  .fragment-strip span:nth-child(2) { display: none; }
  .chapter-grid, .chapter-list, .mood-grid, .gallery-grid, .character-grid, .progress-grid { grid-template-columns: 1fr; }
  .hero-concept { grid-column: auto; }
  .chapter-card h3, .chapter-card p { min-height: 0; }
  .chapter-card:nth-child(2), .chapter-card:nth-child(4) { transform: none; }
  .world-fragments { grid-template-columns: 1fr; padding-top: 0; padding-bottom: 22px; }
  .world-fragments p:nth-child(n+4) { display: none; }
  .world-fragments::after { display: none; }
  .timeline article { grid-template-columns: 1fr; gap: 4px; }
  .timeline article::after { top: 18px; right: 16px; }
  .section { padding: 48px 0; }
  .book-hero { gap: 22px; padding-top: 34px; padding-bottom: 40px; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .actions .button { width: 100%; }
  .project-ledger div, .meta-list div { grid-template-columns: 1fr; gap: 2px; }
  .center-page { padding-top: 38px; }
  .reader-shell { width: min(100% - 22px, 880px); }
  .reader-article { padding: 22px 18px; }
  .progress-wrap { top: 58px; }
  .archive-person::before { inset: 22px 22px auto; height: 48%; }
  .archive-scene-preview img { filter: brightness(.96) contrast(1.16) saturate(.84); }
  .archive-scene-preview::before {
    background:
      linear-gradient(180deg, rgba(184,255,244,.035), transparent 32%),
      radial-gradient(circle at 72% 64%, rgba(214,189,123,.07), transparent 18rem),
      linear-gradient(90deg, rgba(4,8,11,.08), transparent 44%, rgba(4,8,11,.08));
    box-shadow: inset 0 0 20px rgba(0,0,0,.22);
  }
  .concept-card img { filter: brightness(.98) contrast(1.16) saturate(.84); }
  .hero-concept img { filter: brightness(.96) contrast(1.16) saturate(.84); }
  .scene-card img { filter: brightness(1.02) contrast(1.16) saturate(.84); }
  .archive-person img { filter: brightness(.96) contrast(1.14) saturate(.84); }
  .archive-person::before {
    background:
      linear-gradient(180deg, rgba(184,255,244,.035), transparent 26%),
      linear-gradient(90deg, rgba(0,0,0,.08), transparent 36%, rgba(0,0,0,.1));
  }
  .anomaly-card img { opacity: .7; filter: brightness(.86) contrast(1.1) saturate(.72); }
  .anomaly-visual img { opacity: .66; filter: brightness(.86) contrast(1.08) saturate(.7); }
  .anomaly-visual { width: min(220px, 76%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ambient-field::before,
  .ambient-field::after,
  .book-hero::after,
  .drift-light,
  .time-ring,
  .hero-cover::before,
  .hero-cover::after,
  .timeline article::before {
    animation: none;
  }
  .reveal-enabled .reveal-block { opacity: 1; transform: none; transition: none; }
}
