/* 深色神话主题（首页、游戏页、图鉴各页）：只在 body.theme-myth 的页面加载，12 Axes 和法务页不加载。11-06 从 style.css 拆出来。 */
/* ==========================================================================
   深色神话主题（11-06 张哲选「黑神话 + Hades II」）：body.theme-myth
   用在首页、山海页、图鉴各页；12 Axes 和法务页保持浅色。
   两种主题色：夜蓝（取自原画底色）+ 金（取自原画云纹）。不用紫色。
   ========================================================================== */
.theme-myth {
  --ink: #efe6cf;          /* 标题、强调文字：暖象牙色 */
  --accent: #d4a24c;       /* 金 */
  --gold: #d4a24c;
  --gold-hi: #e9c47a;
  --paper: #0b1322;        /* 页面底：夜蓝 */
  --card: #121e33;
  --band: #0f1a2d;
  --text: #d9d4c7;
  --muted: #9aa4b4;
  --line: #24334d;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  background: var(--paper);
  color: var(--text);
}
.theme-myth a { color: var(--gold-hi); }
.theme-myth h1, .theme-myth h2, .theme-myth h3 { font-family: var(--serif); color: var(--ink); letter-spacing: .01em; }
.theme-myth .site-nav { background: rgba(8, 14, 26, .92); border-bottom-color: var(--line); }
.theme-myth .site-nav a { color: var(--muted); }
.theme-myth .site-nav .nav-home { color: var(--gold); font-family: var(--serif); letter-spacing: .06em; }
.theme-myth .site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
@media (max-width: 640px) { .theme-myth .site-nav::after { background: linear-gradient(90deg, rgba(8, 14, 26, 0), rgba(8, 14, 26, .96)); } }
.theme-myth .site-foot { border-top-color: var(--line); background: #08101d; }
.theme-myth .site-foot a { color: var(--muted); }
.theme-myth details { background: var(--card); border-color: var(--line); }
.theme-myth .card { background: var(--card); border-color: var(--line); color: var(--text); }
.theme-myth .card:hover { border-color: var(--gold); }
.theme-myth .badge { background: transparent; border-color: var(--line); color: var(--muted); }

/* 按钮：金底深字 / 金线 */
.theme-myth .btn, .btn-gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); border-color: var(--gold); color: #1a1206; }
.theme-myth .btn:hover { filter: brightness(1.08); }
.theme-myth .btn-line { background: rgba(8, 14, 26, .35); color: var(--gold-hi); border: 1px solid var(--gold); }
.theme-myth .btn-play { color: #1a1206; }
.btn-lg { min-height: 52px; padding: 0 1.6em; font-size: 1.1rem; }

/* 首屏大图 */
.hero { position: relative; overflow: hidden; min-height: min(78vh, 640px); display: flex; align-items: flex-end; background: var(--paper); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(11, 19, 34, .92) 0%, rgba(11, 19, 34, .72) 38%, rgba(11, 19, 34, .15) 75%),
  linear-gradient(0deg, var(--paper) 0%, rgba(11, 19, 34, 0) 35%); }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 72rem; margin: 0 auto; padding: 56px 24px 48px; }
.hero h1 { margin: 0; font-size: .95rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.hero .tagline { margin: .5em 0 0; color: var(--text); font-size: 1rem; max-width: 30rem; }
.hero-game { margin: .6em 0 0; font-family: var(--serif); font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 1.02; color: var(--ink); text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }
.hero-pitch { margin: .6em 0 0; max-width: 32rem; font-size: 1.1rem; color: var(--text); text-wrap: pretty; }
.hero .tagline { text-wrap: pretty; }
.hero-cta { margin: 1.4em 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) {
  .hero { min-height: 82vh; }
  .hero-bg { object-position: 50% 25%; }
  .hero::after { background: linear-gradient(0deg, var(--paper) 6%, rgba(11, 19, 34, .82) 48%, rgba(11, 19, 34, .1) 85%); }
  .hero-inner { padding: 40px 16px 32px; }
}
/* 图鉴总页的横幅：矮一些，H1 用正常大小 */
.hero-page { min-height: 340px; }
.hero-page h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); letter-spacing: .01em; text-transform: none; color: var(--ink); margin-top: .3em; }
.hero-page .tagline { max-width: 38rem; font-size: 1.05rem; }
.hero-page .crumbs, .hero-page .crumbs a { color: var(--muted); }

/* 首页分区 */
.home .band { padding: 64px 0; }
.home .band-alt { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 46rem; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } .home .band { padding: 44px 0; } }
.eyebrow { margin: 0 0 .4em; font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-right: 10px; vertical-align: middle; background: var(--gold); }
.home h2 { margin: 0 0 .5em; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.lead { font-size: 1.1rem; color: var(--text); max-width: 40rem; }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.split-art img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.features { list-style: none; padding: 0; margin: 1.2em 0 1.6em; }
.features li { padding: 10px 0 10px 22px; border-top: 1px solid var(--line); position: relative; }
.features li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.features strong { color: var(--ink); }
.home .hub-about h2, .home .hub-other h2 { font-size: 1.5rem; }
.home .hub-about { margin-top: 0; }

/* 神兽原画墙 / 卡片 */
.beast-wall { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .beast-wall { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.beast-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.beast-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.beast-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.beast-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.beast-card-body { display: block; padding: 10px 12px 12px; }
.beast-name { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }
.beast-name .zh { font-family: inherit; font-size: .9rem; color: var(--gold); margin-left: 4px; }
.beast-line { display: block; margin-top: 4px; font-size: .9rem; color: var(--muted); }
.beast-index{list-style:none;padding:0;margin:8px 0 20px}@media(min-width:860px){.beast-index{columns:2;column-gap:32px}}.beast-index li{break-inside:avoid;padding:8px 0;border-bottom:1px solid rgba(212,162,76,.18)}.beast-index li a{font-family:var(--serif);font-size:1.05rem}.beast-index .zh{margin-left:.4em;color:var(--muted);font-size:.95rem}.beast-index .beast-line{margin-top:2px}.bestiary h4{margin:22px 0 4px;font-size:.85rem;letter-spacing:.18em;text-transform:uppercase;color:var(--gold)}

/* 图鉴文档页在深色主题下 */
.theme-myth .bestiary { max-width: 46rem; }
.theme-myth .source { background: var(--card); border-color: var(--line); border-left-color: var(--gold); }
.theme-myth .source blockquote p[lang] { color: var(--gold-hi); font-size: 1.2rem; letter-spacing: .04em; }
.theme-myth .beast-art img { max-width: 320px; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.theme-myth .beast-facts dd { color: var(--ink); }
.theme-myth .beast-facts dd [lang] { color: var(--gold-hi); }
.theme-myth .bestiary h2 { font-size: 1.45rem; padding-top: .2em; }
.theme-myth .crumbs a { color: var(--muted); }

/* ==========================================================================
   动效版（11-06）：字体、首屏「活的画」、滚动出现、神兽展台、卡片倾斜。
   （试过跨页淡入 @view-transition：跳到不加载本文件的页面（游戏本体、12 Axes）时控制台报 InvalidStateError，收益小，去掉了）
   脚本：js/motion.js（全部动效）、js/hero-gl.js（首屏 WebGL）。都是手写，不用第三方库。
   隐藏「待出现」内容只在 html.motion 下生效：没有 JS 时内容照常显示。
   ========================================================================== */
@font-face { font-family: "Cinzel"; src: url("/fonts/cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

.theme-myth {
  --display: "Cinzel", "Iowan Old Style", Palatino, Georgia, serif;
  --brush: "Kaiti SC", "STKaiti", "KaiTi", "BiauKai", "Songti SC", serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
.theme-myth h1, .theme-myth h2 { font-family: var(--display); font-weight: 600; letter-spacing: .02em; }
.theme-myth .site-nav .nav-home { font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; }
.theme-myth .eyebrow { font-family: var(--display); font-weight: 600; }
::selection { background: rgba(212, 162, 76, .35); }

/* 胶片颗粒：整页一层很淡的噪点，压掉「纯色网页」感 */
.theme-myth::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- 导航：首页首屏上透明，滚动后变实色；音乐开关 ---------- */
.page-home .site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: transparent; border-bottom-color: transparent; transition: background .35s, border-color .35s, backdrop-filter .35s; }
.page-home .site-nav.is-solid { background: rgba(8, 14, 26, .82); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.page-home .site-nav a { color: rgba(239, 230, 207, .82); text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.page-home .site-nav .nav-home { color: var(--gold-hi); }
.theme-myth .nav-inner { align-items: center; }
.nav-sound { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(212, 162, 76, .5); background: rgba(8, 14, 26, .35); color: var(--gold-hi); cursor: pointer; }
.nav-sound:hover { border-color: var(--gold); }
.nav-sound:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav-sound .w1, .nav-sound .w2 { opacity: .35; }
.nav-sound[aria-pressed="true"] .w1, .nav-sound[aria-pressed="true"] .w2 { opacity: 1; }
.nav-sound .eq { display: none; align-items: flex-end; gap: 2px; height: 12px; }
.nav-sound .eq i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; }
.nav-sound[aria-pressed="true"] .eq { display: inline-flex; }
.nav-sound[aria-pressed="true"] .eq i { animation: eq .9s ease-in-out infinite alternate; }
.nav-sound[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.3s; }
.nav-sound[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { from { height: 3px; } to { height: 12px; } }

/* ---------- 首屏 ---------- */
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media .hero-bg { transform: scale(1.06); }
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.hero-media.gl-on .hero-gl { opacity: 1; }
/* 首屏视频：播起来后 1.6 秒淡入盖住原画 / WebGL（js/motion.js 2b） */
.hero-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; pointer-events: none; }
.hero-vid.is-on { opacity: 1; }
.hero-media.vid-on .hero-gl { visibility: hidden; }
.hero-home::after { transition: opacity 1.6s ease; }
.hero-home.has-vid::after { opacity: .6; }
.hero-zh { transition: color 1.6s ease, text-shadow 1.6s ease; }
.has-vid .hero-zh { color: rgba(212, 162, 76, .5); text-shadow: none; }
.has-vid .hero-inner .tagline, .has-vid .hero-pitch { text-shadow: 0 1px 2px rgba(4, 10, 20, .9), 0 0 18px rgba(4, 10, 20, .85); }
.hero::after { z-index: 1; }
.hero-inner { z-index: 2; }
.hero-home { min-height: 100vh; min-height: 100svh; align-items: center; }
.hero-home::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 140px; z-index: 1; background: linear-gradient(180deg, rgba(8, 14, 26, .75), rgba(8, 14, 26, 0)); pointer-events: none; }
.hero-home .hero-media { animation: heroIn 2.8s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.16); filter: brightness(.55); } to { transform: none; filter: none; } }
.hero-home .hero-inner { padding-top: 96px; padding-bottom: 96px; transform: translate3d(0, calc(var(--hp, 0) * -90px), 0); opacity: calc(1 - var(--hp, 0) * 1.5); }
.hero-home h1 { font-size: .85rem; letter-spacing: .42em; display: flex; align-items: center; gap: 14px; animation: fadeUp .9s .15s var(--ease) both; }
.hero-home h1::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
.hero-home .tagline { font-size: .95rem; color: var(--muted); animation: fadeUp .9s .3s var(--ease) both; }
.hero-home .hero-game { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 8.2vw, 6.4rem); line-height: .98; letter-spacing: .01em; margin-top: .35em;
  background: linear-gradient(180deg, #fbf3dc 0%, #efe0b8 55%, #d9b56a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 30px rgba(0, 0, 0, .55)); text-shadow: none; animation: trackIn 1.5s .35s var(--ease) both; }
@keyframes trackIn { from { letter-spacing: .32em; opacity: 0; filter: blur(14px); } to { letter-spacing: .01em; opacity: 1; filter: drop-shadow(0 4px 30px rgba(0, 0, 0, .55)); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.ornament { display: flex; align-items: center; gap: 10px; width: min(360px, 80%); margin: 1.1em 0 .3em; }
.ornament i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(212, 162, 76, 0), var(--gold)); transform-origin: right; animation: grow 1.1s .95s var(--ease) both; }
.ornament i:last-child { background: linear-gradient(90deg, var(--gold), rgba(212, 162, 76, 0)); transform-origin: left; }
.ornament b { width: 8px; height: 8px; border: 1px solid var(--gold); transform: rotate(45deg); animation: fadeUp .6s .9s both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
.hero-home .hero-pitch { animation: fadeUp .9s 1.1s var(--ease) both; }
.hero-home .hero-cta { animation: fadeUp .9s 1.3s var(--ease) both; }
.hero-zh { position: absolute; z-index: 2; right: max(4vw, 24px); top: 50%; writing-mode: vertical-rl; font-family: var(--brush); font-size: clamp(3rem, 6.4vw, 6rem); letter-spacing: .12em; line-height: 1; white-space: nowrap;
  color: rgba(11, 19, 34, .82); text-shadow: 0 0 40px rgba(255, 246, 225, .55); transform: translate3d(0, calc(-50% + var(--hp, 0) * 140px), 0);
  animation: brush 2s .6s cubic-bezier(.6, 0, .2, 1) both; pointer-events: none; }
@keyframes brush { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 1px solid rgba(212, 162, 76, .7); border-radius: 14px; animation: fadeUp .8s 2s both; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; border-radius: 1px; background: var(--gold-hi); animation: cue 1.8s 2.4s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 640px) {
  .hero-home { align-items: flex-end; }
  .hero-home .hero-inner { padding-bottom: 76px; }
  .hero-home .hero-bg { object-position: 50% 40%; }
  /* 手机：竖排字进文档流，不叠标题（11-06 真机反馈） */
  .hero-home { flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .hero-zh { position: relative; top: auto; right: auto; left: auto; align-self: flex-start; margin: 66px 0 auto 18px; font-size: 2.1rem; transform: translate3d(0, calc(var(--hp, 0) * 60px), 0); }
  .hero-home .hero-inner { padding-top: 14px; }
  .hero-home .hero-cta { flex-wrap: nowrap; gap: 10px; }
  .hero-home .hero-cta .btn-lg { min-height: 48px; padding: 0 1.05em; font-size: 1rem; white-space: nowrap; }
}
@media (max-width: 640px) and (max-height: 600px) { .hero-zh { display: none; } }

/* 按钮：金色按钮扫光 */
.theme-myth .btn { transition: filter .2s, transform .2s var(--ease), box-shadow .2s; }
.btn-gold { position: relative; overflow: hidden; box-shadow: 0 6px 24px rgba(212, 162, 76, .25); }
.btn-gold::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); transform: skewX(-20deg); pointer-events: none; }
.btn-gold:hover::after { left: 130%; transition: left .75s ease; }
.hero-cta .btn-gold::after { animation: sheen 5s 2.6s ease-in-out infinite; }
@keyframes sheen { 0%, 70% { left: -70%; } 90%, 100% { left: 130%; } }
.theme-myth .btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(212, 162, 76, .3); }
.theme-myth .btn-line:hover { background: rgba(212, 162, 76, .12); }

/* ---------- 滚动出现 ---------- */
.motion [data-reveal] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
/* 揭幕：一块和底色一样的幕布从左往右收走（不对元素本身做 clip-path：被完全裁掉的元素 Chrome 的 IntersectionObserver 认为看不见，永远触发不了） */
.motion [data-reveal="wipe"] { opacity: 1; transform: none; }
.motion [data-reveal="wipe"]::before { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--paper); border-left: 1px solid var(--gold); transform-origin: right; transition: transform 1.3s cubic-bezier(.7, 0, .2, 1) .1s; pointer-events: none; }
.motion [data-reveal="wipe"].is-in::before { transform: scaleX(0); }
[data-parallax] { transform: translate3d(0, var(--py, 0), 0) scale(1.08); }

/* ---------- 游戏介绍 ---------- */
.band-game { position: relative; background: radial-gradient(60% 80% at 15% 50%, rgba(212, 162, 76, .08), transparent 70%), var(--paper); }
.home .band { padding: clamp(64px, 10vw, 128px) 0; }
.frame { position: relative; display: block; border-radius: 4px; overflow: hidden; border: 1px solid rgba(212, 162, 76, .45); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 6px rgba(11, 19, 34, .9), 0 0 0 7px rgba(212, 162, 76, .25); }
.frame img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.split-art.frame img { border: 0; }
.stats { list-style: none; padding: 0; margin: 1.6em 0 2em; display: grid; gap: 0; }
.stats li { display: grid; grid-template-columns: 4.2rem 1fr; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.stats li:last-child { border-bottom: 1px solid var(--line); }
.stats strong { font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.stats span { color: var(--text); }

/* ---------- 神兽展台 ---------- */
/* overflow-x: clip（不是 hidden）：裁掉超宽的水印大字，又不破坏里面的 position: sticky */
.showcase { position: relative; overflow-x: clip; padding-top: clamp(64px, 10vw, 120px); background: linear-gradient(180deg, var(--paper), var(--band) 20%, var(--band) 80%, var(--paper)); border-top: 1px solid var(--line); }
.sc-head { text-align: center; }
.sc-head .eyebrow::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 10px; vertical-align: middle; background: var(--gold); }
.sc-head .lead { margin: 0 auto; }
.sc-list { list-style: none; margin: 0; padding: 0; }
/* 没有 JS / 减少动态效果：普通竖排 */
.sc-item { position: relative; display: grid; gap: 24px; align-items: center; max-width: 64rem; margin: 48px auto; padding: 0 24px; }
@media (min-width: 860px) { .sc-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.sc-art { position: relative; z-index: 1; justify-self: center; width: min(100%, 440px, 52vh); }
.sc-art::before { content: ""; position: absolute; inset: -18% -24%; z-index: -1; background: radial-gradient(closest-side, rgba(212, 162, 76, .22), rgba(212, 162, 76, 0)); pointer-events: none; }
.sc-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid rgba(212, 162, 76, .5); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 6px rgba(11, 19, 34, .9), 0 0 0 7px rgba(212, 162, 76, .25); }
.sc-zh { position: absolute; z-index: 0; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--brush); font-size: min(26vw, 22rem); line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(212, 162, 76, .3); pointer-events: none; user-select: none; }
.sc-text { position: relative; z-index: 1; }
.sc-num { font-family: var(--display); letter-spacing: .3em; color: var(--gold); font-size: .85rem; margin: 0 0 .4em; }
.sc-text h3 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.05; margin: 0 0 .25em; color: var(--ink); }
.sc-meta { margin: 0 0 1em; color: var(--gold-hi); letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }
.sc-text p:not([class]) { max-width: 28rem; font-size: 1.1rem; }
.sc-ui { display: none; }
.sc-all { text-align: center; padding-bottom: clamp(48px, 8vw, 96px); }

/* 有 JS：固定在屏幕上逐只切换 */
.sc-live .sc-track { height: calc(var(--n) * 100vh); height: calc(var(--n) * 100svh); }
.sc-live .sc-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.sc-live .sc-item { position: absolute; inset: 0; margin: 0 auto; padding: 72px 24px 88px; pointer-events: none; }
.sc-live .sc-item.is-active { pointer-events: auto; z-index: 2; }
/* 四只叠在同一个位置：只有当前这只显示背后的金色光晕，不然后面几只的光晕会盖在前面那只的图上（11-06 九尾狐发黄就是这个） */
.sc-live .sc-art::before { opacity: 0; transition: opacity .8s ease; }
.sc-live .is-active .sc-art::before { opacity: 1; }
.sc-live .sc-art img { clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path 1s cubic-bezier(.7, 0, .2, 1), transform 1.6s var(--ease); }
.sc-live .is-active .sc-art img { clip-path: inset(0 0 0 0); transform: none; }
.sc-live .is-past .sc-art img { clip-path: inset(0 0 100% 0); transform: scale(1.05); }
.sc-live .sc-zh { opacity: 0; transform: translate(-50%, -42%); transition: opacity 1.2s ease, transform 1.6s var(--ease); }
.sc-live .is-active .sc-zh { opacity: 1; transform: translate(-50%, -50%); }
.sc-live .is-past .sc-zh { transform: translate(-50%, -60%); }
.sc-live .sc-text > * { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .5s ease, transform .7s var(--ease); }
.sc-live .is-active .sc-text > * { opacity: 1; transform: none; transition-duration: .8s, 1s; }
.sc-live .is-active .sc-text > :nth-child(1) { transition-delay: .25s; }
.sc-live .is-active .sc-text > :nth-child(2) { transition-delay: .33s; }
.sc-live .is-active .sc-text > :nth-child(3) { transition-delay: .41s; }
.sc-live .is-active .sc-text > :nth-child(4) { transition-delay: .49s; }
.sc-live .is-active .sc-text > :nth-child(5) { transition-delay: .57s; }
.sc-live .sc-ui { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 3; display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; padding: 0 16px; }
.sc-rail { position: absolute; left: 50%; bottom: -12px; width: min(420px, 70%); height: 1px; transform: translateX(-50%); background: var(--line); }
.sc-bar { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.sc-dot { font: inherit; font-family: var(--display); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); background: none; border: 0; padding: 6px 2px; cursor: pointer; transition: color .3s; }
.sc-dot.is-on { color: var(--gold-hi); }
@media (max-width: 859px) {
  .sc-live .sc-track { height: calc(var(--n) * 90vh); height: calc(var(--n) * 90svh); }
  .sc-live .sc-item { align-content: center; gap: 18px; padding: 64px 16px 76px; }
  .sc-art { width: min(62vw, 300px, 40svh); }
  .sc-zh { top: 34%; font-size: 34vw; }
  .sc-text { text-align: center; }
  .sc-text p:not([class]) { margin-left: auto; margin-right: auto; font-size: 1rem; }
  .sc-live .sc-ui { bottom: 22px; gap: 10px; }
  .sc-dot { font-size: .62rem; letter-spacing: .1em; }
}

/* ---------- 「大门已开」收尾区：凤雏 ---------- */
.band-gate { position: relative; overflow: hidden; text-align: center; background: radial-gradient(50% 70% at 50% 40%, rgba(212, 162, 76, .16), transparent 70%), var(--paper); border-top: 1px solid var(--line); }
.gate .lead { margin: 0 auto 1.6em; }
.gate-pet { display: block; width: 168px; height: auto; margin: 0 auto 8px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5)); animation: bob 4.5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
.band-about { background: var(--band); border-top: 1px solid var(--line); }

/* ---------- 卡片 3D 倾斜 + 金色反光（有鼠标的设备） ---------- */
.tilt { position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), border-color .2s; will-change: transform; }
.tilt:hover { transition-duration: .12s, .2s; }
.beast-card.tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.tilt::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 228, 165, .3), rgba(255, 228, 165, 0) 55%); }
.tilt:hover::after { opacity: 1; }
.theme-myth .beast-art { position: relative; }

/* 图鉴总页横幅也用「活的画」 */
.hero-page .hero-media .hero-bg { object-position: center 40%; }

@media (prefers-reduced-motion: reduce) {
  .theme-myth *, .theme-myth *::before, .theme-myth *::after { animation: none !important; transition: none !important; }
  .hero-home .hero-inner, .hero-zh { transform: none; opacity: 1; }
  .hero-zh { transform: translateY(-50%); }
  @media (max-width: 640px) { .hero-zh { transform: none; } }
  [data-parallax] { transform: none; }
}

/* 中国神话百科（11-08，/chinese-mythology/）：条目卡片（有原画用缩略图，没有就放一个大汉字）、无图条目的事实表、正文列表 */
.entry-grid{list-style:none;padding:0;margin:16px 0 24px;display:grid;gap:14px;grid-template-columns:1fr}@media(min-width:640px){.entry-grid{grid-template-columns:repeat(2,1fr)}}
.entry-card{display:grid;grid-template-columns:84px 1fr;gap:14px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--card);text-decoration:none;color:var(--text);transition:border-color .15s,transform .15s}
.entry-card:hover{border-color:var(--gold);transform:translateY(-3px)}.entry-card:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.entry-card img{display:block;width:84px;height:112px;object-fit:cover;border-radius:6px}
.entry-zh{display:flex;align-items:center;justify-content:center;width:84px;height:112px;border-radius:6px;background:#08101d;border:1px solid var(--line);color:var(--gold-hi);font-family:var(--serif);font-size:2.3rem;line-height:1}
.entry-name{display:block;font-family:var(--serif);font-size:1.1rem;color:var(--ink)}.entry-type{margin-left:.5em;font-family:inherit;font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold)}
.entry-line{display:block;margin-top:4px;font-size:.9rem;color:var(--muted)}
.beast-top.no-art{grid-template-columns:1fr}.encyclopedia .beast-facts{margin-bottom:12px}
.entry-list{margin:.4em 0 1em 1.2em;padding:0}.entry-list li{margin:.3em 0}.encyclopedia .more h3{font-size:1.05rem;margin:20px 0 6px;color:var(--muted)}

/* 11-09 古本木刻插图（图鉴 hub 4 只试点）：纸本原色，不加滤镜 */
.woodcut { margin: 1.2em 0; text-align: center; }
.woodcut img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 4px; border: 1px solid var(--line); }
.woodcut figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; text-align: left; }
.woodcut figcaption a { color: inherit; }

/* 11-10 支持者包卡片（itch 画册 + 壁纸）：图鉴、百科、游戏页、Beastle 共用 */
.support-card { display: flex; gap: 18px; align-items: center; margin: 28px 0; padding: 18px; border: 1px solid rgba(212, 162, 76, .45); border-radius: 14px; background: rgba(212, 162, 76, .07); }
.support-art { flex: 0 0 auto; width: 260px; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid rgba(212, 162, 76, .5); }
.support-body p { margin: 0 0 10px; }
.support-body p:last-child { margin-bottom: 0; }
.support-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--gold-hi, #f0d08a); }
.support-note { display: inline-block; margin-left: 8px; font-size: .86rem; opacity: .75; }
@media (max-width: 640px) {
  .support-card { flex-direction: column; align-items: flex-start; }
  .support-note { display: block; margin: 8px 0 0; }
}
