.chapter-entry-dialog{padding:0;border:1px solid #a78c61;border-radius:10px;width:min(920px,calc(100vw - 28px));height:min(660px,calc(100dvh - 28px));max-width:none;max-height:none;overflow:hidden;background:#11191e;color:#f1e6d2;box-shadow:0 28px 90px #0009}
.chapter-entry-dialog::backdrop{background:#03080de8;backdrop-filter:blur(5px)}
.chapter-entry-scene{position:relative;height:100%;isolation:isolate;overflow:hidden}
.chapter-entry-art,.chapter-entry-open{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 20%;z-index:-2}
.chapter-entry-scene::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#070d1644,transparent 45%,#070d1677)}
.chapter-entry-scene h2{position:absolute;top:20px;left:28px;margin:0;color:#dfc28f;font-family:inherit;font-size:21px;letter-spacing:.25em;text-shadow:0 2px 8px #000}
.chapter-entry-card{position:absolute;left:24px;right:24px;bottom:24px;padding:24px 28px 18px;border:1px solid #b49b6e;border-radius:8px;background:#101b25f2;box-shadow:0 4px 28px #0005;max-height:65%;overflow:auto}
.chapter-entry-speaker{margin:0 0 14px;color:#dcc095;font-size:17px;letter-spacing:.14em}
#chapter-entry-line{font:clamp(19px,2.3vw,26px)/1.8 Georgia,'Songti SC','STSong',serif;color:#f2e9db;margin:0;min-height:2em;overflow-wrap:anywhere}
.chapter-entry-controls{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:18px;color:#d0b17b}
.chapter-entry-count{font:14px/1.5 system-ui,sans-serif;letter-spacing:.1em}
.chapter-entry-next{font-family:inherit;font-size:17px;line-height:1.5;background:transparent;border:1px solid #aa8b59;color:#eed4a8;border-radius:5px;min-height:46px;padding:8px 16px;cursor:pointer}
.chapter-entry-next:disabled{opacity:.45;cursor:wait}.chapter-entry-next:focus-visible{outline:2px solid #f3d295;outline-offset:4px}
.prologue-entry .chapter-entry-art{filter:brightness(.56);transition:filter .7s,transform 1.45s}
.chapter-entry-open{opacity:0;transition:opacity 1.4s,transform 1.4s;filter:brightness(.86)}
.chapter-entry-glow{position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:0;background:radial-gradient(ellipse at 23% 33%,#e5b56842,transparent 42%);transition:opacity .8s}
.prologue-entry [data-step="1"] .chapter-entry-art{filter:brightness(.9)}
.prologue-entry [data-step="1"] .chapter-entry-glow{opacity:1}
.prologue-entry [data-step="2"] .chapter-entry-open{opacity:1;transform:scale(1.04)}
.prologue-entry [data-step="2"] .chapter-entry-art{transform:scale(1.08)}
@media(max-width:600px){.chapter-entry-dialog{width:calc(100vw - 20px);height:calc(100dvh - 28px);max-height:820px}.interlude-entry .chapter-entry-art{height:78%;object-position:32% top}.chapter-entry-card{left:12px;right:12px;bottom:14px;padding:18px 17px 14px}.chapter-entry-scene h2{left:20px;top:20px;font-size:18px}#chapter-entry-line{font-size:21px;line-height:1.8}.chapter-entry-next{font-size:16px;padding:8px 12px}.chapter-entry-speaker{font-size:16px;margin-bottom:10px}}
@media(max-height:480px){.chapter-entry-dialog{height:calc(100dvh - 12px)}.chapter-entry-card{left:14px;right:14px;bottom:10px;padding:12px 18px}.chapter-entry-speaker{margin-bottom:4px;font-size:14px}#chapter-entry-line{font-size:18px;line-height:1.5}.chapter-entry-controls{margin-top:8px}.chapter-entry-next{min-height:40px;padding:4px 12px}.chapter-entry-scene h2{top:10px;left:18px;font-size:16px}}
@media(prefers-reduced-motion:reduce){.chapter-entry-art,.chapter-entry-open,.chapter-entry-glow{transition:none!important;transform:none!important}}
