/* Story effects stay alive. Clear paper/tablet cues support the printed reading. */
.reader-v4 .reading-cue{font-size:15px;letter-spacing:.6px;font-weight:900;line-height:1.4}
.book-return{text-align:center;padding:8px 0}
.book-return .eyebrow{justify-content:center;font-size:12px}
.book-return h2{font-size:40px!important;margin:20px 0 14px}
.book-return p{font-size:20px!important;line-height:1.5!important}
.book-return .btn{width:100%;min-height:58px;font-size:19px;margin:15px 0 0}
.chapter-word{padding:18px 20px;background:#e9f0e0;border:1px solid #b5c8b4;border-radius:12px;margin:15px 0;color:#14374a;text-align:left}
.chapter-word>span{font-size:11px;letter-spacing:1px;font-weight:800}
.chapter-word h3{font-family:var(--display);font-size:32px;text-transform:uppercase;margin:9px 0}
.chapter-word p{font-size:18px!important;line-height:1.45!important;margin:0!important;color:#294c55!important}
.chapter-clue-list{display:grid;gap:10px;margin:18px 0}
.chapter-clue-list .look-choice{min-height:80px}
.chapter-clues-button{width:100%;min-height:52px;font-size:17px;margin-bottom:12px;text-align:left;white-space:normal}
.chapter-discoveries>.btn{width:100%;min-height:54px;font-size:17px}
.clue-done{font-size:16px!important;color:#315d49!important;line-height:1.5!important;margin:12px 0!important}
.reader-v4 #panel .page-look-entry{margin:14px 0}
.reader-v4 #pageLanded{font-size:29px;margin:12px 0}
.reader-v4 .read-settings>summary{font-size:14px;min-height:46px}
.advanced-voice{margin:20px 0;font-size:16px;line-height:1.5}
.advanced-voice summary{min-height:48px;cursor:pointer}
.advanced-voice .btn{width:100%;margin:8px 0;min-height:52px}
.complete-view>.btn{display:block;max-width:440px;margin:14px auto;min-height:54px;font-size:18px}
@media(max-width:700px){
 .reader-v4 .reading-cue{font-size:13px}
 .reader-v4 #pageLanded{font-size:27px}
 .chapter-word{padding:16px;margin:14px 0}
 .chapter-word p{font-size:17px!important}
 .chapter-word h3{font-size:29px}
 .book-return h2{font-size:32px!important}
 .book-return p{font-size:18px!important}
 .chapter-clue-list .look-choice b{font-size:23px}
}
/* Entry cards start their modes directly; no second Start selection is needed. */
.entrance-v2 #start,.entrance-v2 .start-note,.entrance-v2 .book-first,.entrance-v2 .court-marquee{display:none}
/* The restored Five gives two soft pulses, then a glow. */
.reading-impact[data-event=wake] .impact-five{animation:paper-five-wake 1.9s ease-in-out both}
@keyframes paper-five-wake{0%{opacity:0;transform:scale(.82)}24%{opacity:1;transform:scale(1)}44%{opacity:.25}65%{opacity:1}80%{opacity:.5}100%{opacity:1;transform:scale(1.03)}}
/* The reward lives inside the same dialog as the single return-to-paper action. */
#dialog:has(.reading-magic){background:#0b2947;color:#fff2d5;border:1px solid #dcb36b}
#dialog:has(.reading-magic) .dialog-close{color:#ffe4b3}
.book-return .reading-magic h2{font-size:clamp(27px,5vw,39px)!important;color:#ffe09c;margin:16px 0 10px}
.book-return .reading-magic .eyebrow{color:#f1c47a}
.book-return .magic-link{font-size:17px!important;color:#e0e9e5;margin:0;line-height:1.45!important}
.book-return .paper-return-line{font-size:17px!important;color:#fff5e0;line-height:1.45!important;margin:20px 0 4px}
.book-return .btn{background:#f36d27;border-color:#f36d27;color:#fff}
.magic-word{display:inline-block;padding:7px 16px;margin-top:12px;border:1px solid #c6a66b;border-radius:30px;color:#ffe09c;font-size:15px;font-weight:900;text-transform:uppercase;letter-spacing:1px}
.magic-payoff{position:relative;height:150px;overflow:hidden;margin:16px 0 0;border-radius:16px;background:radial-gradient(ellipse at 50% 80%,#386c74,#12334f 70%);border:1px solid #6d827b}
.payoff-rays{position:absolute;inset:0;opacity:.5;background:repeating-conic-gradient(from 0deg at 50% 85%,transparent 0deg 19deg,#f1c36933 20deg 25deg);animation:payoff-rays 1.8s ease-out both}
.payoff-ball{position:absolute;width:44px;height:44px;left:calc(50% - 22px);top:80px;animation:payoff-shot 1.35s ease-out both}
.payoff-ball svg{width:100%;height:100%}
.payoff-hoop{position:absolute;left:calc(50% - 44px);top:40px;width:88px;height:20px;border:5px solid #f59244;border-radius:50%;z-index:2}
.payoff-hoop:before{content:'';position:absolute;width:104px;height:51px;left:-13px;bottom:10px;border:2px solid #e3ede4;background:#0c294344;border-radius:3px;z-index:-1}
.payoff-hoop i{position:absolute;left:7px;right:7px;top:14px;height:38px;border:2px solid #f2eed7;border-top:0;clip-path:polygon(0 0,100% 0,80% 100%,20% 100%);background:repeating-linear-gradient(55deg,transparent 0 10px,#f2eed755 11px 12px);animation:payoff-net 1.35s ease-out both}
.payoff-five,.payoff-team,.payoff-shine,.payoff-path{display:none}
.reading-magic[data-magic=glow] .payoff-hoop,.reading-magic[data-magic=glow] .payoff-ball,.reading-magic[data-magic=shine] .payoff-hoop,.reading-magic[data-magic=shine] .payoff-ball,.reading-magic[data-magic=resolve] .payoff-hoop,.reading-magic[data-magic=resolve] .payoff-ball,.reading-magic[data-magic=connection] .payoff-hoop,.reading-magic[data-magic=team] .payoff-hoop{display:none}
.reading-magic[data-magic=glow] .payoff-five,.reading-magic[data-magic=dream] .payoff-five{display:block;position:absolute;inset:5px 0 0;font:900 135px/1 var(--display);color:#ffda7c;text-shadow:0 0 35px #eebb4c;animation:payoff-glow 1.9s ease-out both}
.reading-magic[data-magic=dream] .payoff-five{font-size:105px;left:auto;right:22px;top:20px;opacity:.35}
.reading-magic[data-magic=team] .payoff-team,.reading-magic[data-magic=connection] .payoff-team{position:absolute;inset:34px 20px auto;display:flex;justify-content:space-around;gap:10px}
.payoff-team i{font:900 22px/1 var(--display);font-style:normal;color:#12324b;background:#f1b65d;padding:17px 10px;min-width:64px;border-radius:12px;animation:payoff-team .8s ease-out both}
.payoff-team i:nth-child(2){animation-delay:.18s}.payoff-team i:nth-child(3){animation-delay:.36s}
.reading-magic[data-magic=team] .payoff-ball,.reading-magic[data-magic=connection] .payoff-ball{top:99px;animation:payoff-pass 1.45s ease-in-out both;width:35px;height:35px}
.reading-magic[data-magic=shine] .payoff-shine{display:block;position:absolute;inset:48px 0 auto;font:900 clamp(36px,8vw,62px)/1 var(--display);color:#ffe09b;text-shadow:0 0 24px #e9b857;animation:payoff-glow 1.9s ease-out both}
.reading-magic[data-magic=resolve] .payoff-path{display:flex;justify-content:center;gap:19px;position:absolute;inset:57px 0 auto}
.payoff-path i{width:28px;height:28px;border:2px solid #ffd48b;transform:rotate(45deg);background:#e4bd6677;animation:payoff-team 1.2s ease-out both}.payoff-path i:nth-child(2){animation-delay:.2s}.payoff-path i:nth-child(3){animation-delay:.4s}
@keyframes payoff-shot{0%{transform:translate(-95px,60px) rotate(-90deg);opacity:0}20%{opacity:1}55%{transform:translate(-8px,-90px) rotate(90deg)}75%{transform:translate(0,-48px) scale(.85)}100%{transform:translate(0,8px) rotate(220deg)}}
@keyframes payoff-net{60%{transform:scaleY(1)}78%{transform:scaleY(1.22)}100%{transform:scaleY(1)}}
@keyframes payoff-glow{0%{opacity:.15;transform:scale(.8)}25%{opacity:1}45%{opacity:.3}65%,100%{opacity:1;transform:scale(1)}}
@keyframes payoff-rays{from{opacity:0;transform:scale(.8)}to{opacity:.5;transform:scale(1)}}
@keyframes payoff-team{from{opacity:.2;translate:0 15px}to{opacity:1;translate:0 0}}
@keyframes payoff-pass{0%{transform:translateX(-95px) rotate(-90deg)}45%{transform:translate(0,-18px)}100%{transform:translateX(95px) rotate(180deg)}}
.reduce-motion .magic-payoff *{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){.magic-payoff *{animation:none!important;transition:none!important}}
@media(max-width:360px){.magic-payoff{height:125px}.reading-magic[data-magic=glow] .payoff-five{font-size:115px}.book-return .magic-link,.book-return .paper-return-line{font-size:15px!important}.payoff-team i{font-size:18px;min-width:52px;padding:15px 7px}.reading-magic[data-magic=team] .payoff-team,.reading-magic[data-magic=connection] .payoff-team{inset:24px 10px auto}}
#dialogBody .reading-magic h2{color:#ffe09c}
#dialogBody .reading-magic .magic-link{color:#e0e9e5}
#dialogBody .book-return .paper-return-line{color:#fff5e0}
/* A familiar page button stays beside the single main reading action. */
.dock-pages{flex:none;min-height:52px;min-width:82px;padding:10px 13px;border:1px solid #9baea8;border-radius:10px;background:#1b3b54;color:#fff2d4;font:800 16px/1.2 var(--body,Arial,sans-serif);cursor:pointer}
.dock-pages:hover{background:#2a5065}
.book-map-root>#mapResume{width:100%;min-height:52px;font-size:17px;margin:8px 0 18px}
.map-chapter-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-bottom:18px}
.map-chapter-tabs button{display:grid;justify-items:center;gap:4px;min-height:68px;padding:9px 3px;background:#efe7d2;border:1px solid #a9b8b8;border-radius:11px;color:#14354f;cursor:pointer}
.map-chapter-tabs small{font-size:9px;font-weight:800;letter-spacing:.2px}.map-chapter-tabs b{font:900 29px/1 var(--display)}
.map-chapter-tabs [aria-selected=true]{background:#153b55;color:#ffe1a2;border:2px solid #cf783c}
#mapChapterPanel{padding:17px;background:#f5efdf;border:1px solid #d1c6ac;border-radius:13px}
#mapChapterPanel h3{font-family:var(--display);font-size:29px;line-height:1.1;color:#10334d;margin:0 0 14px}
#dialogBody .map-pick-label{font-size:14px;font-weight:700;color:#49616a;margin:0 0 9px}
#mapChapterPanel .map-pages{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:0 0 16px}
#mapChapterPanel .map-pages button{min-width:0;min-height:77px;padding:8px 1px;display:grid;justify-items:center;align-content:center;gap:2px;font-size:25px;background:#fff9e9}
#mapChapterPanel .map-pages button small{font-size:10px;letter-spacing:.5px}
#mapChapterPanel .map-pages button span{font-size:13px;min-height:12px;color:#3b6644}
#mapChapterPanel .map-pages button.done{background:#d9e9cf}
#mapChapterPanel .chapter-clues-button{border:1px solid #a9b8aa;border-radius:9px;padding:12px;background:#e4ecda;color:#204959;font-weight:700;font-size:16px;line-height:1.35;cursor:pointer}
.map-word{display:grid;gap:6px;font-size:16px;line-height:1.45;color:#36535b;padding:6px 2px}
.map-word b{font-size:20px;text-transform:capitalize;color:#173d53}
.map-special-pages{margin:18px 0 0;border:1px solid #cbbda3;border-radius:12px;padding:0 15px;background:#fff9ec}
.map-special-pages summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:58px;font-size:18px;font-weight:800;color:#173b52;cursor:pointer;list-style:none}
.map-special-pages[open] summary{border-bottom:1px solid #d6c9b3}
.map-special-pages .map-leaf{font-size:16px;line-height:1.4;gap:14px;padding:10px 0;border-bottom:1px solid #e6ddc9}
.map-special-pages .map-leaf .btn{flex:none;min-height:48px;font-size:15px;padding:10px 12px}
.next-scene{position:relative;overflow:hidden;display:flex;align-items:center;gap:18px;min-height:118px;padding:20px;border-radius:14px;background:radial-gradient(ellipse at 18% 60%,#407b77,#15344e 65%);color:#ffe0a1;margin:18px 0}
.next-scene:before{content:'';position:absolute;inset:0;background:repeating-conic-gradient(from 0deg at 15% 60%,transparent 0deg 24deg,#f7d39112 25deg 30deg);pointer-events:none}
.next-scene-ball{flex:none;width:61px;height:61px;filter:drop-shadow(0 0 12px #e8bd5c99);animation:next-scene-bounce 1.1s ease-out both}.next-scene-ball svg{width:100%;height:100%}
.next-scene>span:last-child{position:relative;display:grid;gap:8px}.next-scene small{font-size:12px;letter-spacing:.7px;font-weight:800;color:#f2d28e}.next-scene b{font:800 clamp(24px,4vw,32px)/1.1 var(--display);color:#fff3da}
.reader-v4.world-night .theatre-lights i{background:linear-gradient(#8df0d866,transparent)}
.reader-v4.world-captain .theatre-lights i{background:linear-gradient(#ffe2a580,transparent)}
.reader-v4.world-captain .theatre-hoop{filter:drop-shadow(0 0 14px #ffca6577)}
@keyframes next-scene-bounce{0%{transform:translateY(-25px) rotate(-25deg);opacity:.4}55%{transform:translateY(8px) rotate(15deg);opacity:1}100%{transform:translateY(0) rotate(0)}}
.reduce-motion .next-scene-ball{animation:none!important}@media(prefers-reduced-motion:reduce){.next-scene-ball{animation:none!important}}
@media(max-width:700px){.dock-pages{min-width:79px;padding:11px 9px;font-size:16px}.map-chapter-tabs{gap:5px;margin-bottom:13px}.map-chapter-tabs button{min-height:62px}.map-chapter-tabs small{font-size:8px}.map-chapter-tabs b{font-size:27px}#mapChapterPanel{padding:14px 11px}#mapChapterPanel h3{font-size:26px}#mapChapterPanel .map-pages{gap:5px}#mapChapterPanel .map-pages button{font-size:23px;min-height:73px}#mapChapterPanel .map-pages button small{font-size:9px}.map-word{font-size:15px}.map-special-pages{padding:0 12px}.map-special-pages summary{font-size:17px}.map-special-pages .map-leaf{font-size:15px}.next-scene{padding:18px 15px;gap:14px;min-height:111px}.next-scene-ball{width:48px;height:48px}.next-scene small{font-size:10px}.next-scene b{font-size:26px}}
@media(max-width:360px){#dialog:has(.book-map-root){padding:18px 12px}#mapChapterPanel{padding:14px 10px}.map-chapter-tabs small{font-size:8px}#mapChapterPanel .map-pages button{min-width:44px}.book-map-root #mapResume{font-size:16px}}
/* The story keeps flowing after a completed reading turn. Pause is optional. */
.book-return .paper-return-line{min-height:50px}
.page-cast-replay{display:flex;align-items:center;gap:15px;width:100%;text-align:left;padding:18px;margin:16px 0;border:1px solid #c1a469;border-radius:13px;background:#153c54;color:#fff0cc;cursor:pointer}
.page-cast-replay>span:first-child{font-size:34px;color:#ffd486}.page-cast-replay>span:nth-child(2){display:grid;gap:7px;flex:1}.page-cast-replay b{font:800 24px/1.1 var(--display)}.page-cast-replay small{font-size:15px;line-height:1.4;color:#d8e8df}.page-cast-replay strong{font-size:25px}
.playback-help{margin:20px 0;font-size:14px}.playback-help summary{min-height:44px;cursor:pointer}.playback-help ol{line-height:1.7;overflow-wrap:anywhere}
.theatre-signal{position:absolute;right:5%;top:41%;max-width:44%;opacity:0;transform:translateY(14px);font:900 clamp(24px,4vw,42px)/1 var(--display);color:#ffe5a5;padding:13px;border:1px solid #caa86c;background:#12354de8;border-radius:8px;box-shadow:0 0 25px #e5b65b33;text-align:center}
.story-theatre:is([data-event=coach],[data-event=varsity],[data-event=offer],[data-event=belong]) .theatre-signal{animation:scene-signal 1.6s ease-out both}
.story-theatre[data-event=coach] .theatre-lights{opacity:.65;filter:sepia(.6)}
.story-theatre[data-event=varsity] .theatre-crowd,.story-theatre[data-event=belong] .theatre-crowd{opacity:.8}
.story-theatre[data-event=varsity] .theatre-crowd i{animation:cinema-fan .6s ease-in-out 2 alternate}
.story-theatre[data-event=offer] .theatre-lights{opacity:1}
.story-theatre[data-event=belong] .theatre-ball{animation:cinema-dunk 1.5s ease-out both}
@keyframes scene-signal{0%{opacity:0;transform:translateY(14px) scale(.95)}25%,80%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-6px)}}
.payoff-replay{display:none}
.reading-magic[data-magic=replay] .payoff-hoop,.reading-magic[data-magic=replay] .payoff-ball{display:none}
.reading-magic[data-magic=replay] .payoff-replay{display:grid;position:absolute;inset:20px 12px;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.payoff-replay>span{display:grid;place-content:center;gap:10px;background:#16475b;border:1px solid #b7a16f;border-radius:10px;color:#ffe0a1;animation:payoff-team .8s ease-out both}.payoff-replay>span:nth-child(2){animation-delay:.15s}.payoff-replay>span:nth-child(3){animation-delay:.3s}.payoff-replay>span:nth-child(4){animation-delay:.45s}
.payoff-replay b{font:900 37px/1 var(--display)}.payoff-replay small{font:800 8px/1.4 Arial,sans-serif;letter-spacing:.1px;color:#e3eedd;padding:0 3px}
.reduce-motion .theatre-signal,.reduce-motion .payoff-replay *{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){.theatre-signal,.payoff-replay *{animation:none!important;transition:none!important}}
@media(max-width:700px){.theatre-signal{font-size:24px;right:4%;top:44%;padding:10px;max-width:48%}.page-cast-replay{padding:15px 13px;gap:12px}.page-cast-replay b{font-size:23px}.page-cast-replay small{font-size:14px}.payoff-replay b{font-size:31px}.reading-magic[data-magic=replay] .payoff-replay{inset:22px 7px;gap:5px}}

.story-theatre[data-reduced=true]:is([data-event=coach],[data-event=varsity],[data-event=offer],[data-event=belong]) .theatre-signal{opacity:1;transform:none}
