/* The approved version 46 shell and neon palette remain the visual authority. */
/* Escalating impacts, two gentle blinks, and four distinct comeback panels. */
.story-theatre[data-event=bounce]{--boom:1}.story-theatre[data-boom='2']{--boom:1.15}.story-theatre[data-boom='3']{--boom:1.3}.story-theatre[data-event=bounce] .theatre-caption{font-size:calc(39px * var(--boom));text-shadow:3px 3px #6b3017}.story-theatre[data-event=bounce] .theatre-floor{animation:boom-room .6s ease-out}.story-theatre[data-event=wake] .theatre-five{animation:five-wakes 2s ease-out both}.reading-impact[data-event=wake] .impact-five{animation:five-wakes 2s ease-out both}.reading-impact[data-event=wake]{background:radial-gradient(ellipse,#c6922733,transparent 65%)}
@keyframes five-wakes{0%,16%,38%{opacity:.1;transform:scale(.8)}8%,29%{opacity:.65;transform:scale(.88)}52%,88%{opacity:1;transform:scale(1);filter:drop-shadow(0 0 22px #fff04a)}100%{opacity:0;transform:scale(1.04)}}
@keyframes boom-room{15%{transform:translateY(4px);opacity:.7}45%{transform:translateY(-2px)}100%{transform:translateY(0)}}
.story-theatre[data-comeback] .theatre-signal{display:block;opacity:1;padding:12px 18px;background:#082843e8;border:2px solid #58e8ff;box-shadow:5px 5px 0 #0005;color:#fff0bb;right:7%;top:40%;max-width:53%;font:italic 900 clamp(25px,4vw,42px)/1.05 var(--display)}.story-theatre[data-comeback='2'] .theatre-lights{opacity:.14}.story-theatre[data-comeback='3'] .theatre-lights{opacity:.6}.story-theatre[data-comeback='4'] .theatre-lights{opacity:1}.story-theatre[data-event=finale] .theatre-lights{filter:sepia(.6);opacity:.7}.reading-impact[data-event=finale]{background:radial-gradient(ellipse,#103d59c9,#071a3688 50%,transparent 80%)}
.closing-page{max-width:1050px;color:#fff;padding-top:24px}.closing-nav{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px}.closing-nav>span{font-size:12px;letter-spacing:1.5px;color:#58e8ff;text-align:center}.closing-nav button,.closing-reset{min-height:44px;border:1px solid #58e8ff;background:#173e70;color:#fff;border-radius:9px;padding:10px 15px;font-size:15px;font-weight:700;cursor:pointer}.closing-panel{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:30px;padding:38px;background:radial-gradient(at 90% 20%,#2455ef99,transparent 55%),#103c8a;border:2px solid #58e8ff;border-radius:16px;box-shadow:0 6px 0 #2455ef}.closing-copy{position:relative;z-index:1}.closing-copy>.sports-kicker{color:#58e8ff;letter-spacing:1.4px}.closing-copy h1{font:italic 900 clamp(39px,5vw,62px)/1.02 var(--display);text-transform:uppercase;color:#fff04a;margin:16px 0;text-shadow:2px 3px #5d371b}.closing-copy>p{font-size:18px;line-height:1.6;color:#e7f0f5}.closing-book-note{display:grid;gap:7px;border-left:3px solid #ff7828;padding:10px 16px;margin:22px 0}.closing-book-note>b{font-size:12px;letter-spacing:1.2px;color:#58e8ff}.closing-book-note>span{font-weight:700;line-height:1.4}.closing-player{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:20px}.closing-player .btn{min-height:52px}.closing-player p{flex-basis:100%;font-size:15px;line-height:1.5;color:#e3eded;margin:10px 0}.closing-player .audio-track{flex-basis:100%;background:#1e5267;height:6px}.closing-player .audio-track i{background:#fff04a}.closing-emblem{align-self:center;position:relative;text-align:center;display:grid;place-items:center;isolation:isolate;padding:30px 0}.closing-emblem>b{font:900 clamp(100px,20vw,200px)/1 var(--display);color:#fff04a;text-shadow:0 4px #a55317,0 0 35px #fff04a66}.closing-emblem>span{font-weight:800;font-size:13px;letter-spacing:1px;max-width:210px;line-height:1.6;color:#b6f4eb;margin-top:22px}.closing-orbit{position:absolute;z-index:-1;border:1px solid #58e8ff88;border-radius:50%;width:245px;height:245px;box-shadow:0 0 0 20px #58e8ff14,0 0 0 40px #58e8ff0c;transform:rotate(-15deg)}.closing-bottom{grid-column:1/-1;display:flex;gap:20px;align-items:center;justify-content:space-between;border-top:1px solid #6d8a8b66;padding-top:22px}.closing-bottom>p{font-size:14px;color:#d3ecff}.closing-bottom .btn{min-height:54px}.closing-trail{display:flex;justify-content:center;gap:12px;list-style:none;padding:10px 0;flex-wrap:wrap}.closing-trail li{font-size:13px;color:#91adb9;padding:10px;border-bottom:2px solid transparent}.closing-trail [aria-current]{color:#b9ff38;border-color:#fff04a}.closing-page [data-closing]{min-width:0}
@media(max-height:650px) and (min-width:700px){.closing-page{padding-top:12px}.closing-nav{margin-bottom:10px}.closing-panel{padding:22px 28px;gap:16px}.closing-copy h1{font-size:40px;margin:12px 0}.closing-copy>p{font-size:16px;line-height:1.45;margin:10px 0}.closing-book-note{margin:14px 0;padding:7px 12px}.closing-player{margin-top:12px}.closing-bottom{padding-top:12px}.closing-trail{margin:8px 0}.closing-emblem>b{font-size:150px}}
@media(prefers-reduced-motion:reduce){.story-theatre *, .reading-impact *{animation:none!important;transition:none!important}}.reduce-motion .story-theatre *, .reduce-motion .reading-impact *{animation:none!important;transition:none!important}


#closeDialog{width:44px;height:44px;min-height:44px;min-width:44px;display:grid;place-items:center;padding:0}
.reader-v5 .story-theatre[data-event=bounce] .theatre-caption{display:block;left:auto;right:12%;bottom:30%;font:italic 900 calc(40px * var(--boom))/1 var(--display);letter-spacing:0;color:#fff04a;text-shadow:3px 3px #572c16}
.topbar #soundBtn,.topbar #settingsBtn{min-height:44px}.topbar #soundBtn{min-width:44px}
@media(max-height:650px) and (min-width:700px){.closing-panel{padding:16px 24px;gap:12px}.closing-copy h1{font-size:36px;margin:8px 0}.closing-copy>p{margin:8px 0;font-size:16px;line-height:1.4}.closing-book-note{margin:8px 0;padding:5px 12px}.closing-player{gap:8px;margin-top:8px}.closing-player p{margin:4px 0}.closing-bottom{padding-top:8px}.closing-bottom>p{margin:4px 0}.closing-trail{margin:4px 0}.closing-nav{margin-bottom:8px}.closing-emblem{padding:10px 0}}
.edition-tag{font-weight:800;font-size:12px;letter-spacing:1.5px;color:#b8eaff}
body:has(.closing-page){background:radial-gradient(ellipse at 100% 4%,#174eb0 0,transparent 44%),radial-gradient(ellipse at 0 80%,#075c66 0,transparent 44%),#081e46}
.closing-copy h1{text-shadow:2px 3px #081e46}.closing-orbit{border-color:#58e8ff}.closing-trail [aria-current]{color:#b9ff38;border-color:#b9ff38}.closing-player .audio-track i{background:#b9ff38}.closing-emblem>b{color:#fff04a;text-shadow:0 4px #ff7828,0 0 35px #fff04a66}
.closing-nav button,.closing-reset{border-color:#58e8ff}.closing-reset:hover{background:#2455ef}.closing-page .sports-kicker{color:#58e8ff}
@media(max-width:600px){.edition-tag{display:none}}
@media(max-width:800px){.closing-panel{padding:26px;gap:20px}.closing-orbit{width:185px;height:185px}.closing-emblem>b{font-size:140px}}
@media(max-width:600px){.closing-panel{grid-template-columns:minmax(0,1fr);padding:22px}.closing-emblem{display:none}.closing-bottom{flex-direction:column;align-items:stretch;gap:8px}.closing-copy h1{font-size:40px}.closing-copy>p{font-size:17px}.closing-nav>span{display:none}.closing-trail{gap:2px}.closing-trail li{font-size:12px;padding:9px 6px}.reader-v5 .read-stage-top .scene-kicker{font-size:12px}}
