/* 古庙逃生：七关剧情反馈。新增元素不覆盖计时、操作区和数格。 */
#str-demo{padding:.35rem 0;text-align:center}
#str-demo .btn-ghost{width:auto;margin:2px;min-height:44px}
#str-demo-question p{margin:4px 0;color:#e8d8ae}
#str-demo-question strong{display:inline-block;background:#faf0d0;color:#174e94;padding:.15em .42em;border-radius:4px;font-size:1.55em}
#str-demo-feedback{margin:3px 4px;color:#ffdd87}
#str-stage .str-door{position:absolute;z-index:2;inset:auto 10% 7px;display:flex;justify-content:center;gap:6px;pointer-events:none}
.str-door i{width:24px;height:7px;border-radius:2px;background:#634c30;border:1px solid #a68c54;transition:opacity .2s,transform .2s}
.str-door:is([data-unlocked="1"],[data-unlocked="2"],[data-unlocked="3"],[data-unlocked="4"]) i:nth-child(1),
.str-door:is([data-unlocked="2"],[data-unlocked="3"],[data-unlocked="4"]) i:nth-child(2),
.str-door:is([data-unlocked="3"],[data-unlocked="4"]) i:nth-child(3),
.str-door[data-unlocked="4"] i:nth-child(4){background:#ffe5a0;border-color:#fff1b9;box-shadow:0 0 10px #ffcf65;transform:translateY(-3px)}
.rx-practice-row{text-align:center;margin:10px auto 4px}
.rx-practice-row button{min-height:44px}
.rx-door{position:absolute;left:50%;bottom:4px;width:132px;height:144px;translate:-50% 0;display:flex;perspective:300px;border:3px solid #9a7649;border-radius:62px 62px 6px 6px;background:radial-gradient(ellipse at bottom,#ffc76c77,transparent 70%),#35251d;z-index:-1}
.rx-door i{width:50%;background:repeating-linear-gradient(90deg,#4c3021 0 11px,#6e4730 12px 13px);border:1px solid #896447;transition:transform .35s ease;border-radius:58px 0 0 3px;transform-origin:left}
.rx-door i+i{transform-origin:right;border-radius:0 58px 3px 0}
.rx-open .rx-door{background:radial-gradient(ellipse at bottom,#ffdb8d,#6e4a29 75%)}
.rx-open .rx-door i{transform:rotateY(-65deg)}
.rx-open .rx-door i+i{transform:rotateY(65deg)}
.stone-path:not([hidden]){display:grid;grid-template-columns:repeat(25,minmax(0,1fr));gap:2px;margin:6px 0}
.stone-path i{height:5px;border-radius:2px;background:#554a36}
.stone-path i.lit{background:#ffdb78;box-shadow:0 0 5px #f7b34790}
.rhythm-hurdles{position:absolute;z-index:5;bottom:5px;left:8px;display:flex;gap:4px;pointer-events:none}
.rhythm-hurdles i{width:12px;height:8px;border:1px solid #d5ab60;border-radius:3px;background:#493c2d}
.rhythm-hurdles i.cleared{background:#ffd477;box-shadow:0 0 8px #f3ba5c}
.rhythm-hurdles i.missed{opacity:.55}
.zy-boy.vault i{animation:story-vault .52s ease-out}
@keyframes story-vault{0%,100%{translate:0 0}45%{translate:12px -31px;rotate:-12deg}}
.sc-rhythm-tap.beat-now{outline:3px solid #ffdc84;outline-offset:2px}
#gm-lotus #lotus-practice[hidden]{display:none}
#gm-lotus .lotus-story-actions{flex-wrap:wrap}
@media (prefers-reduced-motion:reduce){.rx-door i,.str-door i{transition:none}.zy-boy.vault i{animation:none}}
/* 门缝的光逐段加亮，门闩上提，不挡墨色和反馈。 */
#str-stage .str-door::before{content:"";position:absolute;inset:auto 0 0;height:18px;border-radius:50%;background:radial-gradient(ellipse,#ffe098c9,transparent 70%);opacity:0;pointer-events:none}
#str-stage .str-door[data-unlocked="1"]::before{opacity:.23}
#str-stage .str-door[data-unlocked="2"]::before{opacity:.43}
#str-stage .str-door[data-unlocked="3"]::before{opacity:.68}
#str-stage .str-door[data-unlocked="4"]::before{opacity:1}
.str-door i{z-index:1}
#scPad:focus-visible,#scRxPractice:focus-visible{outline:2px solid #ffdc84;outline-offset:3px}
