.tx-edition .tx-story-surface { position:absolute;inset:0;z-index:101;pointer-events:none;background:#0b161c;overflow:hidden; }
.tx-story-surface img { width:100%;height:100%;object-fit:cover;object-position:50% 43%; }
.tx-story-surface::after { content:"";position:absolute;inset:0;background:linear-gradient(transparent 40%,#06131b70 65%,#06131bc9); }
.tx-story-open #dialogue-box { top:auto;bottom:6rem;height:20rem;background:#102129ec;transform:translateX(-50%); }
.tx-story-open #dialogue-head-wrap,.tx-story-open #dialogue-player-wrap { display:none!important; }
.tx-story-open #dialogue-text { left:3rem;top:5.2rem;width:calc(100% - 6rem);height:10rem; }
.tx-story-open #speaker-name { left:3rem;top:1.5rem;width:auto;height:2.6rem;justify-content:flex-start;font:500 1.6rem/1.5 "STKaiti","KaiTi",serif;letter-spacing:.15em;word-break:normal;white-space:nowrap;color:#d7b77a; }
.tx-story-open #tx-chapter-header { visibility:hidden; }
.tx-mobile .tx-story-surface { position:fixed;z-index:64; }
.tx-mobile .tx-story-surface img { object-fit:contain;object-position:50% 20%; }
.tx-mobile.tx-story-open #dialogue-box { top:auto;bottom:calc(13rem + env(safe-area-inset-bottom));height:auto;max-height:30dvh;min-height:9rem;transform:none; }
.tx-mobile.tx-story-open #dialogue-text { left:auto;top:auto;width:auto;height:auto;min-height:0; }
.tx-mobile.tx-story-open #speaker-name { position:static;left:auto;top:auto;width:auto;height:auto;margin-bottom:.7rem;font-size:1.1rem; }
@media (orientation:landscape) and (max-width:960px) {
 .tx-mobile .tx-story-surface img { object-fit:cover;object-position:50% 32%; }
 .tx-mobile.tx-story-open #dialogue-box { bottom:5.7rem;min-height:0;max-height:28dvh; }
}
