*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
:root{
  --gold:#d4af6a;--gold-light:#f0d9a8;--red:#8c1f1f;--red-deep:#5a1010;
  --ink:#1a1512;--cream:#f5ecd9;--paper:#f3e8cf;
}
html,body{height:100%;overflow:hidden;background:#0d0a08;
  font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",serif;color:var(--cream)}
#app{position:relative;width:100%;height:100%;max-width:480px;margin:0 auto;overflow:hidden;
  box-shadow:0 0 60px rgba(0,0,0,.8)}
.scene{position:absolute;inset:0;display:none;flex-direction:column;overflow:hidden;background:#1a120c}
.scene.active{display:flex;animation:fadeIn .45s ease}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.scene-bg{position:absolute;inset:0;background-size:cover;background-position:center 30%;
  /* 2026-11-28 何先生「神像要清晰可见」：去掉 breath 持续缩放与 scale——非整数缩放会让浏览器
     每帧重采样，殿内神像发虚。静帧 + cover 原始映射最锐利 */
  transform:none;background-color:#1a120c}
.js-on .scene-bg{opacity:0;transition:opacity .75s ease}
.js-on .scene-bg.bg-ready{opacity:1}
@keyframes breath{from{transform:scale(1.02)}to{transform:scale(1.08)}}
.scene-veil{position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,10,5,.45) 0%,rgba(20,10,5,.18) 35%,rgba(20,10,5,.62) 100%)}
.scene-veil-light{background:linear-gradient(180deg,rgba(20,10,5,.55) 0%,rgba(20,10,5,.05) 40%,rgba(20,10,5,.75) 100%)}
.scene-veil-heavy{background:linear-gradient(180deg,rgba(15,8,5,.52) 0%,rgba(15,8,5,.44) 100%)}
/* 元辰殿专用：底遮罩降到 .48（原 .75），延展区不再压成暗带 */
.scene-veil-shrine{background:linear-gradient(180deg,rgba(20,10,5,.55) 0%,rgba(20,10,5,.05) 40%,rgba(20,10,5,.46) 100%)}
/* F02：结果页轻质遮罩（底部不再压黑，保证底部 1/3 亮度 ≥45） */
.scene-veil-soft{background:linear-gradient(180deg,rgba(20,10,5,.40) 0%,rgba(20,10,5,.08) 38%,rgba(20,10,5,.30) 100%)}

/* 山门横幅：完整展示上下双檐与两侧翼角，绝不裁切 */
/* 山门/档案页背景：改用预模糊小图（gate-blur.jpg 12KB），弃用实时 filter
   避免移动端 Chrome 实时 blur 大图导致 GPU 合成黑屏 */
.scene-bg-blur{background-size:cover;background-position:center 44%;
  transform:none}
.gate-banner{position:absolute;left:0;right:0;top:0;z-index:1;line-height:0;pointer-events:none}
.gate-banner picture{display:block;width:100%}
.gate-banner img{width:100%;height:auto;display:block}
.gate-banner{position:absolute;left:0;right:0;top:0;z-index:1;line-height:0;pointer-events:none}
.gate-banner img{width:100%;height:auto;display:block}
.gate-banner::after{content:"";position:absolute;left:0;right:0;bottom:0;height:86px;display:block;
  background:linear-gradient(180deg,rgba(13,7,3,0),rgba(13,7,3,.55) 55%,rgba(12,6,3,.92))}
.enter-veil{position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(180deg,rgba(16,9,4,.18) 0%,rgba(16,9,4,.04) 18%,rgba(15,8,4,.55) 30%,
    rgba(13,7,3,.88) 40%,rgba(11,6,3,.95) 54%,rgba(10,6,3,.98) 100%)}

/* 入场页 */
.enter-content{position:relative;z-index:3;display:flex;flex-direction:column;align-items:center;
  justify-content:flex-end;height:100%;padding:0 32px 74px;text-align:center}
.brand-line{font-size:13px;letter-spacing:.7em;color:var(--gold-light);margin-bottom:22px;
  text-shadow:0 2px 8px #000}
.year-badge{font-size:12px;letter-spacing:.25em;color:var(--cream);border:1px solid rgba(212,175,106,.55);
  padding:7px 18px;border-radius:2px;margin-bottom:30px;background:rgba(30,15,8,.35)}
.enter-title{font-size:38px;line-height:1.5;letter-spacing:.12em;font-weight:500;color:#fff;
  text-shadow:0 3px 18px rgba(0,0,0,.9),0 0 30px rgba(212,175,106,.35);margin-bottom:18px}
.enter-sub{font-size:13px;letter-spacing:.18em;color:var(--gold-light);opacity:.9;margin-bottom:48px;
  text-shadow:0 2px 6px #000}
.btn-primary{background:linear-gradient(180deg,#b8342a,#8c1f1f);color:#fff5e0;border:1px solid #e0b97a;
  border-radius:4px;padding:11px 26px;font-size:14px;letter-spacing:.22em;cursor:pointer;
  box-shadow:0 4px 18px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.2);
  transition:transform .15s,filter .15s;font-family:inherit}
.btn-primary:active{transform:scale(.97);filter:brightness(1.1)}
.enter-btn{min-width:176px;padding:12px 28px;font-size:15px}
.enter-foot{margin-top:26px;font-size:11px;letter-spacing:.3em;color:rgba(245,236,217,.6)}
.image-disclaimer{position:absolute;bottom:16px;left:0;right:0;text-align:center;font-size:10px;
  color:rgba(245,236,217,.42);letter-spacing:.06em;z-index:4}

/* 顶栏 */
.topbar{position:relative;z-index:5;display:flex;align-items:center;justify-content:space-between;
  height:56px;padding:0 14px;background:linear-gradient(180deg,rgba(20,10,5,.75),rgba(20,10,5,0));flex-shrink:0}
.icon-btn{width:36px;height:36px;border:1px solid rgba(212,175,106,.4);border-radius:50%;
  background:rgba(30,15,8,.4);color:var(--gold-light);font-size:20px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;font-family:inherit}
.icon-btn.placeholder{visibility:hidden}
.icon-btn.muted{opacity:.4}
.topbar-title{font-size:15px;letter-spacing:.18em;color:var(--gold-light);text-shadow:0 2px 6px #000}

/* 主殿 */
.hall-content{position:relative;z-index:2;flex:1;display:flex;flex-direction:column;align-items:center;
  justify-content:space-between;padding:6px 24px 24px;text-align:center}
.hall-head{width:100%;flex-shrink:0}
.hall-foot{width:100%;flex-shrink:0;display:flex;flex-direction:column;align-items:center}
.hall-tag{font-size:11px;letter-spacing:.35em;color:var(--gold-light);border:1px solid rgba(212,175,106,.5);
  padding:5px 14px;background:rgba(30,15,8,.4);margin-bottom:10px;display:inline-block}
.hall-hint{font-size:12px;letter-spacing:.15em;color:rgba(245,236,217,.85);text-shadow:0 2px 6px #000}
.hall-title{font-size:30px;letter-spacing:.25em;font-weight:500;color:#fff;
  text-shadow:0 3px 14px #000,0 0 24px rgba(212,175,106,.4);margin-bottom:12px}
.hall-desc{font-size:13px;line-height:2;color:var(--cream);text-shadow:0 2px 6px #000;margin-bottom:24px}
/* 蒲团跪拜人像：默认隐藏（大视觉看殿堂神像），点「跪拜」淡入；两帧（直跪/深叩）交叉淡入 */
.kneel-figure{position:absolute;left:var(--kx,50%);bottom:150px;transform:translateX(-50%);
  width:var(--kw,min(42vw,190px));z-index:3;pointer-events:none;
  opacity:0;transition:opacity .55s ease}
.scene.kneel-on .kneel-figure{opacity:1}
.kneel-figure img{width:100%;height:auto;display:block;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.55))}
.kneel-figure .kneel-bow{position:absolute;left:-5%;bottom:0;width:110%;opacity:0;
  transition:opacity .42s cubic-bezier(.4,0,.3,1)}
.scene.bowing .kneel-figure .kneel-bow{opacity:1}
.scene.bowing .kneel-figure .kneel-idle{opacity:0;transition:opacity .42s cubic-bezier(.4,0,.3,1)}
/* 人像对轴+比例校正（视口模拟实测，神像面相必须完整露出）：
   混元老君44-48%/三清中尊42-50%/财神42-46%/文昌35-40%/药王45-47%，真武18-20%维持默认 */
#scene-hunyuan{--kw:min(19vw,76px)}
#scene-sanqing{--kw:min(18vw,72px)}
#scene-caishen{--kw:min(21vw,84px);--kx:50%}
#scene-wenchang{--kw:min(23vw,92px)}
#scene-yaowang{--kw:min(19vw,76px)}
#scene-zhenwu{--kw:min(19vw,76px)}
/* 礼拜形象选择 */
.gender-row{display:flex;gap:18px;justify-content:center;margin:auto 0}
.gender-card{width:140px;padding:18px 12px 14px;border-radius:12px;cursor:pointer;
  background:rgba(28,14,7,.62);border:1px solid rgba(212,175,106,.35);
  display:flex;flex-direction:column;align-items:center;gap:10px;
  transition:transform .15s,border-color .15s;font-family:inherit}
.gender-card:active{transform:scale(.96);border-color:var(--gold)}
.gender-card img{width:74px;height:auto;display:block;border-radius:8px}
.gender-card span{font-size:15px;letter-spacing:.32em;color:var(--gold-light)}
/* 各殿本色：不同色系，不套一套模板 */
.theme-hunyuan{--gold:#e0b97a;--gold-light:#ffe6a8}   /* 2026-12-02 何先生令：弃蓝紫，改赤金，与殿内红金统一 */
.theme-bagua{--gold:#e0b97a;--gold-light:#ffe6a8}     /* F10：川西晨光·金（弃紫） */
.theme-sanqing{--gold:#e8c464;--gold-light:#ffe9b0}   /* 赤金辉煌 */
.theme-hunyuan .btn-primary{background:linear-gradient(180deg,#c8922a,#9c6c14);border-color:#ffe9b0}
.theme-bagua .btn-primary{background:linear-gradient(180deg,#a8272e,#7c1a20);border-color:#e0b97a}
.theme-sanqing .btn-primary{background:linear-gradient(180deg,#c8922a,#9c6c14);border-color:#ffe9b0}
.theme-caishen{--gold:#e8b84a;--gold-light:#ffe3a0}   /* 聚宝金 */
.theme-wenchang{--gold:#8fbf9a;--gold-light:#c8e6cd}  /* 书卷青 */
.theme-yaowang{--gold:#b8b072;--gold-light:#e0dcae}   /* 草木苍 */
.theme-zhenwu{--gold:#7a9cc6;--gold-light:#b8d0e8}    /* 玄水蓝 */
.theme-caishen .btn-primary{background:linear-gradient(180deg,#c4922e,#9c6c14);border-color:#ffe3a0}
.theme-wenchang .btn-primary{background:linear-gradient(180deg,#4a7c59,#2e5a3c);border-color:#c8e6cd}
.theme-yaowang .btn-primary{background:linear-gradient(180deg,#6b7a4a,#4a5a30);border-color:#e0dcae}
.theme-zhenwu .btn-primary{background:linear-gradient(180deg,#2e4a6e,#1c2f4a);border-color:#b8d0e8}
.omen-card{margin:10px 0 14px;padding:14px 18px;border-radius:10px;width:100%;max-width:320px;
  background:rgba(20,12,8,.42);border:1px solid rgba(212,175,106,.55);text-align:center;
  backdrop-filter:blur(2px);animation:fadeIn .5s ease}
.omen-title{font-size:13px;letter-spacing:.32em;color:var(--gold-light);margin-bottom:8px}
.omen-text{font-size:15px;line-height:1.9;color:#fff;letter-spacing:.12em}
.hall-note{margin-top:14px;font-size:10px;letter-spacing:.22em;color:rgba(245,236,217,.55)}
/* 殿外上香：双手持香→点燃→插入香炉（F03：按 F04 新院景实测炉口重标 49.7%/57%） */
.incense-area{position:relative;width:220px;height:200px;margin-bottom:6px;flex-shrink:0}
.incense-visual{position:absolute;left:52.8%;top:66.4%;width:0;height:0;z-index:3;pointer-events:none}
/* F03：炉口灰面遮挡片——盖住香根，让香“插进灰里”而不是浮在灰面上 */
.censer-mouth{position:absolute;left:-78px;top:-4px;width:156px;height:22px;border-radius:10px;
  background:linear-gradient(180deg,#4e463c 0%,#3a332a 45%,#2b251e 100%);
  box-shadow:inset 0 2px 5px rgba(0,0,0,.45),inset 0 -2px 4px rgba(205,180,130,.28);
  opacity:0;transition:opacity .5s;z-index:4;pointer-events:none}
.inserting .censer-mouth,.inserted .censer-mouth,.lit .censer-mouth{opacity:.88}
.hands{position:absolute;width:200px;opacity:0;transition:opacity .65s ease,transform .9s cubic-bezier(.2,.9,.3,1)}
.hands img{width:100%;display:block}
/* 2026-11-28：取消第二个手持动作（插入帧），只保留「持香→香头燃起→香入炉」三步 */
.hands-insert{display:none!important}
/* 2026-11-28：原图中间香顶到画布边被裁（顶 0.0%，左右 1.4%/2.0%），顶部 2.2% 渐隐让三根齐平 */
.hands-hold img{-webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.35) 1.2%,rgba(0,0,0,1) 2.6%);
  mask-image:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.35) 1.2%,rgba(0,0,0,1) 2.6%)}
/* 持香帧：香头（帧50.8%,0.1%）抬至炉口上方60px，双臂自画面底部进入 */
.hands-hold{left:-102px;top:-178px;transform:translateY(46px)}
.holding .hands-hold{opacity:1;transform:translateY(0)}
/* 插入帧（镜像后香头在帧8%,96%）对准炉口 */
.hands-insert{left:-26px;top:-483px;width:330px;transform:translateY(30px)}
.inserting .hands-hold{opacity:0;transform:translateY(-14px) scale(.98);transition-duration:.45s}
.inserting .hands-insert{opacity:1;transform:translateY(0)}
.inserted .hands-insert{opacity:0;transform:translateY(16px) scale(.97);transition:opacity .6s ease,transform .6s ease}
/* 2026-11-28：插入完成后彻底隐藏持香帧（否则整张“手举长香”图会残留在画面上，看着像香从天上垂下） */
.inserted .hands-insert,.lit .hands-insert{opacity:0!important;visibility:hidden}
/* 香头火星 */
.tip-glow{position:absolute;left:0;top:0;width:100%;height:100%;border-radius:0;margin:0;
  /* 2026-11-28：三点按 hands-hold-v4 实测香头位置对齐（48.7%/51.0%/54.0%，y 8.3%） */
  background:
    radial-gradient(circle 5px at 48.7% 8.0%, rgba(255,190,110,1) 0%, rgba(255,120,40,.8) 40%, rgba(255,110,30,0) 72%),
    radial-gradient(circle 5px at 51.0% 8.0%, rgba(255,190,110,1) 0%, rgba(255,120,40,.8) 40%, rgba(255,110,30,0) 72%),
    radial-gradient(circle 5px at 54.0% 8.0%, rgba(255,190,110,1) 0%, rgba(255,120,40,.8) 40%, rgba(255,110,30,0) 72%);
  filter:drop-shadow(0 0 5px rgba(255,140,50,.85));opacity:0;transition:opacity .5s}
.hands-insert .tip-glow{top:96%;left:8%;margin-top:-7px}
.tips-lit .tip-glow{opacity:1;animation:emberFlicker 1.1s ease-in-out infinite alternate}
/* 炉中三炷香（插入后立于香灰）——F03：线上实测炉高≈96px，香高=1.0×炉高，三根略错开不等距 */
.joss-stage{position:absolute;left:0;top:0;width:0;height:0}
.joss{position:absolute;top:-116px;width:1.3px;height:116px;opacity:0;
  transform-origin:bottom center;transform:translateX(-50%) translateY(14px) scaleY(.78);
  transition:opacity .55s ease,transform .75s cubic-bezier(.2,1.35,.4,1)}
.joss[data-i="0"]{left:-7px;rotate:-2deg}
.joss[data-i="1"]{left:0}
.joss[data-i="2"]{left:7px;rotate:2deg}
.joss.lit{opacity:1;transform:translateX(-50%) translateY(0) scaleY(1)}
.joss-body{position:absolute;inset:0;background:linear-gradient(180deg,#d04a52 0%,#c03540 14%,#a8242e 58%,#7c1520 100%);
  border-radius:1.5px;box-shadow:1px 0 2px rgba(0,0,0,.5),-1px 0 1px rgba(255,180,120,.12)}
.joss-body .ash{position:absolute;top:-2px;left:-.3px;width:2.2px;height:3.4px;border-radius:1px;
  background:linear-gradient(180deg,#9a938a,#6e6962);opacity:0;transition:opacity 1.2s}
.joss.lit .ash{opacity:.92}
.joss-body .ember{position:absolute;top:-3.5px;left:-1px;width:3.4px;height:4.2px;border-radius:50%;
  background:radial-gradient(circle,#ffd08a 0%,#ff7a2a 60%,rgba(255,90,20,0) 100%);opacity:0;
  box-shadow:0 0 6px #ff6a20,0 0 12px rgba(255,110,30,.85)}
.joss.lit .ember{opacity:1;animation:emberFlicker 1.1s ease-in-out infinite alternate}
@keyframes emberFlicker{from{opacity:.6;transform:scale(.85)}to{opacity:1;transform:scale(1.15)}}
/* 青烟：6 缕高烟，飘移、扩散、消散 */
.smoke{position:absolute;bottom:116px;left:-9px;width:26px;height:126px;opacity:0;transition:opacity 1.4s}
.joss.lit .smoke{opacity:1}
.smoke i{position:absolute;bottom:0;left:7px;width:10px;height:92px;border-radius:50%;
  background:linear-gradient(180deg,rgba(78,84,80,0),rgba(78,84,80,.6) 35%,rgba(110,116,112,.38) 70%,rgba(110,116,112,0));
  filter:blur(4px);opacity:0}
.joss.lit .smoke i{animation:smokeWisp 5.2s ease-in-out infinite}
.smoke i:nth-child(1){animation-delay:0s}
.smoke i:nth-child(2){animation-delay:1.1s;height:92px}
.smoke i:nth-child(3){animation-delay:2.2s;height:68px;left:3px}
.smoke i:nth-child(4){animation-delay:3.2s;height:84px;left:13px}
.smoke i:nth-child(5){animation-delay:4.1s;height:60px;left:6px;width:6px}
.smoke i:nth-child(6){animation-delay:2.7s;height:98px;left:10px;width:8px}
@keyframes smokeWisp{
  0%{transform:translate(0,8px) scale(.35) rotate(0deg);opacity:0}
  18%{opacity:.95}
  45%{transform:translate(-10px,-34px) scale(1) rotate(6deg);opacity:.8}
  72%{transform:translate(8px,-62px) scale(1.55) rotate(-8deg);opacity:.5}
  100%{transform:translate(-6px,-90px) scale(2.4) rotate(4deg);opacity:0}}
/* 金光祝祷文案（炉口上方） */
.incense-blessing{position:absolute;top:-156px;left:-170px;width:340px;z-index:3;text-align:center;
  font-size:17px;letter-spacing:.32em;font-weight:500;color:#ffe6a8;
  text-shadow:0 0 12px rgba(255,200,90,.85),0 0 28px rgba(255,160,50,.5),0 2px 6px rgba(60,20,0,.65);
  opacity:0;transform:translateY(16px) scale(.92);pointer-events:none}
.incense-visual.lit .incense-blessing{animation:blessingRise 1.4s cubic-bezier(.2,.8,.3,1) .35s both}
@keyframes blessingRise{
  0%{opacity:0;transform:translateY(16px) scale(.92)}
  60%{opacity:1;transform:translateY(-4px) scale(1.02)}
  100%{opacity:1;transform:translateY(0) scale(1)}}
/* 香炉口金色光晕扩散 */
.incense-glow{position:absolute;top:-64px;left:-64px;width:128px;height:128px;z-index:1;
  border-radius:50%;pointer-events:none;opacity:0;
  background:radial-gradient(circle,rgba(255,190,80,.5) 0%,rgba(255,150,40,.22) 42%,rgba(255,150,40,0) 70%)}
.incense-visual.lit .incense-glow{animation:glowPulse 2.2s ease-out .25s both}
@keyframes glowPulse{
  0%{opacity:0;transform:scale(.55)}
  35%{opacity:1;transform:scale(1.15)}
  100%{opacity:.55;transform:scale(1.35)}}
/* 三炷香的烟与余烬（延续自香炉版） */
.wish-count{font-size:11px;letter-spacing:.15em;color:rgba(245,236,217,.7);margin-top:14px}
.wish-count b{color:var(--gold-light);font-size:14px}

/* 殿内：太岁殿叩拜 —— 蒲团 + 信众俯身，面对神像，磬声只闻不见 */
.shrine-content{position:relative;z-index:2;flex:1;display:flex;flex-direction:column;align-items:center;
  justify-content:flex-end;padding:0 20px 18px;text-align:center}
.shrine-tag{font-size:11px;letter-spacing:.35em;color:var(--gold-light);border:1px solid rgba(212,175,106,.5);
  padding:5px 14px;background:rgba(30,15,8,.5);margin-bottom:8px}
.shrine-hint{font-size:12px;letter-spacing:.15em;color:rgba(245,236,217,.85);text-shadow:0 2px 6px #000;margin-bottom:auto}
/* 写实场景：信众与蒲团已合成在背景图中；叩首用「直跪↔叩首」两帧交叉淡入真实表达 */
.shrine-stage{position:relative;width:1px;height:0;margin:0}
.shrine-bg{background-size:cover;background-position:center 42%;transform:none}
.shrine-bg-bow{opacity:0;transition:opacity .42s cubic-bezier(.4,0,.3,1)}
/* 淡入机制(.bg-ready 0,2,0) 与双帧切换的优先级仲裁：bow 帧平时压回 0，bowing 时才亮起 */
/* 太岁殿三层背景：空殿(base 默认) → 直跪帧(idle, kneel-on 淡入) → 叩首帧(bow, bowing) */
#scene-shrine .shrine-bg-idle{opacity:0;transition:opacity .5s ease}
#scene-shrine.kneel-on .shrine-bg-idle{opacity:1}
#scene-shrine .shrine-bg-bow{opacity:0}
#scene-shrine.bowing .shrine-bg-bow{opacity:1}
#scene-shrine.bowing .shrine-bg-idle{opacity:0}   /* 叩首时必须隐藏直跪帧，否则两帧叠加 */
/* F01：跪拜帧改透明人像叠加（底图已有牌位墙与蒲团），对齐底图蒲团位置 */
#scene-shrine .shrine-bg-idle{background-size:auto 18%;background-position:center calc(100% - 96px);
  background-repeat:no-repeat;transform:none;background-color:transparent!important}
/* 拜帧素材是近景俯拍（蒲团约占图宽 95%，跪帧约 65%）——按蒲团同尺度折算，避免叩首时人像突然放大 */
#scene-shrine .shrine-bg-bow{background-size:auto 12.5%;background-position:center calc(100% - 96px);
  background-repeat:no-repeat;transform:none;background-color:transparent!important}
/* 人像层必须透明底，否则 .scene-bg 的 #1a120c 底色会��住底图 */
#scene-shrine.bowing .shrine-bg{transform:none;transition:none}
.shrine-bg{transition:transform .55s cubic-bezier(.4,0,.3,1)}
.kowtow-words{display:flex;flex-direction:column;align-items:center;position:relative;z-index:5;width:100%;
  opacity:.62;transition:opacity .35s ease;
  background:linear-gradient(180deg,transparent,rgba(12,8,5,.16) 40%,rgba(12,8,5,.22));border-radius:12px;padding:4px 20px 8px}
/* 各殿叩首俯身动效：内容整体下沉复位，模拟俯身叩首再起身 */
/* bowDip 已停用：叩首只切换人像两帧，页面元素不动 */
/* 2026-11-28：叩首时按钮与文字不做任何缩放（何先生要求） */
.scene.bowing .hall-content{animation:none}
.scene.bowing .scene-veil{opacity:.85;transition:opacity .4s}
.kowtow-count{font-size:17px;letter-spacing:.32em;color:#fff;margin:2px 0 10px;
  text-shadow:0 2px 12px rgba(212,175,106,.5);opacity:0;transition:opacity .5s}
.scene.kneel-on .kowtow-count{opacity:1}
.kowtow-btn{padding:9px 20px;font-size:13px}
.kowtow-skip{margin-top:8px;padding:6px 16px;font-size:11px;opacity:.72}
/* 殿内双动作按钮行：上香 / 跪拜（移动端收紧，让位给殿堂画面） */
.hall-actions{display:flex;gap:10px;width:100%;justify-content:center;margin-bottom:2px}
.hall-actions .btn-primary{flex:1;max-width:140px;padding:9px 6px;font-size:13px;letter-spacing:.12em}
/* 前往下一处：次级导航按钮，轻量不抢视觉 */
.btn-next{padding:8px 22px;font-size:12px;letter-spacing:.18em}
/* 上香仪式浮层：全视口仪式层，持香→点燃→插入→三炷立炉→青烟金文 */
.incense-overlay{position:absolute;inset:0;z-index:60;opacity:0;pointer-events:none;transition:opacity .45s ease}
.incense-overlay.on{opacity:1;pointer-events:auto}
.io-bg{z-index:0}
.io-veil{position:absolute;inset:0;z-index:1;background:radial-gradient(ellipse at 50% 42%,rgba(26,14,5,.55) 0%,rgba(6,3,1,.92) 100%)}
.io-head{position:absolute;top:58px;left:0;right:0;z-index:4;text-align:center;pointer-events:none}
.io-title{font-size:20px;letter-spacing:.42em;color:#ffe6a8;
  text-shadow:0 0 18px rgba(255,190,80,.55),0 2px 10px rgba(0,0,0,.7);margin-bottom:6px}
.io-sub{font-size:11px;letter-spacing:.28em;color:rgba(245,236,217,.72);min-height:16px}
.incense-overlay .io-visual{z-index:3}
.io-close{position:absolute;left:50%;bottom:46px;transform:translateX(-50%);z-index:5;
  padding:8px 26px;font-size:12px;letter-spacing:.3em}
.shrine-note{font-size:11px;letter-spacing:.1em;color:rgba(245,236,217,.55);margin-top:14px}
.hide{display:none !important}
.kowtow-btn.done{background:linear-gradient(180deg,#c99a4a,#9c7430);border-color:#f0d9a8}

/* 底部导航 */
.bottom-nav{position:absolute;z-index:6;bottom:0;left:0;right:0;height:70px;
  display:flex;align-items:center;justify-content:space-around;
  background:linear-gradient(180deg,rgba(20,10,5,0),rgba(20,10,5,.92) 40%);
  border-top:1px solid rgba(212,175,106,.2);padding-bottom:env(safe-area-inset-bottom)}
.nav-item{flex:1;background:none;border:none;color:rgba(245,236,217,.55);font-size:12px;
  display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer;font-family:inherit}
.nav-item.active{color:var(--gold-light)}
.nav-ico{font-size:19px;line-height:1}

/* 表单面板 */
.form-panel{position:relative;z-index:2;flex:1;overflow-y:auto;padding:22px 24px 40px;
  background:linear-gradient(180deg,rgba(20,10,5,.08),rgba(20,10,5,.26))}
.form-panel::-webkit-scrollbar{display:none}
.panel-title{font-size:22px;letter-spacing:.2em;color:#fff;text-align:center;margin-bottom:6px;
  text-shadow:0 2px 10px #000}
.panel-sub{font-size:12px;letter-spacing:.12em;color:var(--gold-light);text-align:center;margin-bottom:26px;opacity:.85}
.field-label{display:block;font-size:12px;letter-spacing:.15em;color:var(--gold-light);margin:18px 0 9px}
.chip-row{display:flex;flex-wrap:wrap;gap:9px}
.chip{padding:8px 16px;font-size:13px;border:1px solid rgba(212,175,106,.35);border-radius:20px;
  background:rgba(30,15,8,.5);color:var(--cream);cursor:pointer;font-family:inherit}
.chip.active{background:linear-gradient(180deg,#b8342a,#8c1f1f);border-color:#e0b97a;color:#fff5e0}
.field-input{width:100%;padding:12px 14px;font-size:14px;border:1px solid rgba(212,175,106,.35);
  border-radius:4px;background:rgba(30,15,8,.55);color:#fff5e0;font-family:inherit;outline:none}
.field-input:focus{border-color:var(--gold)}
.field-input::placeholder{color:rgba(245,236,217,.35)}
.field-area{min-height:88px;resize:none;line-height:1.7}
.form-actions{display:flex;gap:12px;margin-top:26px}
.form-actions .btn-primary,.form-actions .btn-ghost{flex:1;padding:11px 8px;font-size:13px;letter-spacing:.15em}
.btn-ghost{background:rgba(30,15,8,.5);color:var(--gold-light);border:1px solid rgba(212,175,106,.4);
  border-radius:4px;padding:11px 18px;font-size:13px;cursor:pointer;font-family:inherit}
.compliance-note{font-size:10px;line-height:1.7;color:rgba(245,236,217,.42);text-align:center;
  margin-top:22px;padding:0 8px}

/* 凭证 */
.receipt-card{position:relative;z-index:2;margin:auto 24px;background:linear-gradient(160deg,#f7efdc,#e8d9b8);
  color:#3a2a15;border-radius:6px;padding:34px 26px 26px;box-shadow:0 12px 40px rgba(0,0,0,.6);
  border:1px solid #c9a86a;max-height:92%;overflow-y:auto}
.receipt-seal{position:absolute;top:24px;right:24px;width:48px;height:48px;border:2px solid #a32d2d;
  color:#a32d2d;font-size:15px;line-height:21px;text-align:center;transform:rotate(8deg);
  border-radius:4px;opacity:.8;padding-top:3px;font-weight:500}
.receipt-title{font-size:21px;letter-spacing:.3em;text-align:center;color:#7a1f1f;margin-bottom:8px}
.receipt-line{font-size:12px;letter-spacing:.15em;text-align:center;color:#7a6240;margin-bottom:16px}
.receipt-divider{text-align:center;color:#b89860;letter-spacing:.5em;font-size:11px;margin:14px 0}
.receipt-row{display:flex;justify-content:space-between;gap:16px;font-size:13px;padding:8px 0;
  border-bottom:1px dashed rgba(122,98,64,.3)}
.receipt-row span{color:#8a7550;flex-shrink:0}
.receipt-row b{text-align:right;font-weight:500;word-break:break-all;color:#3a2a15}
.receipt-foot{font-size:11px;text-align:center;color:#8a7550;margin:18px 0}
.receipt-btn{width:100%;margin-top:10px;padding:12px}

/* 打卦 */
.gua-result{margin-top:24px;text-align:center;padding:20px;background:rgba(30,15,8,.45);
  border:1px solid rgba(212,175,106,.25);border-radius:6px}
.gua-cups{display:flex;justify-content:center;gap:24px;margin-bottom:14px}
.cup{font-size:40px;color:var(--gold-light);display:inline-block;transition:transform .3s}
.cup.shake{animation:shake .5s ease-in-out 3}
@keyframes shake{0%,100%{transform:rotate(0)}25%{transform:rotate(-25deg) translateY(-8px)}
  75%{transform:rotate(25deg) translateY(-8px)}}
.gua-hint{font-size:13px;color:var(--cream);letter-spacing:.1em;line-height:1.8}
.gua-result.sheng .gua-hint{color:#f5d78a}
.divine-answer{display:none;margin-top:16px;padding:16px;background:rgba(30,15,8,.5);
  border-left:3px solid var(--gold);border-radius:3px;font-size:13px;line-height:2;color:#f0e4c8}
.divine-answer.show{display:block;animation:fadeIn .4s}

/* 抽签 */
.lot-tube{position:relative;display:flex;justify-content:center;align-items:flex-end;gap:6px;height:132px;margin:24px 0 6px}
/* F16：签筒要有筒身——直筒铜木签筒罩住签脚，签从筒口探出（此前只有 5 根签悬空） */
.lot-tube::after{content:"";position:absolute;left:50%;bottom:0;transform:translateX(-50%);
  width:88px;height:66px;z-index:2;pointer-events:none;
  background:linear-gradient(180deg,#7a5124 0%,#5d3d1c 30%,#3f2812 72%,#2c1c0c 100%);
  border-radius:14px 14px 10px 10px;
  border-top:2px solid rgba(232,190,120,.55);
  box-shadow:0 8px 16px rgba(0,0,0,.45),inset 0 -10px 14px rgba(0,0,0,.4),inset 0 7px 10px rgba(0,0,0,.3)}
.lot-stick{width:10px;height:110px;background:linear-gradient(180deg,#c9a86a,#8a6a3a);
  border-radius:5px 5px 2px 2px;box-shadow:0 2px 6px rgba(0,0,0,.4);
  color:#5a3a18;font-size:9px;writing-mode:vertical-rl;text-align:center;padding-top:8px}
.lot-tube.rolling .lot-stick{animation:lotRoll .6s ease-in-out infinite alternate}
.lot-tube.rolling .lot-stick:nth-child(2n){animation-delay:.15s}
@keyframes lotRoll{from{transform:translateY(0) rotate(-6deg)}to{transform:translateY(-18px) rotate(6deg)}}
.lot-result{display:none;margin-top:16px;padding:18px;background:linear-gradient(160deg,rgba(247,239,220,.96),rgba(232,217,184,.96));
  color:#3a2a15;border-radius:5px;border:1px solid #c9a86a}
.lot-result.show{display:block;animation:fadeIn .4s}
.lot-grade{font-size:18px;letter-spacing:.2em;color:#8c1f1f;text-align:center;margin-bottom:12px}
.lot-text{font-size:14px;line-height:2;margin-bottom:10px}
.lot-jie{font-size:13px;line-height:1.95;color:#5a3d1e;background:rgba(200,168,106,.14);
  border-left:2px solid #a8241c;padding:9px 12px;border-radius:3px;margin:12px 0 10px}
.lot-jie b{color:#8c1f1f;font-weight:600;letter-spacing:.06em}
.lot-interp{font-size:12px;line-height:1.9;color:#6a5535;padding-top:10px;border-top:1px dashed #b89860}

/* 联动入口 */
.link-bar{display:none;margin-top:18px;padding:16px;background:rgba(30,15,8,.5);
  border:1px solid rgba(212,175,106,.25);border-radius:5px}
.link-bar.show{display:block}
.link-title{font-size:12px;letter-spacing:.15em;color:var(--gold-light);margin-bottom:12px}
.link-chips{display:flex;flex-wrap:wrap;gap:8px}
.link-chip{padding:8px 14px;font-size:12px;border:1px solid rgba(212,175,106,.5);border-radius:3px;
  background:rgba(140,31,31,.4);color:#fff5e0;cursor:pointer;font-family:inherit}
.link-chip:active{background:rgba(140,31,31,.7)}

/* 愿力簿 */
.ledger-list{margin-top:8px}
.ledger-empty{text-align:center;color:rgba(245,236,217,.5);font-size:13px;padding:48px 0;line-height:2}
.ledger-item{background:rgba(28,14,7,.62);border:1px solid rgba(212,175,106,.25);
  border-radius:5px;padding:15px;margin-bottom:12px}
.ledger-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.ledger-cat{font-size:14px;color:var(--gold-light)}
.ledger-date{font-size:11px;color:rgba(245,236,217,.5)}
.ledger-text{font-size:13px;line-height:1.7;color:var(--cream);margin-bottom:10px}
.ledger-foot{display:flex;justify-content:space-between;align-items:center;font-size:11px;
  color:rgba(245,236,217,.55);border-top:1px dashed rgba(212,175,106,.25);padding-top:9px}
.ledger-return{font-size:11px;padding:5px 12px;border:1px solid var(--gold);border-radius:3px;
  background:rgba(140,31,31,.45);color:#fff5e0;cursor:pointer;font-family:inherit}
.ledger-return.done{opacity:.5;border-color:rgba(212,175,106,.3);background:none}

/* 四术联动 */
.art-context{margin:18px 0;padding:14px;background:rgba(140,31,31,.22);
  border:1px solid rgba(212,175,106,.3);border-radius:4px;font-size:13px;line-height:1.9;color:#f0e0bc}
.art-preview{padding:8px 0}
.art-row{display:flex;justify-content:space-between;gap:14px;font-size:13px;padding:10px 0;
  border-bottom:1px dashed rgba(212,175,106,.25)}
.art-row span{color:var(--gold-light);flex-shrink:0}
.art-row b{font-weight:400;text-align:right;color:var(--cream);word-break:break-all}
.art-cta-note{font-size:12px;line-height:1.8;color:rgba(245,236,217,.7);margin-top:20px;
  padding:12px;background:rgba(30,15,8,.4);border-radius:4px}

/* 提示与粒子 */
.toast{position:absolute;z-index:20;left:50%;bottom:392px;transform:translate(-50%,14px);
  background:rgba(28,14,7,.93);border:1px solid rgba(224,186,112,.9);color:#f6e4b8;
  box-shadow:0 6px 24px rgba(0,0,0,.55),0 0 18px rgba(212,175,106,.22);
  padding:12px 22px;border-radius:4px;font-size:13px;letter-spacing:.08em;
  opacity:0;pointer-events:none;transition:opacity .3s,transform .3s;max-width:80%;text-align:center}
.toast.show{opacity:1;transform:translate(-50%,0)}
.particles{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden}
.particle{position:absolute;bottom:-10px;width:4px;height:4px;border-radius:50%;
  background:rgba(255,220,160,.7);box-shadow:0 0 8px rgba(255,200,120,.6);
  animation:floatUp linear infinite}
@keyframes floatUp{0%{transform:translateY(0) translateX(0);opacity:0}
  15%{opacity:.8}100%{transform:translateY(-100vh) translateX(30px);opacity:0}}

/* ===================== V2 · 拜太岁（2026-12-05） ===================== */
/* — 静默链接 — */
.link-quiet{display:inline-block;background:none;border:none;color:rgba(245,236,217,.72);
  font-size:12px;letter-spacing:.18em;padding:10px 12px;cursor:pointer;font-family:inherit}
.link-quiet:active{color:var(--gold-light)}
.enter-content .link-quiet{margin-top:2px}

/* — S2 · 12 属相网格（4×3） — */
.zodiac-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;width:100%;
  max-width:340px;margin:14px auto 6px}
.zodiac-cell{display:flex;flex-direction:column;align-items:center;gap:2px;
  padding:13px 4px 11px;border-radius:10px;cursor:pointer;font-family:inherit;
  background:rgba(30,15,8,.55);border:1px solid rgba(212,175,106,.32)}
.zodiac-cell:active{transform:scale(.95);border-color:var(--gold)}
.zc-animal{font-size:19px;letter-spacing:.12em;color:var(--cream)}
.zc-branch{font-size:10px;letter-spacing:.28em;color:rgba(212,175,106,.72)}

/* — 礼拜形象 mini 行 — */
.gender-row-mini{display:flex;gap:9px;align-items:center;justify-content:center;margin:12px 0 4px}
.gender-row-mini .mini-label{font-size:11px;letter-spacing:.22em;color:rgba(245,236,217,.55)}
.gender-row-mini .chip{padding:6px 14px;font-size:12px}

/* — 出生日期次级入口 — */
.birth-panel{width:100%;max-width:340px;margin:10px auto 0;padding:14px;
  background:rgba(20,10,5,.55);border:1px solid rgba(212,175,106,.28);border-radius:10px}
.birth-row{display:flex;gap:8px}
.birth-input{width:auto;flex:1;padding:9px 8px;font-size:13px;text-align:center}
.birth-result{margin-top:10px;font-size:12px;line-height:1.9;color:rgba(245,236,217,.85)}
.birth-ok b{color:var(--gold-light)}
.birth-warn{color:#f0c98a}

/* — S3 · 结果页 — */
.result-content{justify-content:center;padding-top:0;text-align:center;position:relative}
/* F02：属相徽记（地支大字，视觉锚） */
.result-badge{position:absolute;top:50%;left:50%;transform:translate(-50%,-58%);
  font-size:210px;line-height:1;font-weight:600;color:rgba(212,175,106,.10);
  pointer-events:none;z-index:0;letter-spacing:.02em}
.result-content>*:not(.result-badge){position:relative;z-index:1}
.result-big{font-size:30px;letter-spacing:.18em;color:#ffe6a8;margin:18px 0 14px;
  text-shadow:0 0 22px rgba(255,190,80,.4),0 2px 12px rgba(0,0,0,.6)}
.result-copy{font-size:13.5px;line-height:2.05;color:rgba(245,236,217,.88);
  max-width:320px;margin:0 auto 12px;letter-spacing:.06em}
.result-disclaimer{font-size:11px;letter-spacing:.22em;color:rgba(212,175,106,.75);margin-bottom:14px}
.result-taisui{font-size:13px;letter-spacing:.22em;color:var(--gold-light);
  padding:11px 18px;margin:0 auto 22px;max-width:320px;
  border-top:1px solid rgba(212,175,106,.3);border-bottom:1px solid rgba(212,175,106,.3)}

/* — T04：计数/赐语卡顶部独立图层（人像与按钮/卡片/计数相交=0） — */
.kowtow-words{position:static}                       /* 让计数定位到 hall-content */
.kowtow-words .kowtow-count{position:absolute;top:86px;left:0;right:0;text-align:center;
  margin:0;z-index:5;pointer-events:none}
.omen-card{position:absolute;top:126px;left:50%;transform:translateX(-50%) translateY(70px);
  width:calc(100% - 48px);max-width:320px;z-index:6;margin:0;
  opacity:0;transition:transform .55s cubic-bezier(.2,.7,.3,1),opacity .55s}
.omen-card:not(.hide){opacity:1;transform:translateX(-50%) translateY(0)}   /* 从底部升起 */
.scene.bowing .kowtow-words .kowtow-count{z-index:5}

/* — 底部按钮区压缩（与人像矩形不相交） — */
.hall-actions{margin-bottom:1px}
.hall-actions .btn-primary{padding:7px 4px;font-size:12px}
.hall-next-row{display:flex;gap:8px;justify-content:center;width:100%}
.hall-return-row{display:flex;justify-content:center;width:100%;margin-top:2px}
.btn-next{padding:6px 14px;font-size:11px}
.btn-return{padding:10px 22px;font-size:12.5px;letter-spacing:.2em;opacity:.95;border-color:rgba(212,175,106,.55);background:rgba(28,14,7,.55)}
.hall-note{font-size:10px;line-height:1.5;margin-top:3px}

/* — A7 修复：计数不再被底部导航压行 — */
#scene-hall .hall-content{padding-bottom:96px}
.wish-count{margin-top:10px;margin-bottom:8px}

/* — 元辰殿：缪丙神位（文字牌位，供案偏侧） — */
/* 神位小匾（此处仅存旧样式，实体已由 F23 的 DOM 神位牌承接） */
.taisui-tablet{position:absolute;right:4%;bottom:434px;width:21%;z-index:4;
  padding:4px 5px;border-radius:2px;text-align:center;
  background:linear-gradient(180deg,#7a1a1a,#4d1010);border:1px solid rgba(212,175,106,.75);
  color:#ffe6a8;font-size:8.5px;line-height:1.5;letter-spacing:.08em;
  box-shadow:0 3px 10px rgba(0,0,0,.55);writing-mode:horizontal-tb;
  max-height:none;overflow:visible}

/* — 六十太岁牌位墙（两列各三十，竖牌金字；属相高亮） — */
/* 事实：底图两侧是经柜/小龛，没有六十块金字牌位；牌位由 DOM 两侧竖排叠出（改字零重绘） */
.tablet-wall{position:absolute;left:0;right:0;top:10.5%;bottom:15%;z-index:2;pointer-events:none;
  display:flex;justify-content:space-between;padding:0 1.1% 0 7%}  /* 左让 26px 符墙窄边 */
.tablet-col{display:flex;flex-direction:column;gap:1px;width:9.5%;max-width:38px}
.tablet-item{flex:1;display:flex;align-items:center;justify-content:center;
  font-size:clamp(8px,2.2vw,10px);line-height:1;letter-spacing:-.02em;color:rgba(238,220,176,.5);white-space:nowrap;
  background:linear-gradient(180deg,rgba(72,44,20,.42),rgba(36,21,9,.45));
  border:1px solid rgba(212,175,106,.14);border-radius:1px}
/* F34：默认态不得有发光元素 —— 已取消「丁未 缪丙」高亮块 */
/* F35-A：神位牌已删除（何先生选 A） */

/* — 愿力簿元数据行 — */
.ledger-meta{font-size:11px;letter-spacing:.12em;color:rgba(212,175,106,.8);margin:2px 0 4px}

/* — 凭证卡新增行沿用 receipt-row；免责小字 — */
.receipt-card .compliance-note{margin-top:10px;font-size:10.5px;letter-spacing:.08em}

/* ===== 殿内上香浮层：自绘长条香炉（六殿内景本身没有香炉可锚定） ===== */
.io-censer{position:absolute;left:-45px;top:3px;width:90px;height:34px;z-index:2;pointer-events:none;
  opacity:0;transition:opacity .5s}
.io-visual.inserting .io-censer,.io-visual.inserted .io-censer,.io-visual.lit .io-censer{opacity:1}
.io-censer .body{position:absolute;left:0;right:0;top:0;height:20px;border-radius:4px;
  background:linear-gradient(180deg,#8a7454 0%,#5f4f37 42%,#3b3021 100%);
  border:1px solid rgba(230,200,140,.55);
  box-shadow:inset 0 2px 4px rgba(0,0,0,.55),inset 0 -3px 5px rgba(210,180,120,.3),
             0 8px 16px rgba(0,0,0,.65),0 0 14px rgba(255,180,90,.28)}
.io-censer .ash{position:absolute;left:8px;right:8px;top:2px;height:7px;border-radius:4px;
  background:linear-gradient(180deg,#a9a294,#6f685c)}
.io-censer .ear{position:absolute;top:-7px;width:9px;height:16px;border-radius:3px;
  background:linear-gradient(180deg,#7a6748,#4a3d2b)}
.io-censer .ear.l{left:-9px} .io-censer .ear.r{right:-9px}
.io-censer .leg{position:absolute;bottom:-6px;width:6px;height:7px;border-radius:0 0 2px 2px;
  background:linear-gradient(180deg,#4a3d2b,#2b241a)}
.io-censer .leg.l{left:12px} .io-censer .leg.r{right:12px} .io-censer .leg.c{left:50%;margin-left:-3px}
/* 浮层内香与香灰条按炉体缩小 */
.io-visual .joss{top:-60px;height:60px;width:0.9px;
  filter:drop-shadow(0 0 4px rgba(255,140,60,.85))}
.io-visual .joss-body{box-shadow:0 0 6px rgba(255,120,40,.5),1px 0 2px rgba(0,0,0,.6)}
.io-visual .joss[data-i="0"]{left:-6px} .io-visual .joss[data-i="1"]{left:0} .io-visual .joss[data-i="2"]{left:6px}
.io-visual .smoke{bottom:60px;height:56px}
.io-visual .censer-mouth{left:-29px;top:-3px;width:58px;height:9px;border-radius:4px}
.io-visual .incense-blessing{top:-78px;font-size:12px}

/* 上香场景：香炉在原图中偏右约 0.9%，背景微移使炉体居中；锚点跟随 */
#scene-hall .scene-bg{background-position:calc(50% - 4px) 30%}
#incenseVisual{left:50.3%}
#ioVisual{left:50%;top:73%}

/* 殿内浮层：手持帧与香同尺度（130→82px，香 73px） */
.io-visual .hands{width:120px}
.io-visual .hands-hold{left:-61px;top:-107px}

/* ===== PC 适配：桌面端不再把 390px 设计拉满到 1920（那样背景图要放大 1.875 倍，既模糊又费 GPU）===== */
@media (min-width: 600px){
  html, body{background:#0b0704}
  #app{max-width:430px;margin:0 auto;
    box-shadow:0 0 60px rgba(0,0,0,.9),0 0 0 1px rgba(212,175,106,.18);
    border-radius:0}
  .scene-bg{background-size:cover}
}

/* 入殿：先露神像全貌，内容(按钮/文字)延后 0.9s 淡入 */
#scene-shrine.active .shrine-content{animation:shrineContentIn .7s ease .9s both}
@keyframes shrineContentIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* 六殿空态蒲团：与跪姿人像的蒲团同源同尺寸 */
.hall-empty-cushion{display:none;   /* 空态蒲团不显示（历史样式；来源未核实，勿作授权依据） */
  position:absolute;left:var(--kx,50%);bottom:146px;
  width:calc(var(--kw,min(42vw,190px)) * 1.55);height:calc(var(--kw,min(42vw,190px)) * 1.55 * 0.754);
  transform:translateX(-50%);
  object-fit:contain;
  opacity:1;transition:opacity .4s;z-index:2;pointer-events:none;
  filter:drop-shadow(0 6px 12px rgba(0,0,0,.55))}
.scene.kneel-on .hall-empty-cushion{opacity:0}

/* ===== 八卦亭：遮罩减淡 + 文字下压，建筑全貌尽量露出 ===== */
#scene-bagua .scene-veil-light{
  background:linear-gradient(180deg,rgba(20,10,5,.42) 0%,rgba(20,10,5,0) 30%,rgba(20,10,5,.28) 100%)}
#scene-bagua .hall-content{justify-content:flex-end;padding:6px 22px 44px}
#scene-bagua .hall-tag{
  background:transparent;border:1px solid rgba(212,175,106,.32);
  font-size:10.5px;letter-spacing:.42em;padding:4px 12px;margin-bottom:16px}
#scene-bagua .hall-title{
  font-size:21px;letter-spacing:.34em;margin:0 0 14px;
  text-shadow:0 2px 14px rgba(0,0,0,.85),0 0 26px rgba(255,190,90,.28)}
#scene-bagua .hall-desc{
  font-size:11.5px;line-height:2.0;letter-spacing:.06em;margin-bottom:16px;
  color:rgba(248,240,225,.9);text-shadow:0 2px 8px rgba(0,0,0,.85)}
#scene-bagua .btn-primary{font-size:13px;letter-spacing:.24em;padding:11px 26px}
#scene-bagua .btn-next{margin-top:10px}
#scene-bagua .hall-note{font-size:10px;letter-spacing:.14em;margin-top:10px;opacity:.7}

/* ===== 分享按钮 ===== */
#btnShareBagua,#btnShareDone{margin-top:10px;font-size:12px;letter-spacing:.16em}

/* ===== 方法论说明（掷筊 / 灵签）===== */
.method-note{margin-top:14px;padding:13px 15px;border:1px solid rgba(212,175,106,.22);
  background:rgba(24,12,6,.55);border-radius:4px;text-align:left}
.method-title{font-size:10.5px;letter-spacing:.34em;color:var(--gold);margin-bottom:9px}
.method-body{font-size:11.5px;line-height:1.98;color:rgba(245,236,217,.78);letter-spacing:.02em}
.method-body b{color:var(--gold-light);font-weight:500}
.lot-no{font-size:10.5px;letter-spacing:.2em;color:#8a7048;text-align:center;margin-bottom:10px}

/* 财神/文昌/真武 三殿人像对齐：原落在供桌高度，今拉到供桌前方地面（历史样式；来源未核实） */
/* 以三清殿为基准（何先生：三清的比例最好）：18vw / bottom 150
   财神殿改为与文昌殿完全对齐（历史样式；来源未核实） */
#scene-wenchang .kneel-figure,
#scene-zhenwu .kneel-figure{bottom:150px}
#scene-caishen{--kw:min(18vw,72px)}
#scene-wenchang{--kw:min(18vw,72px)}
#scene-zhenwu{--kw:min(18vw,72px)}
#scene-caishen .hall-empty-cushion,
#scene-wenchang .hall-empty-cushion,
#scene-zhenwu .hall-empty-cushion{bottom:100px}

/* 元辰殿背景放大铺满屏高，神像更近、底部不留空（历史样式；来源未核实） */
#scene-shrine .shrine-bg-base{background-size:auto 100%;background-position:50% top}

/* 六殿底部：前往下一殿 与 ‹上一殿 并排一行（与上方上香/叩首同宽对齐，省空间多看殿堂） */
.hall-foot{display:grid;grid-template-columns:1fr 1fr;gap:10px;column-gap:10px;grid-auto-flow:row dense}
.hall-foot > *{grid-column:1 / -1}
.hall-foot .btn-next{grid-column:1 / 2;margin-top:0}
.hall-foot .hall-next-row{grid-column:2 / 3;display:flex;width:100%;margin-top:0}
.hall-foot .hall-next-row .btn-next{width:100%}
.hall-foot .hall-return-row{grid-column:1 / 2;display:flex;margin-top:0}
.hall-foot .hall-return-row .btn-return{width:100%;padding:11px 8px;font-size:12px;
  letter-spacing:.14em;background:rgba(24,12,6,.55);border-color:rgba(212,175,106,.5)}
.hall-foot .btn-next{padding:11px 8px;font-size:12px;letter-spacing:.14em}

/* 财神殿：人像再往后退一点（离供桌更远） */

/* 真武殿：两个出口按钮（回元辰殿 / ‹药王殿）并排对齐 */
#scene-zhenwu .hall-next-row{grid-column:2 / 3;display:flex;width:100%}
#scene-zhenwu .hall-next-row .btn-next{width:100%;padding:11px 8px;font-size:12px;letter-spacing:.14em}
#scene-zhenwu .hall-return-row{grid-column:1 / 2 !important}

/* ===== 电子太岁符 ===== */
.fu-modal{position:fixed;inset:0;z-index:210;display:none;align-items:center;justify-content:center;
  background:rgba(6,4,2,.86);backdrop-filter:blur(3px);padding:18px}
.fu-modal.on{display:flex}
.fu-box{max-width:min(92vw,420px);max-height:92vh;display:flex;flex-direction:column;align-items:center;gap:10px}
.fu-box canvas{width:100%;height:auto;max-height:72vh;object-fit:contain;
  border-radius:4px;box-shadow:0 18px 50px rgba(0,0,0,.7)}
.fu-actions{display:flex;gap:10px;width:100%}
.fu-actions .btn-primary,.fu-actions .btn-ghost{flex:1;padding:11px 8px;font-size:13px}
.fu-note{font-size:10.5px;letter-spacing:.1em;color:rgba(245,236,217,.55);text-align:center}
#btnGetFu{margin-top:10px}

/* ===== 巡礼印册 ===== */
.stamp-modal{position:fixed;inset:0;z-index:200;display:none;align-items:center;justify-content:center;
  background:rgba(6,4,2,.88);backdrop-filter:blur(3px);padding:20px}
.stamp-modal.on{display:flex}
.stamp-box{width:min(92vw,420px);max-height:90vh;overflow:auto;padding:22px 20px 18px;
  background:linear-gradient(170deg,rgba(28,16,9,.98),rgba(18,10,5,.98));
  border:1px solid rgba(212,175,106,.42);border-radius:6px;text-align:center}
.stamp-title{font-size:18px;letter-spacing:.42em;color:#f0d79b;margin-bottom:8px;
  text-shadow:0 0 18px rgba(255,190,80,.35)}
.stamp-sub{font-size:11px;letter-spacing:.16em;color:rgba(245,236,217,.68);margin-bottom:18px}
.stamp-sub b{color:#f0d79b;font-size:14px}
.stamp-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}
.stamp-cell{aspect-ratio:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  border:1px dashed rgba(212,175,106,.28);border-radius:4px;background:rgba(12,7,4,.5)}
.stamp-cell.got{border:1px solid rgba(212,175,106,.6);background:rgba(120,30,22,.22)}
.stamp-seal{width:44px;height:44px;border-radius:6px;display:flex;align-items:center;justify-content:center;
  border:2px solid rgba(212,175,106,.3);color:rgba(212,175,106,.35);font-size:17px;
  font-family:"Songti SC",serif;letter-spacing:0}
.stamp-cell.got .stamp-seal{border-color:#b8322a;color:#f05a4a;background:rgba(184,50,42,.16);
  box-shadow:0 0 12px rgba(220,70,50,.35)}
.stamp-name{font-size:10.5px;letter-spacing:.12em;color:rgba(245,236,217,.6);margin-top:7px}
.stamp-cell.got .stamp-name{color:rgba(245,220,170,.9)}
.stamp-actions{display:flex;gap:10px}
.stamp-actions .btn-primary,.stamp-actions .btn-ghost{flex:1;padding:11px 6px;font-size:12.5px}
.stamp-note{font-size:10px;letter-spacing:.08em;color:rgba(245,236,217,.42);margin-top:12px}
#btnStampBook{font-size:15px;font-family:"Songti SC",serif}

/* 殿内浮层的自绘香炉：轻微虚化+降不透明度，弱化与殿内背景的透视割裂 */
.io-censer{filter:blur(.35px) saturate(.92)}  /* 2026-12-01：删除强制 opacity，香炉只在插入时出现 */


/* ===== 电子太岁符（实拍质感符图）===== */
.fu-img{width:100%;max-height:64vh;object-fit:contain;border-radius:3px;
  box-shadow:0 18px 50px rgba(0,0,0,.75),0 0 30px rgba(140,30,20,.35)}
.fu-caption{width:100%;text-align:center;margin-top:2px}
.fu-year{font-size:11.5px;letter-spacing:.18em;color:rgba(240,215,155,.85)}
.fu-name{font-size:12.5px;letter-spacing:.14em;color:#f0d79b;margin-top:5px;
  font-family:"Songti SC",serif}

/* 元辰殿：主神与当值太岁的层级说明 */
.shrine-sub{font-size:10.5px;letter-spacing:.2em;color:rgba(245,225,180,.72);
  margin:-2px 0 auto;text-shadow:0 2px 6px #000}   /* margin-bottom:auto → 把 tag+sub 顶到顶部 */

/* ===== 元辰殿：当值太岁缪丙大将军 · 右侧神龛（金木龛框，立于斗姆右下、高于跪拜人像） ===== */
.shrine-general{position:absolute;right:4%;bottom:200px;width:21%;height:auto;z-index:3;
  pointer-events:none;padding:3px;border-radius:2px;
  background:linear-gradient(180deg,#1a1209,#0b0805);
  border:1.5px solid rgba(196,152,84,.62);
  box-shadow:0 0 0 1px rgba(60,30,10,.9), inset 0 0 22px rgba(0,0,0,.85), 0 10px 26px rgba(0,0,0,.55);
  filter:brightness(1.04) saturate(1.02) contrast(1.04)}
.shrine-general-tag{position:absolute;right:4%;bottom:176px;width:21%;z-index:4;text-align:center;
  font-size:9px;line-height:1.45;letter-spacing:.08em;color:rgba(245,220,170,.82);
  text-shadow:0 2px 6px #000;pointer-events:none}
#scene-shrine.kneel-on .shrine-general,
#scene-shrine.bowing .shrine-general{opacity:.75;transition:opacity .4s}

/* 太岁像名号：无框纯文字，贴右侧立像上方（像已在底图内） */
.taisui-label{position:absolute;right:20%;bottom:27%;z-index:3;padding:3px 9px;
  font-size:10px;letter-spacing:.12em;color:rgba(255,232,176,.95);
  background:rgba(20,10,6,.42);border:1px solid rgba(212,175,106,.35);border-radius:2px;
  text-shadow:0 2px 6px #000;pointer-events:none}

/* 符弹窗：第二行「存为手机屏保」 */
.fu-actions-second{margin-top:-2px}
.fu-wall-btn{width:100%;flex:none!important;padding:8px 8px!important;font-size:12px!important;
  color:rgba(245,220,170,.82)!important;border-color:rgba(212,175,106,.38)!important}

/* ===== 山门引流链接（回主页 / 看运势） ===== */
.back-links{margin:14px 0 4px;font-size:12.5px;letter-spacing:.04em;line-height:1.9}
.back-links a{color:rgba(255,232,176,.86);text-decoration:none;border-bottom:1px solid rgba(212,175,106,.35);
  padding-bottom:1px;transition:color .2s,border-color .2s}
.back-links a:hover{color:#ffe9b8;border-color:rgba(212,175,106,.8)}
.back-links .bl-sep{margin:0 8px;color:rgba(212,175,106,.4)}
@media(max-width:640px){.back-links{font-size:11.5px;margin:12px 0 2px}}

/* ---------- F18d 领符表单 ---------- */
.fu-form-box{max-height:88vh;overflow-y:auto;text-align:left;padding:22px 18px 16px}
.fu-form-actions{display:flex;gap:10px;margin-top:16px}
.fu-form-actions .btn-primary,.fu-form-actions .btn-ghost{flex:1;padding:12px 8px;font-size:13px}
.fu-form-title{font-size:16px;letter-spacing:.3em;color:#e7d4a0;text-align:center;margin-bottom:6px}
.fu-form-notice{font-size:10.5px;letter-spacing:.06em;color:rgba(245,236,217,.45);text-align:center;margin-bottom:14px}
.fu-form-box .field-label{font-size:12px;color:rgba(245,236,217,.7);margin:10px 0 4px;display:block}
.fu-form-box .req{color:#e8896b}
.fu-form-box .opt{font-size:10px;color:rgba(245,236,217,.38)}
.fu-form-box .field-input{width:100%;box-sizing:border-box;background:rgba(255,255,255,.06);border:1px solid rgba(212,175,106,.3);border-radius:8px;color:#f5ecd9;padding:10px 12px;font-size:14px}
.fu-form-box select.field-input{appearance:none;-webkit-appearance:none;background-image:linear-gradient(45deg,transparent 50%,rgba(212,175,106,.6) 50%),linear-gradient(135deg,rgba(212,175,106,.6) 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 12px) 50%;background-size:6px 6px;background-repeat:no-repeat}
.fu-form-box .chip-row{display:flex;gap:8px;margin:4px 0}
.fu-form-box .chip{flex:1;padding:9px 0;font-size:13px;background:rgba(255,255,255,.05);border:1px solid rgba(212,175,106,.28);color:rgba(245,236,217,.7);border-radius:8px;cursor:pointer}
.fu-form-box .chip.active{background:rgba(212,175,106,.18);border-color:rgba(212,175,106,.65);color:#f0d9a6}
.fu-loc-row{display:flex;gap:8px}
.fu-loc-row select{flex:1}
.fu-form-err{font-size:11.5px;color:#e8896b;min-height:16px;margin-top:8px;text-align:center}
#fuNoLine{font-size:11px;letter-spacing:.12em;color:rgba(245,236,217,.55);margin-top:4px}

/* ---------- F18e 愿力簿符缩略图 ---------- */
.ledger-fu{margin:8px 0;display:flex;align-items:center;gap:10px;cursor:pointer}
.ledger-fu img{width:42px;height:81px;object-fit:cover;border-radius:5px;border:1px solid rgba(212,175,106,.35)}
.ledger-fu span{font-size:11px;letter-spacing:.12em;color:rgba(245,236,217,.55);border-bottom:1px dashed rgba(212,175,106,.4)}

/* ---------- F18c 太岁符榜（2026-12-01 F28：缩比 · 透明 · 收起 26×88 / 展开 44×140） ---------- */
.fu-wall{position:absolute;left:0;top:22%;width:26px;min-height:88px;z-index:6;
  display:flex;flex-direction:column;transition:width .18s ease;
  background:rgba(38,23,11,.35);
  border:1px solid rgba(212,175,106,.5);border-left:none;border-radius:0 3px 3px 0;
  box-shadow:3px 4px 14px rgba(0,0,0,.3);overflow:hidden;backdrop-filter:blur(1px)}
.fu-wall.on{width:44px;height:140px;min-height:0}
/* 收起态：竖排「太岁符榜」+ 计数 */
.fu-wall-toggle{display:flex;flex-direction:column;align-items:center;gap:5px;width:100%;flex:none;
  padding:8px 0 10px;background:transparent;border:none;cursor:pointer;color:rgba(231,212,160,.85)}
.fu-wall-toggle-txt{writing-mode:vertical-rl;letter-spacing:.16em;font-size:9px;line-height:1.15}
.fu-wall-count{font-size:9px;font-weight:700;min-width:15px;line-height:15px;text-align:center;
  background:rgba(212,175,106,.16);border:1px solid rgba(212,175,106,.45);border-radius:8px;color:#f0d9a6}
/* 展开体：一屏 2 张，滚动看 20 张 */
.fu-wall-body{display:none;flex:1;min-height:0;flex-direction:column;padding:0 3px 3px}
.fu-wall.on .fu-wall-body{display:flex;padding-top:0}
.fu-wall.on .fu-wall-toggle{padding:5px 0 2px}
.fu-wall-title{display:none;font-size:7.5px;letter-spacing:.08em;color:rgba(231,212,160,.5);text-align:center;
  margin-bottom:2px;border-bottom:1px solid rgba(212,175,106,.5);padding-bottom:2px}
.fu-wall.on .fu-wall-title{display:block}
.fu-wall-grid{display:flex;flex-direction:column;gap:3px;flex:1;min-height:0;
  overflow-y:auto;align-content:start;scrollbar-width:thin}
.fu-wall-cell{position:relative;flex:0 0 auto;width:100%;aspect-ratio:1280/2479;overflow:hidden;background:rgba(242,231,204,.9);cursor:default}
.fu-wall-cell img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;opacity:.85}
.fu-wall-cell.me{outline:1.5px solid rgba(240,217,166,.9);outline-offset:-1px;cursor:pointer}
.fu-wall-cell .fu-wall-tag{position:absolute;bottom:0;left:0;right:0;font-size:5px;text-align:center;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.55));color:#f0d9a6;padding:2px 0 1px;pointer-events:none}
.fu-wall-cell:not(.me) .fu-wall-tag{display:none}
.fu-wall-note{display:none;font-size:6px;color:rgba(245,236,217,.4);text-align:center;margin-top:2px;flex:none}
.fu-wall.on .fu-wall-note{display:block}
.fu-wall-pub{display:none;align-items:center;gap:3px;font-size:6.5px;color:rgba(245,236,217,.55);margin-top:2px;
  cursor:pointer;flex:none;line-height:1.2}
.fu-wall.on .fu-wall-pub{display:flex}
.fu-wall-pub input{width:9px;height:9px;accent-color:#d4af6a;flex:none}

/* 备案条（固定底部）：留出安全边 + 底衬，避免压住首页说明与场景按钮 */
#icpBar{background:linear-gradient(180deg,rgba(8,6,4,0) 0%,rgba(8,6,4,.55) 55%,rgba(8,6,4,.78) 100%)}
.image-disclaimer{bottom:40px}   /* 让开 27px 备案条 */

/* F27 当值太岁缪丙立像（叠图；尺寸/位置为验收值，勿改。以下只调观感） */
.shrine-fig{position:absolute;left:calc(68% + 5px);bottom:28%;transform:translateX(-50%);height:var(--fig-h,18.6%);
  z-index:4;pointer-events:none;isolation:isolate}
/* 与供桌花艺做体量分离：身后一层极淡的环境遮蔽，压掉"贴上去"的平 */
.shrine-fig::before{content:"";position:absolute;left:-14%;right:-14%;top:-3%;bottom:-2%;z-index:0;
  background:radial-gradient(ellipse 62% 58% at 50% 60%,rgba(12,8,5,.42) 0%,rgba(12,8,5,.22) 45%,rgba(12,8,5,0) 76%);
  filter:blur(7px)}
.shrine-fig img{position:relative;z-index:1;height:100%;width:auto;display:block;
  /* 底缘渐隐：素材自带的深色石座会读成一条黑条，压到台面里 */
  -webkit-mask-image:linear-gradient(to bottom,#000 0 88%,rgba(0,0,0,.8) 94%,rgba(0,0,0,0) 100%);
  mask-image:linear-gradient(to bottom,#000 0 88%,rgba(0,0,0,.8) 94%,rgba(0,0,0,0) 100%);
  /* 光温：立像原片偏暖偏艳，往殿堂的冷调压一档，提一点中间调 */
  filter:saturate(.82) brightness(1.05) contrast(1.02) hue-rotate(-5deg)
         drop-shadow(0 3px 5px rgba(0,0,0,.26))}
/* 接触阴影：两层，去掉原来那条生硬黑条 */
.shrine-fig::after{content:"";position:absolute;left:50%;bottom:-3px;transform:translateX(-50%);z-index:0;
  width:62%;height:16px;border-radius:50%;
  background:radial-gradient(ellipse at center,rgba(0,0,0,.6) 0%,rgba(0,0,0,.28) 52%,rgba(0,0,0,0) 78%);
  filter:blur(4px)}
/* F25 牌位降密度：默认 8 块（高亮+邻近），整列 .45；展开全量可滚 */
.tablet-col{opacity:.45;transition:opacity .2s ease}
.tablet-item.tablet-fade{opacity:0;visibility:hidden}
.tablet-wall.on .tablet-col{opacity:1}
.tablet-wall.on{overflow-y:auto;pointer-events:auto}
.tablet-wall.on .tablet-col{max-height:none;height:auto}
.tablet-toggle{position:absolute;right:3%;bottom:19%;z-index:6;padding:4px 7px;font-size:9px;letter-spacing:.06em;
  color:#e7d4a0;background:rgba(38,24,12,.78);border:1px solid rgba(212,175,106,.42);border-radius:2px;cursor:pointer}
.tablet-toggle:active{background:rgba(60,38,18,.9)}

/* F29 跪拜态按钮组减挡（只动透明度） */
#scene-shrine.bowing .kowtow-words,
.kowtow-words.dim{opacity:.45}
.kowtow-words:active,.kowtow-words:focus-within{opacity:1}

/* F30-4 横屏兜底：竖屏提示遮罩 */
.rotate-tip{position:fixed;inset:0;z-index:400;display:none;align-items:center;justify-content:center;
  background:rgba(10,7,4,.92);color:#e7d4a0;text-align:center;padding:24px;font-size:13px;line-height:1.9;
  letter-spacing:.06em}
.rotate-tip.on{display:flex}
.rotate-tip b{display:block;font-size:15px;letter-spacing:.2em;margin-bottom:8px;color:#f0d9a6}
.rotate-tip small{display:block;margin-top:10px;color:rgba(245,236,217,.55);font-size:11px}
@media (orientation:landscape) and (max-height:500px){
  .rotate-tip.on{display:flex}
}

/* F30-5 桌面/平板：两侧不再纯黑，铺同版虚化殿景 */
@media (min-width:600px){
  html,body{background:#0b0704}
  body::before{content:"";position:fixed;inset:0;z-index:0;
    background:url(assets/yuanchen-hall-v49b-ef7ea20e.webp) center/cover no-repeat;
    filter:blur(16px) brightness(.42) saturate(.9);transform:scale(1.06)}
  #app{z-index:1}
}

/* F28 展开态：44×140 太窄，墙上不放文字；标题/说明隐藏，收起条压成 14px */
.fu-wall.on .fu-wall-title,.fu-wall.on .fu-wall-note{display:none}
.fu-wall.on .fu-wall-toggle{position:absolute;top:0;left:0;right:0;z-index:3;padding:2px 0 3px;gap:0;
  background:linear-gradient(180deg,rgba(24,14,7,.88),rgba(24,14,7,0))}
.fu-wall.on .fu-wall-toggle-txt{writing-mode:horizontal-tb;font-size:8px;letter-spacing:.06em;text-shadow:0 1px 2px #000}
.fu-wall.on .fu-wall-count{min-width:12px;line-height:12px;font-size:8px}
/* 公开勾选（已移到符弹窗底部） */
.fu-modal-pub{display:flex;align-items:center;justify-content:center;gap:5px;font-size:10.5px;
  color:rgba(245,236,217,.6);margin:10px 0 2px;cursor:pointer}
.fu-modal-pub input{width:12px;height:12px;accent-color:#d4af6a}

/* F31 兜底：进殿背景自身有暖底色，解码前也不露纯黑 */
#scene-shrine .shrine-bg-base{background-color:#241a12}

/* F31：元辰殿淡入压到 0.16s —— 背景已预载+预解码，长淡入本身就是黑帧来源 */
#scene-shrine.active{animation:none}  /* F31：背景已预解码，直接上画，杜绝黑帧 */

/* F33 符榜角标「丁未」 */
.fu-wall-badge{font-style:normal;font-size:6px;letter-spacing:0;margin-left:2px;padding:0 3px;
  border:1px solid rgba(212,175,106,.55);border-radius:6px;color:rgba(240,217,166,.85);vertical-align:middle}

/* ================= 补单8（阶段二） ================= */
/* F39 符榜侧向：贴左壁的斜板（透视 + rotateY(-55°) + 原点左） */
.fu-3d{position:absolute;left:0;top:22%;width:200px;height:300px;
  transform:perspective(520px);transform-origin:left center;
  perspective:520px;perspective-origin:left center;z-index:6;pointer-events:none}
.fu-3d .fu-wall{position:relative;top:0;pointer-events:auto}
.fu-wall{width:52px;height:88px;min-height:0;
  transform:rotateY(55deg);transform-origin:left center;
  transform-style:preserve-3d;
  border-right:1.5px solid rgba(240,217,166,.55);   /* 近端高光边 */
  box-shadow:6px 8px 16px rgba(0,0,0,.45), inset -6px 0 12px rgba(0,0,0,.35)}
.fu-wall.on{width:100px;height:140px}
.fu-wall.tab-tablets{width:200px;height:300px}
/* 远端压暗：让板有厚度 */
.fu-wall::after{content:"";position:absolute;right:0;top:0;bottom:0;width:6px;pointer-events:none;
  background:linear-gradient(90deg,rgba(0,0,0,0),rgba(0,0,0,.35));filter:brightness(.82)}

/* F41 榜内页签 */
.fu-tabs{display:none;gap:2px;margin-top:3px;flex:none}
.fu-wall.on .fu-tabs{display:flex}
.fu-tab{flex:1;padding:3px 0;font-size:7px;letter-spacing:.04em;cursor:pointer;
  color:rgba(231,212,160,.7);background:rgba(30,18,9,.55);border:1px solid rgba(212,175,106,.35);border-radius:2px}
.fu-tab.active{color:#ffe6a8;background:rgba(96,58,22,.7);border-color:rgba(240,217,166,.7)}

/* F41 六十太岁列表（榜内，200 宽时） */
.fu-wall-list{display:none;flex:1;min-height:0;overflow-y:auto;
  grid-template-columns:repeat(2,1fr);gap:1px;align-content:start;scrollbar-width:thin}
.fu-wall.tab-tablets .fu-wall-list{display:grid}
.fu-wall.tab-tablets .fu-wall-grid{display:none}
.fu-wall-list .tab-row{display:flex;align-items:center;justify-content:center;height:9px;font-size:8px;
  line-height:1;color:rgba(238,220,176,.72);background:linear-gradient(180deg,rgba(72,44,20,.5),rgba(36,21,9,.5));
  border:1px solid rgba(212,175,106,.18);border-radius:1px;white-space:nowrap}
.fu-wall-list .tab-row.now{border-color:rgba(240,217,166,.66);color:#ffe6a8}

/* F37 缪丙专属打光（screen 叠光，不重绘） */
.taisuiGlow{position:absolute;left:calc(68% + 5px);bottom:26%;transform:translateX(-50%) rotate(-16deg);
  width:170px;height:330px;z-index:3;pointer-events:none;mix-blend-mode:screen;filter:blur(6px);
  background:radial-gradient(ellipse at 45% 32%,rgba(255,238,200,.40),rgba(255,232,190,.12) 45%,transparent 68%)}
/* F40 我的符：2s 高亮 → 0.6s 淡出 → 常态 .55 */
.fu-wall-cell.me{transition:opacity .6s ease,outline-color .6s ease}
.fu-wall-cell.me.lit{outline:1.5px solid rgba(240,217,166,.95);outline-offset:-1px}
.fu-wall-cell.me.fade{opacity:.55;outline-color:transparent}

/* ===== 2026-12-01 上香浮层修复 + 跪拜距离微调 ===== */
/* 1) 浮层背景没铺满 → 透出下层页面（看起来像"香炉/按钮乱入"） */
.incense-overlay .io-bg{position:absolute;inset:0;background-color:#120b07;
  background-size:cover;background-position:center 32%;background-repeat:no-repeat;
  filter:brightness(.55) saturate(.95);z-index:0}
.incense-overlay::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:radial-gradient(ellipse at 50% 62%,rgba(0,0,0,.12) 0%,rgba(0,0,0,.55) 78%)}

/* 2) 香烟：由三条直线改为缥缈烟缕（宽、虚、摆动、向上散尽） */
.smoke i{width:18px;height:120px;left:4px;border-radius:55% 55% 45% 45%;
  background:radial-gradient(ellipse at 50% 78%,rgba(246,242,234,.5) 0%,rgba(240,236,228,.22) 42%,rgba(235,230,222,0) 74%);
  filter:blur(3.6px)}
@keyframes smokeWisp{
  0%{transform:translate(0,6px) scale(.65,.3);opacity:0}
  12%{opacity:.5}
  35%{transform:translate(-7px,-42px) scale(.95,.72);opacity:.46}
  62%{transform:translate(6px,-96px) scale(1.15,.95);opacity:.32}
  85%{transform:translate(-4px,-150px) scale(1.35,1.12);opacity:.16}
  100%{transform:translate(2px,-190px) scale(1.5,1.25);opacity:0}}
.joss.lit .smoke i{animation:smokeWisp 6.4s ease-in-out infinite}
.io-visual .smoke{bottom:56px;height:150px}
.io-visual .joss.lit .smoke i{animation-duration:7.2s}

/* 3) 跪拜人像：按殿调距离（越靠后越远；财神避开金元宝堆） */
.kneel-figure{bottom:var(--kb,150px)}
#scene-caishen{--kb:112px}
#scene-wenchang{--kb:108px}
#scene-yaowang{--kb:130px}

/* 2026-12-01 调优：浮层压暗（防底层标题透出）+ 烟更明显 */
.incense-overlay .io-bg{filter:brightness(.42) saturate(.92)}
.incense-overlay::after{background:radial-gradient(ellipse at 50% 62%,rgba(6,4,2,.35) 0%,rgba(6,4,2,.78) 80%)}
.smoke i{width:20px;height:140px;left:3px;
  background:radial-gradient(ellipse at 50% 76%,rgba(252,250,245,.62) 0%,rgba(240,236,228,.3) 44%,rgba(235,230,222,0) 76%);
  filter:blur(4.4px)}
@keyframes smokeWisp{
  0%{transform:translate(0,8px) scale(.62,.28);opacity:0}
  10%{opacity:.62}
  32%{transform:translate(-8px,-56px) scale(.95,.7);opacity:.55}
  58%{transform:translate(7px,-124px) scale(1.18,.98);opacity:.38}
  82%{transform:translate(-5px,-196px) scale(1.4,1.18);opacity:.18}
  100%{transform:translate(3px,-244px) scale(1.55,1.32);opacity:0}}

/* 2026-12-01 跪拜距离（用同等特异性覆盖旧规则） */
#scene-caishen .kneel-figure{bottom:140px}
#scene-wenchang .kneel-figure{bottom:142px}
#scene-yaowang .kneel-figure{bottom:146px}

/* 2026-12-01：真实铜炉贴图（替换 CSS 画炉）。锚点仍在炉口，香与烟不动 */
.io-censer{width:96px;height:0;left:-48px;top:-5px;opacity:0;transition:opacity .55s;z-index:2}
.io-visual.inserting .io-censer,.io-visual.inserted .io-censer,.io-visual.lit .io-censer{opacity:1}
.io-censer img{position:absolute;left:0;top:-10px;width:96px;height:auto;display:block;
  filter:drop-shadow(0 6px 10px rgba(0,0,0,.6)) saturate(1.02) contrast(1.03)}
.io-censer .body,.io-censer .ash,.io-censer .ear,.io-censer .leg{display:none}

/* 真炉收尾：去掉多余炉口遮片；补接地影 */
.io-visual .censer-mouth{display:none}
.io-censer::after{content:"";position:absolute;left:6%;right:6%;bottom:-6px;height:14px;border-radius:50%;
  background:radial-gradient(ellipse at center,rgba(0,0,0,.55) 0%,rgba(0,0,0,.22) 55%,rgba(0,0,0,0) 80%);
  filter:blur(4px);z-index:-1}

/* 2026-12-01：铜炉改金调 + 微透明，融入环境 */
.io-censer img{filter:sepia(.55) saturate(1.75) hue-rotate(-14deg) brightness(1.16) contrast(1.02)
  drop-shadow(0 6px 10px rgba(0,0,0,.55));opacity:.86}
.io-censer::before{content:"";position:absolute;left:-8%;right:-8%;top:-6%;bottom:-4%;z-index:-1;
  background:radial-gradient(ellipse at 50% 62%,rgba(255,196,92,.18),rgba(255,180,70,0) 68%);
  filter:blur(6px);pointer-events:none}

/* 2026-12-01：符榜展开＝保持 200×300（不再缩回 100×140），符贴满整板 */
.fu-wall.on{width:200px;height:300px}
.fu-wall.on .fu-wall-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:3px;
  align-content:start;overflow-y:auto;padding:1px}
.fu-wall.on .fu-wall-cell{width:100%;aspect-ratio:1/1.94;flex:none}
.fu-wall.on .fu-wall-cell img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.9}
.fu-wall.on .fu-wall-cell{transform:rotate(var(--rot,0deg))}
/* 我的符：常亮微光，一眼可见；2s 内强高亮后回落成微光（不消失） */
.fu-wall-cell.me{outline:1px solid rgba(255,226,150,.65);box-shadow:0 0 9px rgba(255,206,110,.45)}
.fu-wall-cell.me.lit{outline:1.5px solid rgba(255,236,180,.95);box-shadow:0 0 18px rgba(255,214,120,.85)}
.fu-wall-cell.me.fade{opacity:.95;outline:1px solid rgba(255,226,150,.65);box-shadow:0 0 9px rgba(255,206,110,.45)}

/* 页签互斥：六十太岁态隐藏符榜网格（覆盖前面的 display:grid） */
.fu-wall.tab-tablets .fu-wall-grid{display:none}
.fu-wall:not(.tab-tablets) .fu-wall-list{display:none}

/* 2026-12-01 二次调：更小·更透·更古铜 */
.io-censer{width:82px;left:-41px}
.io-censer img{width:82px;top:-8px;opacity:.72;
  filter:sepia(.30) saturate(1.22) hue-rotate(-5deg) brightness(1.02) contrast(1.04)
         drop-shadow(0 5px 9px rgba(0,0,0,.5))}
.io-censer::before{background:radial-gradient(ellipse at 50% 62%,rgba(214,164,96,.12),rgba(190,140,80,0) 68%)}

/* 2026-12-01 三次调：符榜 5 列、行数更多、整体压淡（不抢斗姆），仅本人符亮一圈 */
.fu-wall.on .fu-wall-grid{grid-template-columns:repeat(5,1fr);gap:2px;padding:0}
.fu-wall.on .fu-wall-cell img{opacity:.5}
.fu-wall.on .fu-wall-cell{opacity:.82}
.fu-wall.on .fu-wall-cell.me{opacity:1}
.fu-wall.on .fu-wall-cell.me img{opacity:.95}
.fu-wall.on .fu-wall-cell.me{outline:1px solid rgba(255,232,170,.9);box-shadow:0 0 12px rgba(255,210,120,.75)}
.fu-wall.on .fu-wall-cell.me.lit{outline:1.5px solid rgba(255,244,200,1);box-shadow:0 0 20px rgba(255,220,140,.95)}

/* 符格高度固定，避免行高塌陷（5 列 × 4 行可见 ≈ 20 张） */
.fu-wall.on .fu-wall-grid{grid-auto-rows:70px}
.fu-wall.on .fu-wall-cell{height:70px;aspect-ratio:auto}

/* 符再淡一档：隐入灰调，只留符号感；避免整板发黄 */
.fu-wall.on .fu-wall-grid{gap:3px}
.fu-wall.on .fu-wall-cell img{opacity:.30;filter:saturate(.55) brightness(.86) contrast(.95)}
.fu-wall.on .fu-wall-cell{opacity:.9;background:rgba(48,36,22,.35);border-radius:1px}
.fu-wall.on .fu-wall-cell.me img{opacity:.92;filter:none}

/* 折中：符可见但压暗不抢戏 */
.fu-wall.on .fu-wall-cell img{opacity:.44;filter:saturate(.62) brightness(.92) contrast(1.02)}
.fu-wall.on .fu-wall-cell{background:rgba(34,25,16,.22)}

/* 定稿：符可见一层，格子给极淡金边，读得出"一张张符贴在那" */
.fu-wall.on .fu-wall-cell img{opacity:.56;filter:saturate(.72) brightness(.95)}
.fu-wall.on .fu-wall-cell{border:1px solid rgba(212,175,106,.12)}

/* 去黄定稿：符纸转灰褐，只留符号轮廓 */
.fu-wall.on .fu-wall-cell img{opacity:.5;filter:saturate(.22) brightness(.82) contrast(1.02)}
.fu-wall.on .fu-wall-cell{background:rgba(26,19,12,.35)}
.fu-wall.on{background:rgba(26,17,10,.55)}

/* 2026-12-01 定稿：36 张＝6 列 × 6 行，正好铺满整板（不滚动） */
.fu-wall.on .fu-wall-grid{grid-template-columns:repeat(6,1fr);grid-auto-rows:48px;gap:2px;overflow:hidden}
.fu-wall.on .fu-wall-cell{height:48px}
.fu-wall.on .fu-wall-cell img{object-fit:cover}

/* 36 张整板不裁：行高 44px（6×44＋间隙=274，正好落在 275 高内） */
.fu-wall.on .fu-wall-grid{grid-auto-rows:44px}
.fu-wall.on .fu-wall-cell{height:44px}

/* 2026-12-02：底图已绘出缪丙将军（红衣站石座），DOM 立像重复 → 隐藏，避免双像 */
#taisuiFig{display:none !important}

/* 2026-12-02：新底图右侧绘有缪丙将军，手机端 cover 裁 15.3% 会切掉他
   → 背景右移，让将军完整入镜；左侧符榜由 DOM 层承担 */


/* ===== 付费领符上榜 · 支付墙（2026-12-02 开闸，补样式） ===== */
.fu-pay-modal,.fu-pay-view{position:fixed;inset:0;z-index:260;display:none;align-items:center;justify-content:center;
  padding:20px;background:rgba(6,4,3,.82);backdrop-filter:blur(7px)}
.fu-pay-modal.on,.fu-pay-view.on{display:flex}
.fu-pay-box{width:min(340px,92vw);padding:22px 20px 16px;border-radius:16px;
  background:linear-gradient(180deg,#1e1710,#130e09);border:1px solid rgba(214,176,106,.42);
  box-shadow:0 22px 60px rgba(0,0,0,.65);color:#f2e7d2;text-align:center}
.fu-pay-title{font-size:16px;letter-spacing:.18em;color:#f0d9a4;margin-bottom:10px}
.fu-pay-price{font-size:26px;color:#f3d28e;margin-bottom:12px;letter-spacing:.02em}
.fu-pay-price span{font-size:12px;color:rgba(242,231,210,.5);letter-spacing:.1em}
.fu-pay-list{list-style:none;margin:0 0 16px;padding:0;text-align:left}
.fu-pay-list li{font-size:12.5px;line-height:1.9;color:rgba(242,231,210,.68);padding-left:14px;position:relative}
.fu-pay-list li::before{content:"·";position:absolute;left:3px;color:rgba(214,176,106,.8)}
.fu-pay-actions{display:flex;gap:10px;margin-top:4px}
.fu-pay-actions .btn-ghost,.fu-pay-actions .btn-primary{flex:1;padding:11px 0;border-radius:10px;font-size:14px;letter-spacing:.08em}
.fu-pay-actions .btn-primary{background:linear-gradient(180deg,#e8c477,#c79a45);color:#2a1d0c;border:none;font-weight:600}
.fu-pay-err{min-height:15px;font-size:12px;color:#ef9a8a;margin-top:8px}
.fu-pay-note{font-size:11px;color:rgba(242,231,210,.38);margin-top:10px;letter-spacing:.06em}
.fu-pay-qr{width:196px;height:196px;margin:6px auto 10px;background:#fff;border-radius:10px;
  display:flex;align-items:center;justify-content:center;overflow:hidden}
.fu-pay-qr canvas,.fu-pay-qr img{width:180px;height:180px}
.fu-pay-tip{font-size:12.5px;color:rgba(242,231,210,.66);margin-bottom:12px}

/* 2026-12-02：按比例适配 —— 不再 cover 裁切。整图 contain 完整显示，
   两侧/上下用同一张图放大模糊做氛围填充，任何终端都不丢画面。 */
/* 只作用于底图；人像层(.shrine-bg-idle/.shrine-bg-bow)保持自身尺寸，不参与 contain */
#scene-shrine .scene-bg.shrine-bg-base{
  background-size:contain; background-position:center center; background-repeat:no-repeat;
  background-color:#0a0705;
}
#scene-shrine .scene-bg.shrine-bg-base::before{
  content:""; position:absolute; inset:-6%;
  background-image:inherit; background-size:cover; background-position:center center;
  filter:blur(26px) brightness(.34) saturate(.8); z-index:-1;
}

/* 2026-12-02 v51：底图右侧绘有缪丙，原「右列牌位」压在人身上
   → 两列牌位统一靠左，落在符墙段，不遮主尊与将军 */
#scene-shrine .tablet-wall{justify-content:flex-start;gap:5px;padding:0 0 0 6.5%}

/* 2026-12-02：六十太岁文字不再显示（含入口按钮与墙面牌位） */
.tablet-wall,.tablet-toggle{display:none !important}
/* 我的符上墙高亮：金色光晕 + 轻微放大，2 秒后回落 */
.fu-wall-cell.me.lit{
  outline:1.6px solid rgba(255,222,150,.98) !important;
  box-shadow:0 0 6px rgba(255,214,130,.95), 0 0 14px rgba(255,196,90,.55);
  filter:brightness(1.18) saturate(1.05);
  transform:scale(1.06); z-index:3;
  transition:box-shadow .3s ease, filter .3s ease, transform .3s ease;
}

/* 2026-12-02 何先生令：DOM 符榜要与底图「卷边做旧黄符墙」是一套质感
   —— 去掉白净卡片感，改做旧黄纸 + 卷角 + 压暗混色；高亮只用暖金光 */
.fu-wall-cell{
  background:linear-gradient(158deg,#efe2c2 0%,#e3d0a6 55%,#cdb383 100%) !important;
  box-shadow:0 1px 2px rgba(0,0,0,.45), inset 0 0 6px rgba(120,84,36,.25) !important;
  border:none !important; overflow:visible !important;
}
.fu-wall-cell img{
  opacity:.9 !important;
  filter:sepia(.3) saturate(1.12) contrast(1.06) brightness(.94) !important;
  mix-blend-mode:multiply;
  border-radius:1px;
}
/* 纸面做旧：整体压暗 + 上暖下深 */
.fu-wall-cell::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg, rgba(255,246,220,.18), rgba(96,64,24,.16) 62%, rgba(58,34,10,.3));
  box-shadow:inset 0 0 0 1px rgba(140,102,52,.28);
}
/* 卷角：左上/右上一角微微翘起 */
.fu-wall-cell::before{
  content:""; position:absolute; top:0; right:0; pointer-events:none;
  border-style:solid; border-width:0 5px 5px 0;
  border-color:transparent rgba(92,62,26,.55) transparent transparent;
  filter:drop-shadow(-1px 1px 1px rgba(0,0,0,.4));
}
/* 高亮：暖金光，不刺白 */
.fu-wall-cell.me.lit{
  outline:none !important;
  background:linear-gradient(158deg,#f6e4bd 0%,#eccf9a 55%,#d8b478 100%) !important;
  box-shadow:0 0 7px rgba(255,208,120,.9), 0 0 16px rgba(255,186,74,.5), inset 0 0 6px rgba(255,230,170,.5) !important;
  filter:brightness(1.1) saturate(1.06);
  transform:scale(1.07); z-index:4;
  transition:box-shadow .3s ease, filter .3s ease, transform .3s ease;
}
.fu-wall-cell.me.lit img{filter:sepia(.16) saturate(1.1) contrast(1.02) brightness(1.04) !important}

/* 再压一档：墙上其他符纸整体压暗，只让「我的符」亮出来，避免整面墙发亮抢主尊 */
.fu-wall-cell img{filter:sepia(.32) saturate(1.05) contrast(1.06) brightness(.84) !important}
.fu-wall-cell::after{background:linear-gradient(180deg, rgba(255,246,220,.10), rgba(70,46,16,.26) 62%, rgba(40,24,8,.42)) !important}
.fu-wall-cell.me.lit img{filter:sepia(.14) saturate(1.12) contrast(1.02) brightness(1.12) !important}

/* 只压「别人的符」，让我的那张自然突出（父级 filter 会连带子元素，故用逐格遮罩） */
.fu-wall-cell:not(.me)::after{background:rgba(26,15,5,.36) !important}
.fu-wall-cell.me::after{background:linear-gradient(180deg, rgba(255,248,226,.10), rgba(90,60,22,.08)) !important}

/* 2026-12-02：跪拜人像与新底图(v53)对齐 —— 21% 高、离底 140px，膝盖落在拜垫上 */
#scene-shrine .shrine-bg-idle{background-size:auto 21% !important;background-position:center calc(100% - 140px) !important}
#scene-shrine .shrine-bg-bow{background-size:auto 14% !important;background-position:center calc(100% - 140px) !important}

/* ===== 祈福凭证 · 道观版式（2026-12-02 重做） ===== */
.receipt-card{
  position:relative; z-index:2; margin:auto 20px; padding:34px 24px 22px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,252,242,.9), rgba(244,233,208,.96) 60%, rgba(232,215,182,.98)),
    linear-gradient(160deg,#f8f0dd,#e9dab9);
  border-radius:4px;
  box-shadow:0 18px 46px rgba(20,12,6,.55), inset 0 0 0 1px rgba(160,120,64,.28);
  color:#3a2a15;
}
/* 双线朱框 + 四角回纹 */
.receipt-card .rc-edge{
  position:absolute; inset:10px; pointer-events:none;
  border:1px solid rgba(150,40,28,.55);
  box-shadow:inset 0 0 0 3px rgba(248,240,221,.9), inset 0 0 0 4px rgba(150,40,28,.28);
}
.rc-head{text-align:center; position:relative; z-index:1}
.rc-kicker{font-size:10.5px; letter-spacing:.42em; color:#9a7a44; margin-bottom:10px}
.rc-title{
  font-size:25px; letter-spacing:.34em; font-weight:600; margin:0 0 8px;
  color:#8c2016; text-indent:.34em;
  font-family:"Songti SC","STSong",serif;
}
.rc-sub{font-size:11px; letter-spacing:.16em; color:#7c6538}
.rc-rule{
  position:relative; height:1px; margin:16px 6px; background:linear-gradient(90deg,transparent,rgba(150,110,60,.45),transparent);
}
.rc-rule::after{
  content:"❖"; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  font-size:9px; color:#a8874e; background:#f3e8cd; padding:0 8px;
}
.rc-body{position:relative; z-index:1}
.rc-item{
  display:flex; justify-content:space-between; align-items:baseline; gap:14px;
  padding:9px 2px; font-size:12.5px;
  border-bottom:1px dashed rgba(150,110,60,.26);
}
.rc-item span{color:#8a7148; letter-spacing:.14em; flex-shrink:0}
.rc-item b{font-weight:500; color:#2f2210; text-align:right; word-break:break-all}
.rc-item.rc-dim b{color:#5d4a28; font-size:12px}
.rc-wish{padding:12px 2px 10px; border-bottom:1px dashed rgba(150,110,60,.26)}
.rc-wish span{display:block; font-size:12px; color:#8a7148; letter-spacing:.14em; margin-bottom:6px}
.rc-wish p{
  margin:0; font-size:13.5px; line-height:1.85; color:#2f2210;
  font-family:"Songti SC","STSong",serif; letter-spacing:.02em;
  padding-left:12px; border-left:2px solid rgba(150,40,28,.35);
}
.rc-foot{
  text-align:center; font-size:11px; letter-spacing:.14em; color:#8a7148; margin:14px 0 6px;
}
.rc-sign{
  display:flex; align-items:flex-end; justify-content:space-between;
  margin:10px 4px 6px; min-height:54px;
}
.rc-date{font-size:11px; letter-spacing:.14em; color:#8a7148}
.rc-seal{
  width:46px; height:46px; border:2px solid rgba(163,45,45,.85); border-radius:3px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  font-size:15px; line-height:1.05; letter-spacing:.04em; color:#a32d2d;
  font-family:"Songti SC",serif; transform:rotate(-4deg);
  box-shadow:inset 0 0 0 1px rgba(163,45,45,.25);
  opacity:.92;
}
.receipt-card .compliance-note{
  margin:8px 0 2px; font-size:9.5px; letter-spacing:.06em; text-align:center;
  color:rgba(120,95,60,.62);
}
.receipt-btn{width:100%; margin-top:9px; padding:12px; font-size:14px}

/* 凭证细节收尾：印章缩一档、次按钮改文字、四角云线 */
.rc-seal{width:40px;height:40px;font-size:13px;line-height:1.02}
.receipt-card .rc-back{display:block;margin:10px auto 0;font-size:12px;letter-spacing:.1em;color:#8a7148}
.receipt-card::before,.receipt-card::after{
  content:""; position:absolute; width:22px; height:22px; pointer-events:none;
  border:1px solid rgba(150,40,28,.4);
}
.receipt-card::before{left:14px;top:14px;border-right:none;border-bottom:none}
.receipt-card::after{right:14px;bottom:14px;border-left:none;border-top:none}

/* 2026-12-02 何先生令：凭证去掉「紫府」朱印（突兀），落款居中收束 */
.receipt-card .rc-sign{justify-content:center;min-height:auto;margin:14px 0 4px}
.receipt-card .rc-date{text-align:center;letter-spacing:.22em;color:#8a7148}
.receipt-card .rc-seal{display:none !important}

/* 落款与免责之间留一口气 */
.receipt-card .rc-sign{margin:14px 0 10px}
.receipt-card .compliance-note{margin:12px 0 4px}

/* 2026-12-02 何先生定：五殿跪拜人像按表重校（真武为基准不动）
   目标：人像底边落在各殿「供桌前地面」，不再贴桌沿 */
#scene-hunyuan  .kneel-figure{--kw:min(16vw,62px) !important; bottom:168px !important}
#scene-sanqing  .kneel-figure{--kw:min(17vw,68px) !important; bottom:158px !important}
#scene-caishen  .kneel-figure{--kw:min(16.5vw,64px) !important; bottom:162px !important}
#scene-wenchang .kneel-figure{--kw:min(16vw,62px) !important; bottom:166px !important}
#scene-yaowang  .kneel-figure{--kw:min(18vw,72px) !important; bottom:156px !important}

/* 2026-12-02：元辰殿 contain 上下留边柔化 —— 避免从六殿(cover满屏)进来时出现硬黑边 */
#scene-shrine::before{
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    linear-gradient(180deg, rgba(8,6,4,.92) 0%, rgba(8,6,4,.55) 7%, rgba(8,6,4,0) 16%),
    linear-gradient(0deg, rgba(8,6,4,.92) 0%, rgba(8,6,4,.5) 8%, rgba(8,6,4,0) 18%);
}


/* 2026-12-02 何先生令：取消「伸缩符榜」（底图已有整面符墙，两层重复）
   改为「我的符上墙闪一下」的单张高亮 */
#fuWall,#fuWallToggle{display:none !important}
.fu-onwall{
  position:absolute; z-index:4; width:30px; pointer-events:none;
  opacity:0; transform:translate(-50%,-50%) rotate(-2.5deg) scale(.85);
  transition:opacity .35s ease, transform .35s ease, filter .35s ease;
}
.fu-onwall img{width:100%; height:auto; display:block;
  box-shadow:0 1px 3px rgba(0,0,0,.6); border-radius:1px;
  filter:sepia(.18) brightness(.95)}
.fu-onwall.lit{
  opacity:1; transform:translate(-50%,-50%) rotate(-2.5deg) scale(1.22);
  filter:drop-shadow(0 0 7px rgba(255,214,130,.95)) drop-shadow(0 0 16px rgba(255,180,70,.55));
}

/* 上墙那面小符：贴近底图符墙的旧纸色，别太鲜黄 */
.fu-onwall img{filter:sepia(.34) saturate(.92) brightness(.92) contrast(.98)}
.fu-onwall.lit img{filter:sepia(.2) saturate(1) brightness(1.02)}

/* 2026-12-02：混元/财神/文昌 换新底图后重校跪拜落点（新地面更深，人像下移并略放大） */
#scene-hunyuan  .kneel-figure{--kw:min(17vw,66px) !important; bottom:146px !important}
#scene-caishen  .kneel-figure{--kw:min(17vw,66px) !important; bottom:146px !important}
#scene-wenchang .kneel-figure{--kw:min(16.5vw,64px) !important; bottom:148px !important}

/* 2026-12-02：元辰殿换回何先生认可的原图（v49b，光打在缪丙身上、无蒲团）
   contain 下图片显示 390×547、垂直居中（上下各 148px），地面在图片 0.90 处 → 人像落点 bottom≈200 */



/* 2026-12-02：元辰殿跪拜人像位置一律由 JS(layoutShrineKneel) 按 contain 几何计算，
   这里只留兜底尺寸，不要写 !important，否则会盖掉内联计算 */
#scene-shrine .shrine-bg-idle,#scene-shrine .shrine-bg-bow{background-repeat:no-repeat}

/* 2026-12-02 何先生令：香的烟改为「细长弯曲、沿香头上升」的实感形态
   旧的 6 个放大椭圆（一团白雾）停用，改由 canvas 绘制烟丝 */
.smoke{display:none !important}
.smoke-cv{
  position:absolute; bottom:116px; left:-58px; width:120px; height:160px;
  pointer-events:none; opacity:0; transition:opacity 1.2s ease;
  filter:none;
}
.joss.lit .smoke-cv{opacity:1}

/* 2026-12-02：财神殿换新底图（单供桌、整体后移），人像落点按新石案线（图片 0.713）重算 */
#scene-caishen .kneel-figure{--kw:min(18vw,70px) !important; bottom:132px !important}

/* 2026-12-02 何先生令：香烟改用真实烟缕素材（纯黑底 + screen 混合），
   细起→S形扭动→顶部散絮，比程序绘制真实得多 */
.smoke-cv{display:none !important}
.smoke-plume{
  position:absolute; bottom:61px; left:50%; width:54px; height:176px;
  transform:translateX(-50%);
  background:url(assets/smoke-plume-e65c6d38.webp) no-repeat center bottom;
  background-size:contain;
  pointer-events:none; z-index:2; opacity:0;
  -webkit-mask-image:linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,.92) 38%, rgba(0,0,0,.45) 72%, rgba(0,0,0,0) 100%);
          mask-image:linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,.92) 38%, rgba(0,0,0,.45) 72%, rgba(0,0,0,0) 100%);
}
.sky-smoke{
  position:absolute; left:50%; bottom:118px; width:400px; height:0;
  transform:translateX(-50%); transform-origin:50% 100%;
  background:url(assets/smoke-column-918c6b1d.webp) no-repeat center bottom;
  background-size:auto 100%;
  pointer-events:none; z-index:2; opacity:0;
}
.sky-smoke.go{animation:skyRise 5.4s cubic-bezier(.25,.6,.3,1) 1 both}
@keyframes skyRise{
  0%  {height:0;     opacity:0;   transform:translateX(-50%) scaleX(1);    filter:blur(0)}
  7%  {opacity:.95}
  26% {height:62vh;  opacity:.92; transform:translateX(-50%) scaleX(1.05); filter:blur(.2px)}
  36% {height:78vh;  opacity:.82; transform:translateX(-50%) scaleX(1.2);  filter:blur(.7px)}
  /* 36%–72% 停留（约 1.9 秒）：烟到顶、略散，不急着退 */
  60% {height:78vh;  opacity:.62; transform:translateX(-50%) scaleX(1.5);  filter:blur(1.6px)}
  72% {height:78vh;  opacity:.5;  transform:translateX(-50%) scaleX(1.8);  filter:blur(2.4px)}
  100%{height:80vh;  opacity:0;   transform:translateX(-50%) scaleX(2.3);  filter:blur(4px)}
}
