/* 12-03 从免费版搬来的演出：落地页、进殿、光影猫对话、一问一屏、木牌和爪印、揭晓放映、当一天猫舞台、化身进殿、书卷、声音开关 */

/* 沉浸页（进殿、报生辰、化身）：不要页面的边距，铺满屏幕 */
html.immersive #app { padding: 0; max-width: none; }
html.immersive body { overflow-x: hidden; }

/* 静音开关：右下角（右上角是审阅工具条） */
.mute { position: fixed; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); z-index: 60; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold2); background: rgba(10,4,3,.6); border: 1px solid var(--line); backdrop-filter: blur(4px); }
.mute.off { color: var(--dim); }
.mute svg { width: 18px; height: 18px; }

/* ---------- 落地页 ---------- */
.land2 { position: relative; min-height: calc(100svh - 40px); display: flex; flex-direction: column; justify-content: flex-end; text-align: center; }
.land-hero { position: absolute; inset: calc(-1 * (var(--safe-t, 0px) + 18px)) -16px 0; background: center 28% / cover no-repeat; animation: kenburns 26s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 92%); mask-image: linear-gradient(180deg, #000 45%, transparent 92%); }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16) translateY(-2%); } }
.land-hero .glow { position: absolute; left: 50%; top: 40%; width: 60%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255,226,160,.4), transparent); animation: glowB 4s ease-in-out infinite; }
@keyframes glowB { 50% { opacity: .45; transform: translate(-50%, -50%) scale(1.15); } }
.land-hero .dust, .walk-lamps { position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 20% 30%, #FFE3A3, transparent), radial-gradient(1.2px 1.2px at 70% 60%, #FFE3A3, transparent), radial-gradient(2px 2px at 40% 80%, #FFD27A, transparent), radial-gradient(1.4px 1.4px at 85% 20%, #FFE3A3, transparent), radial-gradient(1.2px 1.2px at 10% 65%, #FFE3A3, transparent);
  background-size: 220px 260px; animation: dustUp 18s linear infinite; opacity: .8; }
@keyframes dustUp { to { background-position: 0 -520px; } }
.land-body { position: relative; padding: 46vh 0 8px; }
.land-voice { min-height: 2.2em; margin: 14px 0 22px; font: 700 15px/1.7 var(--serif); color: #F1CF86; transition: opacity .45s, filter .45s; }
.land-voice.out { opacity: 0; filter: blur(4px); }
.enter-btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 30px; font: 900 20px var(--serif); letter-spacing: 8px; color: #1E0A08; background: linear-gradient(180deg, #FFE7B0, #E2B24A); border-radius: 999px; box-shadow: 0 0 30px rgba(226,178,74,.5); animation: enterB 2.6s ease-in-out infinite; }
.enter-btn i { width: 8px; height: 8px; border-radius: 50%; background: #8E1F17; }
@keyframes enterB { 50% { box-shadow: 0 0 46px rgba(226,178,74,.8); } }
.land2 .link { display: block; margin: 14px auto 0; }
.sound-hint { margin-top: 10px; font-size: 12px; color: var(--dim); letter-spacing: 1px; transition: opacity .6s; }
html.sound-on .sound-hint { opacity: 0; }

/* ---------- 走进殿 → 灯灭 → 转身 ---------- */
.walk { position: fixed; inset: 0; overflow: hidden; background: #050202; z-index: 5; }
.walk-cam { position: absolute; inset: 0; transform-origin: 50% 46%; }
.walk-hall { position: absolute; inset: 0; background: center 40% / cover no-repeat; }
.walk.walking .walk-cam { animation: walkIn 5.6s cubic-bezier(.4,0,.6,1) forwards, bob .62s ease-in-out infinite; }
@keyframes walkIn { from { transform: scale(1); } to { transform: scale(1.75); } }
@keyframes bob { 50% { translate: 0 4px; } }
.walk-dark { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity 1.6s cubic-bezier(.6,0,.3,1); pointer-events: none; }
.walk.dark .walk-dark { opacity: 1; }
.walk.dark .walk-cam { animation-play-state: paused; }
.turn-hint { position: absolute; left: 24px; right: 24px; top: 44%; text-align: center; font: 700 16px/1.9 var(--serif); color: #DCC3A2; opacity: 0; transition: opacity 1s; pointer-events: none; }
.turn-hint b { display: block; margin-top: 10px; font-size: 14px; letter-spacing: 6px; color: var(--gold); animation: pulseO 2s ease-in-out infinite; }
@keyframes pulseO { 50% { opacity: .4; } }
.walk.hint .turn-hint { opacity: 1; }
.lghost { position: absolute; inset: 0; opacity: 0; transform: scale(1.08); transition: opacity 1.8s ease, transform 2.4s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.lghost img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%; filter: blur(5px) brightness(.9) saturate(.8); transform: scale(1.6); transform-origin: 80% 40%; }
.ghost-orb { position: absolute; left: 50%; top: 52%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255,240,200,.55), rgba(255,200,120,.15) 60%, transparent); mix-blend-mode: screen; animation: glowB 3.6s ease-in-out infinite; }
.ghost-eyes { display: none; position: absolute; left: 50%; top: 47%; transform: translateX(-50%); display: flex; gap: 34px; opacity: 0; }
.ghost-eyes b { width: 9px; height: 6px; border-radius: 50%; background: #FFC66B; box-shadow: 0 0 12px 4px rgba(255,190,90,.8); animation: blink 5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.walk.turned .walk-cam { opacity: 0; transition: opacity .3s; }
.walk.turned .walk-dark { opacity: .55; }
.walk.lit .lghost { opacity: 1; transform: none; }
.walk.lit .ghost-eyes { opacity: 1; transition: opacity 1s 1.2s; }
.walk .love { position: absolute; right: 14px; top: calc(env(safe-area-inset-top, 0px) + 14px); font: 700 12px var(--serif); color: #F4A6B8; display: flex; align-items: center; gap: 2px; }
.walk .love svg { width: 13px; height: 13px; color: #F0586E; }
.dlg { position: absolute; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 58px); padding: 22px 16px 14px; background: rgba(16,7,5,.84); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(6px); animation: rise .5s both; }
.dlg .who { position: absolute; top: -11px; left: 12px; padding: 2px 12px; font: 800 13px var(--serif); letter-spacing: 3px; color: #1E0A08; background: var(--gold2); border-radius: 3px; }
.dsay { min-height: 3.6em; font: 600 16px/1.8 var(--serif); }
.typing::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: var(--gold); animation: enterB 1s infinite; }
.dlg .choices { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.dlg .choice { padding: 11px 14px; text-align: left; font: 600 15px/1.5 var(--serif); color: var(--gold2); background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 8px; animation: rise .4s both; }
.dlg .choice:active { background: rgba(226,178,74,.18); }
.walk-skip { position: absolute; left: 14px; top: calc(env(safe-area-inset-top, 0px) + 10px); font-size: 12px; color: var(--dim); }

/* ---------- 一问一屏 ---------- */
.ask, .altar { position: relative; min-height: 100svh; overflow: hidden; }
.ask-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.ask-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%; filter: blur(4px) brightness(.75); transform: scale(1.6); transform-origin: 80% 40%; }
.ask-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,3,2,.15), rgba(8,3,2,.55) 22%, rgba(8,3,2,.35) 45%, rgba(8,3,2,.1) 70%, rgba(8,3,2,.5)); }
.ask-bg .ghost-orb { top: 40%; opacity: .6; }
.ask-bg.dim img { filter: blur(6px) brightness(.5); }
.ask-back { position: fixed; left: 10px; top: calc(env(safe-area-inset-top, 0px) + 8px); z-index: 3; width: 40px; height: 40px; font-size: 30px; line-height: 1; color: var(--gold2); }
.ask-box { position: relative; z-index: 2; padding: 30vh 22px 40px; }
.ask-box.in { animation: rise .45s both; }
.ask-q { font: 900 25px/1.5 var(--serif); color: #FFF1D6; text-shadow: 0 2px 16px #000; }
.ask-sub { margin: 8px 0 18px; font-size: 13px; color: #DCC3A2; min-height: 1.5em; }
.ask-sub.err { color: #FF8A70; }
.ask-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ask-in { flex: 1; min-width: 0; padding: 12px 4px; font: 800 24px var(--serif); letter-spacing: 2px; color: var(--gold2); background: transparent; border: 0; border-bottom: 2px solid var(--gold); outline: none; }
.ask-in::placeholder { color: rgba(255,227,163,.25); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.pick { width: 100%; }
.chip { padding: 10px 18px; font: 700 15px var(--serif); color: var(--gold2); border: 1px solid var(--line); border-radius: 999px; background: rgba(0,0,0,.35); }
.chip.go { color: #1E0A08; background: linear-gradient(180deg, #FFE7B0, #E2B24A); border-color: transparent; }
.chip:disabled { opacity: .35; }
.ask-list { display: none; margin-top: 10px; max-height: 38vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: rgba(10,4,3,.85); }
.ask-list.on { display: block; }
.ask-list button { display: flex; justify-content: space-between; width: 100%; padding: 11px 14px; text-align: left; font-size: 15px; color: var(--ink); border-bottom: 1px solid rgba(217,165,74,.15); }
.ask-list button small { color: var(--dim); }
.ask-list p { padding: 10px 14px; font-size: 13px; color: var(--dim); }
.ask-list select { margin: 0 14px 10px; padding: 8px; font-size: 16px; color: var(--ink); background: #1A0A07; border: 1px solid var(--line); border-radius: 6px; }
.ask-list .chip { margin: 0 14px 12px; width: auto; display: inline-block; }

/* ---------- 木牌 + 爪子 ---------- */
.altar > *:not(.ask-bg) { position: relative; z-index: 2; }
.altar-sub { padding-top: calc(env(safe-area-inset-top, 0px) + 54px); text-align: center; font: 700 15px var(--serif); color: #DCC3A2; }
.calc { min-height: 3.4em; margin: 6px 22px 10px; text-align: center; font: 800 15px/1.8 var(--serif); color: #FF9A80; text-shadow: 0 1px 8px #000; }
.calc p { animation: capIn .7s both; }
.calc p::before { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 7px 2px 0; border-radius: 50%; background: #C42A1D; vertical-align: middle; }
.plqs { display: flex; justify-content: center; gap: 26px; --pw: min(31vw, 124px); }
.plq-col { position: relative; display: flex; flex-direction: column; align-items: center; }
.plq-col::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: 1.5px; height: 200px; margin-left: -.75px; background: linear-gradient(180deg, rgba(110,20,14,0), #6A140E 70%, #7A1A12); }
.plq { position: relative; display: block; width: var(--pw); height: calc(var(--pw) * 2.003); transform-origin: 50% 0; animation: plqSway 6s ease-in-out infinite alternate; }
.plq + .plq { margin-top: calc(var(--pw) * -0.34); }
.plq-col:nth-child(2) .plq { animation-delay: -2.2s; animation-duration: 6.8s; }
@keyframes plqSway { from { transform: rotate(-1deg); } to { transform: rotate(1deg); } }
.plq-wood { position: absolute; inset: 0; background: url('../art/altar/plaque.webp') center / 100% 100% no-repeat; filter: drop-shadow(0 12px 12px rgba(0,0,0,.6)); }
.plq-k, .plq-v { position: absolute; writing-mode: vertical-rl; }
.plq-k { right: 15%; top: calc(var(--pw) * .40); font: 700 12px var(--serif); letter-spacing: 4px; color: rgba(255,228,190,.78); text-shadow: 0 1px 0 rgba(0,0,0,.6); }
.plq-v { right: 32%; left: 12%; top: calc(var(--pw) * .40); height: calc(var(--pw) * .92); overflow: hidden; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; font: 900 16px/1.15 var(--serif); letter-spacing: 1px; color: #FFE3B0; text-shadow: 0 1px 0 rgba(30,6,0,.9), 0 0 10px rgba(0,0,0,.35); animation: carve .9s cubic-bezier(.2,.8,.2,1) both; }
.plq-v span { white-space: nowrap; }
.plq-v.empty { font-size: 13px; font-weight: 600; color: rgba(255,228,190,.42); }
@keyframes carve { from { clip-path: inset(0 0 100% 0); filter: brightness(2) blur(1px); } to { clip-path: inset(0 0 0 0); filter: none; } }
.plq.glint .plq-wood::after { content: ''; position: absolute; inset: 20% 10%; border-radius: 30%; background: radial-gradient(closest-side, rgba(255,231,176,.7), transparent); animation: glint 1.2s calc(var(--k) * .12s) ease both; }
@keyframes glint { 0% { opacity: 0; transform: scale(.6); } 40% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0; transform: scale(1); } }
.arm-note { min-height: 3.4em; margin: 10px 22px 0; text-align: center; font-size: 13px; line-height: 1.7; color: #DCC3A2; }
.arm-note span { display: block; animation: capIn .4s ease both; } .arm-note b { color: #FFE7B0; }
.arm-note em { display: block; margin-top: 2px; font-style: normal; font-weight: 700; color: #F08C6E; animation: capIn .4s ease .1s both; }
.paw-zone { position: fixed; left: 0; right: 0; bottom: 0; height: 30vh; pointer-events: none; z-index: 3; transform: translateY(105%); opacity: 0; transition: transform .9s cubic-bezier(.2,1.25,.4,1), opacity .5s; }
.altar.ready .paw-zone { transform: none; opacity: 1; }
.paw-zone::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120%; background: radial-gradient(60% 70% at 50% 100%, rgba(255,150,80,.16), rgba(255,150,80,0)); }
.paw { position: absolute; left: 50%; bottom: 0; width: 46%; max-width: 210px; pointer-events: auto; touch-action: manipulation; --p: 0;
  transform: translate(-50%, calc(26% - var(--p) * 12%)) rotate(calc(var(--p) * -3deg)) scale(calc(1 + var(--p) * .06)); transition: transform .25s cubic-bezier(.3,1.4,.5,1); animation: pawIdle 3.6s ease-in-out infinite; }
.paw.hold { animation: none; transition: none; }
@keyframes pawIdle { 50% { transform: translate(-50%, 22%) rotate(-1deg); } }
.paw img { position: relative; display: block; width: 100%; pointer-events: none; transform-origin: 50% 16%; filter: drop-shadow(0 -6px 18px rgba(0,0,0,.55)); }
.paw-glow { position: absolute; left: -30%; right: -30%; top: -20%; height: 90%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,190,120,calc(.25 + var(--p) * .45)), rgba(255,120,60,0)); pointer-events: none; }
.paw-ink { position: absolute; left: 22%; right: 22%; top: 4%; height: 26%; border-radius: 50%; background: radial-gradient(closest-side, rgba(196,42,29,calc(var(--p) * .9)), transparent); pointer-events: none; }
.altar.armed .paw { animation: pawIdle 1.2s ease-in-out infinite; }
.paw.zoom { animation: none; z-index: 20; transition: translate .56s cubic-bezier(.55,0,.85,.35); }
.paw.zoom img { transform: scale(4.6); transition: transform .56s cubic-bezier(.55,0,.85,.35), filter .56s; filter: drop-shadow(0 0 30px rgba(0,0,0,.6)) blur(.5px); }
.paw.lift { opacity: 0; transition: opacity .35s ease-out .12s, translate .56s; }
.altar.branding .plqs, .altar.branding .calc { filter: brightness(.5); transition: filter .5s; }
.screen-print { position: fixed; left: 50%; top: 46%; z-index: 35; width: min(84vw, 380px); aspect-ratio: 1; transform: translate(-50%, -50%) rotate(-5deg); pointer-events: none;
  -webkit-mask: url('../art/altar/pawmark.svg') center / contain no-repeat; mask: url('../art/altar/pawmark.svg') center / contain no-repeat;
  background: radial-gradient(circle at 46% 58%, rgba(255,255,255,0) 30%, rgba(60,0,0,.25) 75%), url('../art/altar/stamp.webp') 52% 60% / 230% auto, #B4241A;
  animation: printIn .16s ease-out both; filter: drop-shadow(0 0 16px rgba(255,90,50,.3)) saturate(1.1); }
@keyframes printIn { from { opacity: 0; transform: translate(-50%, -50%) rotate(-5deg) scale(1.3); } }
.screen-print.gone { opacity: 0; transition: opacity .7s ease; }

/* ---------- 揭晓放映：名字大字透出它的毛和眼睛 ---------- */
.film-wrap { height: 190svh; margin: calc(-1 * (var(--safe-t, 0px) + 18px)) -16px 0; }
.film-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.film-eyebrow { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 28px); text-align: center; font: 700 14px var(--serif); letter-spacing: 3px; color: var(--gold2); text-shadow: 0 1px 8px #000; z-index: 3; }
.film-name { position: absolute; left: 0; right: 0; top: 26%; z-index: 3; transform-origin: 50% 50%; will-change: transform, opacity; text-align: center; font: 900 min(44vw, 230px)/1 var(--serif); letter-spacing: -4px; color: transparent;
  /* 字里透出它的毛和眼睛：猫图叠在金色渐变上（screen），黑猫也看得见；透明的地方露出金色 */
  background-color: transparent; background-size: auto 125%, 420% auto, 100% 100%; background-position: 50% 30%, 50% 52%, 0 0; background-blend-mode: normal, screen, normal; -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 1px rgba(255,231,176,.55); filter: drop-shadow(0 0 18px rgba(255,220,150,.35)); animation: nameIn 1.6s cubic-bezier(.2,.8,.2,1) both; will-change: transform, opacity; }
@keyframes nameIn { from { opacity: 0; letter-spacing: 20px; filter: blur(12px); } }
.film-cat { position: absolute; left: 50%; bottom: 0; z-index: 2; width: min(150vw, 92svh * .75 * 1.25, 760px); opacity: 0; transform: translate(-50%, -18%) scale(.42); transform-origin: 50% 35%; filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); will-change: transform, opacity; }
.film-cap { position: absolute; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); z-index: 3; text-align: center; opacity: 0; text-shadow: 0 2px 10px #000; }
.film-cap b { display: block; font: 900 34px var(--serif); letter-spacing: 8px; color: #FFF1D6; }
.film-cap p { margin-top: 4px; font: 700 13px var(--serif); color: #F1CF86; letter-spacing: 1px; }
.film-cap .tags span { display: inline-block; margin: 6px 4px 0; padding: 2px 10px; border: 1px solid rgba(255,227,163,.5); border-radius: 999px; font-size: 12px; background: rgba(0,0,0,.35); }
.film-tip { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); z-index: 3; text-align: center; font-size: 12px; letter-spacing: 3px; color: var(--dim); animation: pulseO 2s infinite; }
.film-after { position: relative; z-index: 2; }
/* 五行质感 */
.tex { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(90% 60% at 50% 40%, #1A1210, #070302); }
.tex i { position: absolute; inset: -20%; }
.film[data-el="水"] .tex { background: radial-gradient(90% 60% at 50% 40%, #0E1A33, #03060E); }
.film[data-el="水"] .tex i:nth-child(1) { background: repeating-radial-gradient(ellipse at 50% 120%, transparent 0 18px, rgba(111,164,242,.18) 19px 20px); animation: ripple 9s linear infinite; }
.film[data-el="水"] .tex i:nth-child(2) { background-image: radial-gradient(2px 2px at 20% 30%, #BFE0FF, transparent), radial-gradient(1.5px 1.5px at 60% 70%, #BFE0FF, transparent), radial-gradient(2px 2px at 80% 40%, #9FD4FF, transparent); background-size: 180px 220px; animation: dustUp 14s linear infinite; }
@keyframes ripple { to { transform: translateY(-40px) scale(1.05); } }
.film[data-el="火"] .tex { background: radial-gradient(70% 50% at 50% 70%, #5A1A0A, #120403 75%); }
.film[data-el="火"] .tex i:nth-child(1) { background: radial-gradient(40% 30% at 50% 75%, rgba(255,140,60,.45), transparent); animation: glowB 2.4s ease-in-out infinite; }
.film[data-el="火"] .tex i:nth-child(2) { background-image: radial-gradient(2px 2px at 30% 80%, #FFB347, transparent), radial-gradient(1.5px 1.5px at 70% 60%, #FF8A50, transparent); background-size: 150px 200px; animation: dustUp 7s linear infinite; }
.film[data-el="木"] .tex { background: radial-gradient(90% 60% at 50% 40%, #12261A, #040A06); }
.film[data-el="木"] .tex i:nth-child(1) { background: radial-gradient(14% 9% at 20% 30%, rgba(95,199,154,.22), transparent), radial-gradient(12% 8% at 70% 20%, rgba(95,199,154,.18), transparent), radial-gradient(16% 10% at 60% 70%, rgba(95,199,154,.16), transparent); filter: blur(8px); animation: leaf 11s ease-in-out infinite alternate; }
@keyframes leaf { to { transform: translate(4%, 3%) rotate(4deg); } }
.film[data-el="土"] .tex { background: radial-gradient(90% 60% at 50% 40%, #2A1C0E, #0A0603); }
.film[data-el="土"] .tex i:nth-child(1) { background-image: radial-gradient(1.6px 1.6px at 25% 35%, #E0A25A, transparent), radial-gradient(1.2px 1.2px at 65% 55%, #E0A25A, transparent), radial-gradient(2px 2px at 45% 85%, #C8925A, transparent); background-size: 160px 190px; animation: dustUp 30s linear infinite; opacity: .7; }
.film[data-el="金"] .tex { background: radial-gradient(90% 60% at 50% 40%, #2A2414, #080703); }
.film[data-el="金"] .tex i:nth-child(1) { background: linear-gradient(115deg, transparent 40%, rgba(255,231,176,.22) 50%, transparent 60%); animation: sheen 5s ease-in-out infinite; }
@keyframes sheen { from { transform: translateX(-60%); } to { transform: translateX(60%); } }

/* ---------- 当一天猫：做题前一屏 ---------- */
.qintro { text-align: center; padding-top: 4vh; }
.qi-cat { width: min(56vw, 230px); filter: drop-shadow(0 10px 24px rgba(0,0,0,.6)); animation: breath2 3.6s ease-in-out infinite; }
@keyframes breath2 { 50% { transform: scale(1.02) translateY(-2px); } }
.qintro .say { text-align: left; }
.qi-time { margin: 8px 0; font: 700 14px var(--serif); color: var(--gold2); }
.qi-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 10px 0 18px; }
.qi-tags span { padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: #E6D2BC; }
.center { text-align: center; }

/* ---------- 当一天猫：舞台 ---------- */
.vnq { margin-top: calc(-1 * (var(--safe-t, 0px) + 10px)); }
.vn-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--dim); }
.vn-top .qprog { flex: 1; text-align: center; }
.vn-back { width: 34px; height: 34px; font-size: 26px; color: var(--gold2); }
.vn-exit { font-size: 12px; color: var(--gold); padding: 6px 2px; }
.vn-dots { display: flex; justify-content: center; gap: 6px; margin: 6px 0; }
.vn-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(243,227,207,.2); }
.vn-dots i.past { background: var(--gold); opacity: .6; }
.vn-dots i.now { background: var(--gold2); box-shadow: 0 0 8px var(--gold); width: 16px; border-radius: 4px; }
.vn-stage { position: relative; height: min(44svh, 400px); margin: 0 -16px; overflow: hidden; background: #000; }
.vn-bg { position: absolute; inset: 0; background: 50% 50% / cover no-repeat; transition: background-position 1.4s cubic-bezier(.45,.05,.3,1); }
.vn-bg.qin { animation: bgIn .7s both; }
@keyframes bgIn { from { opacity: 0; filter: blur(6px); } }
.vn-stage::after { content: ''; position: absolute; inset: auto 0 0 0; height: 34%; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }
.vn-g { position: absolute; left: 4%; bottom: 2%; z-index: 2; width: 38%; max-width: 190px; transform-origin: 50% 100%; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); animation: breath2 3.6s ease-in-out infinite; }
.vn-stage[data-key="l"] .vn-g { filter: drop-shadow(-4px 6px 10px rgba(0,0,0,.5)) brightness(1.05); }
.vn-stage[data-key="b"] .vn-g { filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)) brightness(.85) saturate(.9); }
.vn-me { position: absolute; right: 6%; bottom: 8%; z-index: 2; }
.forming.mini { width: 104px; height: 120px; }
.vn-me span { display: block; text-align: center; margin-top: -4px; font: 700 11px var(--serif); letter-spacing: 3px; color: var(--gold2); text-shadow: 0 1px 6px #000; }
.vn-me .orb i { opacity: calc(.7 + var(--lv) * .3); filter: blur(calc((1 - var(--lv)) * 10px + 2px)); }
.vn-me .fm-pic { opacity: calc(.3 + var(--lv) * .7); filter: blur(calc((1 - var(--lv)) * 9px)) brightness(calc(.7 + var(--lv) * .5)) saturate(var(--lv)); -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent); mask-image: radial-gradient(closest-side, #000 60%, transparent); mix-blend-mode: screen; }
.forming.mini .orb { width: 104px; height: 104px; }
.forming.mini .fm-pic { width: 84px; height: 112px; }
.vn-title { position: absolute; left: 0; right: 0; top: 10px; z-index: 3; text-align: center; font: 800 15px var(--serif); letter-spacing: 6px; color: #FFF1D6; text-shadow: 0 1px 8px #000; opacity: 0; }
.vn-title.show { animation: titleIn 2.8s ease both; }
@keyframes titleIn { 0% { opacity: 0; letter-spacing: 14px; } 20%, 70% { opacity: 1; letter-spacing: 6px; } 100% { opacity: .0; } }
.vn-door { position: absolute; inset: 0; z-index: 5; pointer-events: none; display: flex; }
.vn-door i { flex: 1; background: linear-gradient(90deg, #3a1d12, #5a2c18 50%, #3a1d12); border: 2px solid #8a5a2a; transform: scaleX(0); transition: transform .55s ease-in-out; }
.vn-door i:first-child { transform-origin: left; } .vn-door i:last-child { transform-origin: right; }
.vn-door.shut i { transform: scaleX(1); }
.vn-box { position: relative; z-index: 3; margin-top: -26px; }
.vn-say p { font: 600 15px/1.8 var(--serif); color: #E6D2BC; animation: capIn .6s calc(var(--i, 0) * .35s) both; }
.vnq .qq { margin: 8px 0 12px; font-size: 20px; }
.vnq .qchat .say { margin-top: 18px; font-size: 14px; }

/* ---------- 成形 ---------- */
.formed-kicker { text-align: center; font: 700 13px var(--serif); letter-spacing: 4px; color: var(--dim); margin-top: 2vh; }
.formed-big { text-align: center; margin: 12px 0 4px; font: 900 40px var(--serif); letter-spacing: 10px; color: var(--gold2); opacity: 0; transform: scale(1.3); filter: blur(10px); transition: all 1.2s cubic-bezier(.2,.8,.2,1); }
.formed-big.shown { opacity: 1; transform: none; filter: none; text-shadow: 0 0 24px rgba(255,210,120,.5); }

/* ---------- 化身进殿 ---------- */
.ascend { position: fixed; inset: 0; z-index: 5; overflow: hidden; background: #050202; cursor: pointer; }
.asc-hall { position: absolute; inset: 0; background: center 40% / cover no-repeat; opacity: .35; filter: blur(3px); transition: all 2.4s cubic-bezier(.4,0,.2,1); }
.ascend img { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); transition: all 1.6s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.asc-home { width: min(70vw, 340px); }
.asc-god { width: min(96vw, 520px); opacity: 0; transform: translateX(-50%) scale(.6); filter: brightness(3) blur(10px); }
.asc-yh { width: 100%; height: 100%; inset: 0; bottom: auto; transform: none; object-fit: cover; opacity: 0; left: 0; }
.asc-burst { position: absolute; left: 50%; top: 55%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, #FFF6DA, rgba(255,200,110,.6), transparent); opacity: 0; }
.ascend.s2 .asc-burst { animation: ascBurst 1.6s ease-out both; }
@keyframes ascBurst { 0% { opacity: 1; width: 10px; height: 10px; } 100% { opacity: 0; width: 260vmax; height: 260vmax; } }
.ascend.s2 .asc-home, .ascend.s3 .asc-home, .ascend.s4 .asc-home { opacity: 0; transform: translateX(-50%) scale(1.3); filter: brightness(3) blur(8px); }
.ascend.s2 .asc-god, .ascend.s3 .asc-god { opacity: 1; transform: translateX(-50%); filter: drop-shadow(0 0 30px rgba(255,220,150,.45)); }
.ascend.s3 .asc-hall { opacity: 1; filter: none; transform: scale(1.35); }
.ascend.s3 .asc-god { transform: translateX(-80%) scale(.7); bottom: 8%; }
.ascend.s4 .asc-hall { opacity: .2; transform: scale(1.6); }
.ascend.s4 .asc-god { opacity: .0; transform: translateX(-120%) scale(.6); }
.ascend.s4 .asc-yh { opacity: 1; transition: opacity 2.2s ease .3s; }
.asc-cap { position: absolute; left: 14px; right: 14px; bottom: calc(env(safe-area-inset-bottom, 0px) + 54px); z-index: 3; padding: 20px 16px 12px; border-radius: 12px; background: rgba(16,7,5,.78); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.asc-cap .who { position: absolute; top: -11px; left: 12px; padding: 2px 12px; font: 800 13px var(--serif); letter-spacing: 3px; color: #1E0A08; background: var(--gold2); border-radius: 3px; }
.asc-cap .who:empty { display: none; }
.asc-cap p { font: 600 16px/1.8 var(--serif); }
.asc-cap p.in { animation: capIn .8s both; }
.asc-tap { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); text-align: center; font-size: 12px; letter-spacing: 3px; color: var(--dim); animation: pulseO 2s infinite; }

/* ---------- 书卷：卷名小印、大水印字、朱砂点带读 ---------- */
.juan { position: relative; margin: 34px 0 10px; padding-top: 34px; }
.j-mark { position: absolute; right: -6px; top: -10px; font: 900 150px/1 var(--serif); color: rgba(226,178,74,.06); pointer-events: none; font-style: normal; }
.j-seal { position: absolute; left: 0; top: 0; padding: 3px 8px; font: 800 11px var(--serif); letter-spacing: 2px; color: #FFE0D0; background: #9E2A22; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,200,180,.25) inset; transform: rotate(-3deg); opacity: 0; transition: opacity .5s .2s; }
.juan.in .j-seal { opacity: 1; }
.j-dot { position: relative; height: 18px; margin-bottom: 4px; }
.j-dot i { position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #F0583F, #9E1E16); box-shadow: 0 0 10px rgba(240,88,63,.6); opacity: 0; }
.j-dot b { position: absolute; left: 6px; right: 0; top: 9px; height: 1.5px; background: linear-gradient(90deg, #C42A1D, rgba(196,42,29,0)); transform: scaleX(0); transform-origin: left; }
.juan.in .j-dot b { transform: scaleX(1); transition: transform .9s cubic-bezier(.2,.8,.2,1) .35s; }
.juan.j-drop.in .j-dot i { animation: dDrop .55s cubic-bezier(.5,0,.75,1.4) both; }
@keyframes dDrop { from { opacity: 0; transform: translateY(-60px); } to { opacity: 1; } }
.juan.j-swell.in .j-dot i { animation: dSwell .8s ease both; }
@keyframes dSwell { 0% { opacity: 0; transform: scale(.2); } 50% { opacity: 1; transform: scale(3.2); box-shadow: 0 0 40px rgba(240,88,63,.6); } 100% { opacity: 1; transform: scale(1); } }
.juan.j-run.in .j-dot i { animation: dRun 1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes dRun { from { opacity: 1; transform: translateX(min(80vw, 480px)); } to { opacity: 1; transform: none; } }
.juan.j-meet .j-dot::after { content: ''; position: absolute; right: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFE3A3, #E2B24A); opacity: 0; }
.juan.j-meet.in .j-dot i { animation: dRun .9s cubic-bezier(.2,.8,.2,1) both; }
.juan.j-meet.in .j-dot::after { animation: dMeet .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes dMeet { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(calc(-1 * min(80vw, 480px) + 12px)); } }
.j-title { font: 900 21px var(--serif); letter-spacing: 3px; color: var(--gold); margin-bottom: 8px; }
.j-title span { opacity: .12; transition: opacity .4s, text-shadow .4s; transition-delay: calc(.4s + var(--i) * .09s); }
.juan.in .j-title span { opacity: 1; text-shadow: 0 0 12px rgba(226,178,74,.4); }
.j-body { opacity: 0; transform: translateY(8px); transition: opacity .9s .7s, transform .9s .7s; }
.juan.in .j-body { opacity: 1; transform: none; }
.embers { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.embers i { position: absolute; left: var(--x); bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: #FFB347; box-shadow: 0 0 6px 2px rgba(255,140,60,.6); opacity: 0; animation: ember calc(9s * var(--s)) linear var(--d) infinite; }
@keyframes ember { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: .8; } 100% { opacity: 0; transform: translate(30px, -100vh); } }
.yh > *:not(.embers) { position: relative; z-index: 1; }

/* 表 / 里 */
.biaoli { margin: 16px 0 6px; padding: 16px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.25); }
.bl-head { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font: 800 12px var(--serif); letter-spacing: 2px; color: var(--dim); margin-bottom: 6px; }
.bl-head span + span { text-align: right; color: #F08C6E; }
.bl-row { display: grid; grid-template-columns: 1fr 20px 1fr; align-items: center; gap: 4px; padding: 8px 0; border-top: 1px dashed rgba(217,165,74,.2); opacity: 0; transform: translateY(6px); }
.juan.in .bl-row { opacity: 1; transform: none; transition: all .6s calc(1.2s + var(--i) * .45s); }
.bl-out { font: 700 15px var(--serif); color: #E6D2BC; }
.bl-in { text-align: right; font: 800 15px var(--serif); color: #FFB8A0; }
.bl-row i { height: 1px; background: linear-gradient(90deg, rgba(226,178,74,.3), #C42A1D); }
.bl-not { margin-top: 16px; text-align: center; font: 700 15px var(--serif); color: var(--dim); }
.bl-is { text-align: center; font: 900 24px/1.5 var(--serif); color: var(--ink); }
.bl-is b { color: #F0583F; }
.bl-tail { margin-top: 10px; text-align: center; font: 600 14px/1.9 var(--serif); }
.bl-tail .dim { color: var(--dim); }
.bl-end { margin-top: 12px; text-align: center; font: 900 28px var(--serif); letter-spacing: 10px; color: var(--gold2); }
/* 四扇门一扇一扇亮 */
.doors4 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.dr4 { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 0 10px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(217,165,74,.2); background: rgba(0,0,0,.35); filter: grayscale(1) brightness(.35); transition: filter 1s, box-shadow 1s, border-color 1s; }
.dr4 i { display: block; width: 100%; aspect-ratio: 3 / 4; background: center 40% / cover no-repeat; }
.dr4 b { margin-top: 6px; font: 900 18px var(--serif); letter-spacing: 4px; color: var(--gold2); }
.dr4 span { font-size: 12px; color: #E6D2BC; }
.dr4 em { margin-top: 2px; font-style: normal; font-size: 11px; color: var(--gold); }
.dr4.lit { filter: none; border-color: var(--gold); box-shadow: 0 0 26px rgba(226,178,74,.35); animation: doorLit 1s ease; }
@keyframes doorLit { 0% { filter: brightness(2.2); } 100% { filter: none; } }

/* 本命猫码 */
.sheet-bg { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.72); }
.code-sheet { width: min(420px, 100%); padding: 22px 18px; border-radius: 12px; background: #1A0A07; border: 1px solid var(--line); text-align: center; }
.code-sheet h3 { font: 900 20px var(--serif); color: var(--gold); letter-spacing: 3px; }
.code-in { width: 100%; margin: 12px 0 6px; padding: 12px; font: 700 18px monospace; letter-spacing: 2px; text-align: center; color: var(--gold2); background: rgba(0,0,0,.4); border: 1px solid var(--line); border-radius: 8px; outline: none; }
.code-sheet .err { color: #FF8A70; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .land-hero, .walk-cam, .film-name, .embers i, .tex i { animation: none !important; }
}

/* 点一下就看懂 */
.term { display: inline; padding: 0; font: inherit; color: inherit; border-bottom: 1px dashed rgba(226,178,74,.75); }
.term-pop { display: block; margin: 6px 0 8px; padding: 10px 12px; font: 500 13.5px/1.7 inherit; font-family: inherit; color: #F3E3CF; background: rgba(0,0,0,.45); border: 1px solid var(--line); border-radius: 8px; animation: rise .3s both; }
.term-pop b { display: block; margin-bottom: 2px; font-weight: 800; color: var(--gold2); }
.film-cap .term-pop { text-shadow: none; text-align: left; }

.mute { transition: transform .25s, opacity .25s; }

/* 当一天猫：场景铺满整屏（场景图是竖的，只露一条会切掉上半部分），文字压在下面，守护者站在文字上方（审阅 #5） */
.vnq { position: relative; min-height: 100svh; display: flex; flex-direction: column; }
.vnq > :not(.vn-stage) { position: relative; z-index: 2; }
.vnq .vn-stage { position: fixed; inset: 0; height: auto; margin: 0; z-index: 0; }
.vnq .vn-stage::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 110px; z-index: 1; background: linear-gradient(180deg, rgba(11,6,5,.85), transparent); pointer-events: none; }
.vnq .vn-stage::after { height: auto; top: calc(100% - var(--boxh, 46svh) - 18svh); background: linear-gradient(180deg, transparent, rgba(11,6,5,.78) 16svh, var(--bg) 40svh); }
.vnq .vn-g { bottom: min(calc(var(--boxh, 46svh) - 6px), 64svh); width: min(34vw, 190px); }
.vnq .vn-me { bottom: min(calc(var(--boxh, 46svh) + 12px), 66svh); }
.vnq .vn-title { top: calc(env(safe-area-inset-top, 0px) + 74px); }
.vnq .vn-box { margin-top: auto; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); }

/* 化身进殿：嵌入免费版调好的变身（henshin/），载好以后替换静态的家猫 / 守护神图 */
.asc-live { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; opacity: 0; pointer-events: none; transition: opacity .8s; background: transparent; }
.ascend.live .asc-live { opacity: 1; }
.ascend.live .asc-home, .ascend.live .asc-god { opacity: 0 !important; transition: opacity .8s; }
.ascend.live .asc-burst { display: none; }
.ascend.live.s4 .asc-live { opacity: 0; transition: opacity 1.6s; }
.asc-cap.hide, .asc-tap.hide { opacity: 0; transition: opacity .4s; }

/* ---------- 进门仪式（红鸾、卧星）：整屏铺满的门，所有互动画在画上 ---------- */
.dg { position: fixed; inset: 0; z-index: 5; overflow: hidden; background: #050202; user-select: none; -webkit-user-select: none; }
.dg-cam { position: absolute; inset: 0; will-change: transform; }
.dg-bg { position: absolute; inset: 0; background: center / cover no-repeat; transform: scale(1.04); transition: transform 6s ease-out, filter 1.2s; filter: brightness(.7) saturate(.9); }
.dg.in .dg-bg { transform: scale(1); filter: brightness(.92); }
.dg-fx { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: pointer; }
.dg-title { position: absolute; left: 0; right: 0; top: 40%; text-align: center; font: 900 34px var(--serif); letter-spacing: 14px; color: #FFE7B0; text-shadow: 0 2px 18px #000, 0 0 30px rgba(255,200,120,.4); pointer-events: none; opacity: 0; animation: dgTitle 3.2s ease both .2s; }
@keyframes dgTitle { 0% { opacity: 0; letter-spacing: 30px; filter: blur(8px); } 25%, 60% { opacity: 1; letter-spacing: 14px; filter: none; top: 40%; } 100% { opacity: .0; top: 36%; } }
.dg-skip { position: absolute; left: 12px; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 4; font-size: 12px; letter-spacing: 2px; color: rgba(255,231,176,.75); padding: 6px 10px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,231,176,.25); }
.dg-low { position: absolute; left: 14px; right: 14px; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); z-index: 3; display: flex; flex-direction: column; align-items: stretch; gap: 10px; pointer-events: none; }
.dg-low > * { pointer-events: auto; }
.dg-hint { align-self: center; padding: 6px 14px; border-radius: 16px; background: rgba(0,0,0,.42); font: 600 13px var(--serif); letter-spacing: 2px; color: #F3E3CF; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; text-align: center; }
.dg-hint.on { opacity: 1; transform: none; animation: dgBreathe 2.6s ease-in-out infinite 1s; }
.dg-hint.nudge { animation: dgNudge .45s ease; }
@keyframes dgBreathe { 50% { opacity: .65; } }
@keyframes dgNudge { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.dg-dots { display: inline-flex; gap: 5px; margin-left: 8px; vertical-align: middle; }
.dg-dots i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid #FFE7B0; }
.dg-dots i.on { background: #FFE7B0; box-shadow: 0 0 8px #FFD27A; }
.dg-btns { display: flex; gap: 10px; justify-content: center; }
.dg-btns:empty { display: none; }
.dg-btns .btn { min-width: 110px; }
.dg-cap { position: relative; padding: 18px 16px 12px; border-radius: 12px; background: linear-gradient(180deg, rgba(20,8,6,.78), rgba(10,4,3,.9)); border: 1px solid rgba(255,231,176,.28); transition: opacity .5s, transform .5s; }
.dg-cap.off { opacity: 0; transform: translateY(10px); pointer-events: none; }
.dg-cap .who { position: absolute; top: -11px; left: 12px; padding: 2px 12px; font: 800 13px var(--serif); letter-spacing: 3px; color: #1E0A08; background: var(--gold2); border-radius: 4px; }
.dg-cap p { font: 600 15px/1.8 var(--serif); color: #F3E3CF; }
.dg-cap p.in { animation: capIn .7s both; }
.dg.low-hint .dg-cap { opacity: 0; transform: translateY(10px); pointer-events: none; }
.dg-hl .dg-cap { border-color: rgba(255,160,185,.35); }
.dg-hl .dg-cap .who { background: #FFB3C4; }
.dg-wx .dg-cap { border-color: rgba(190,210,255,.35); }
.dg-wx .dg-cap .who { background: #CFE0FF; }
.dg-flash { position: absolute; inset: 0; z-index: 6; pointer-events: none; background: #FFF6E4; opacity: 0; }
.dg.flash .dg-flash { animation: dgFlash .9s ease forwards; }
@keyframes dgFlash { 40% { opacity: 1; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dg-title { animation-duration: 1.4s; } .dg-hint.on { animation: none; } }

/* ---------- 施法（出结果之前）和一段一段显出来 ---------- */
.cast { position: fixed; inset: 0; z-index: 60; overflow: hidden; touch-action: none; animation: castIn .5s ease both; }
.cast canvas { position: absolute; inset: 0; }
.cast.out { animation: castOut .65s ease forwards; }
@keyframes castIn { from { opacity: 0; } }
@keyframes castOut { to { opacity: 0; } }
.cast-line { position: absolute; left: 24px; right: 24px; top: 74%; text-align: center; font: 700 17px/1.7 var(--serif); letter-spacing: 3px; color: #F6E6CC; text-shadow: 0 2px 12px #000; opacity: 0; }
.cast-line.in { animation: castLine 1.1s ease both; }
@keyframes castLine { 0% { opacity: 0; filter: blur(6px); letter-spacing: 9px; } 30%, 80% { opacity: 1; filter: none; letter-spacing: 3px; } 100% { opacity: .85; } }
.cast-hongluan .cast-line { color: #FFE1E9; }
.cast-woxing .cast-line { color: #E6EEFF; }
.uv { opacity: 0; transform: translateY(12px); filter: blur(5px); }
.uv.uv-in { opacity: 1; transform: none; filter: none; transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1), filter .9s ease; }
.uv .uv-p { opacity: 0; }
.uv.uv-in .uv-p { animation: uvInk .9s ease var(--uvd, 0s) both; }
@keyframes uvInk { from { opacity: 0; filter: blur(6px); transform: translateY(4px); } to { opacity: 1; filter: none; transform: none; } }
.say .words .tw { opacity: 0; transition: opacity .28s ease, text-shadow .6s ease; text-shadow: 0 0 10px rgba(255,214,150,.9); }
.say .words .tw.on { opacity: 1; text-shadow: none; }
/* 签：号数先出，等级章砸下来，签题，四句诗一句一句 */
.stick-card.uv-in .stick-no { animation: uvInk .7s ease both; }
.stick-card.uv-in .stamp { animation: stampSlam .5s cubic-bezier(.3,1.6,.5,1) .7s both; }
.stick-card.uv-in .stick-title { animation: uvInk .9s ease 1.2s both; }
.stick-card.uv-in .poem span { animation: uvInk .9s ease both; }
.stick-card.uv-in .poem span:nth-child(1) { animation-delay: 1.7s; } .stick-card.uv-in .poem span:nth-child(2) { animation-delay: 2.3s; }
.stick-card.uv-in .poem span:nth-child(3) { animation-delay: 2.9s; } .stick-card.uv-in .poem span:nth-child(4) { animation-delay: 3.5s; }
@keyframes stampSlam { 0% { opacity: 0; transform: scale(2.6) rotate(-14deg); } 70% { opacity: 1; transform: scale(.92) rotate(-8deg); } 100% { opacity: 1; } }
/* 红鸾合牌 */
.spread.merge .slot { animation: mergeGlow 1.6s ease both; }
@keyframes mergeGlow { 50% { filter: drop-shadow(0 0 18px rgba(255,140,175,.9)) brightness(1.25); transform: translateY(-6px); } }
.merge-line { text-align: center; margin: 14px 0 4px; font: 700 15px var(--serif); letter-spacing: 3px; color: #FFB3C4; animation: castLine 1.6s ease both; }
/* 今日一签：先封着，点开才写出来 */
.daily-seal { display: block; width: 100%; margin: 8px 0 4px; padding: 14px 12px; border-radius: 10px; border: 1px dashed rgba(255,214,150,.5); background: rgba(255,214,150,.06); font: 700 15px var(--serif); letter-spacing: 3px; color: var(--gold2); animation: sealPulse 2.4s ease-in-out infinite; }
@keyframes sealPulse { 50% { box-shadow: 0 0 18px rgba(255,200,120,.3); } }
.daily-one.ink { animation: uvInk 1.2s ease both; }
@media (prefers-reduced-motion: reduce) { .stick-card.uv-in * { animation-delay: 0s !important; } }
