/* Fixed reading and illustration panels: only their contents change. */
.standby-screen .phone-call{justify-content:center;gap:10px;padding-bottom:55px}
.standby-screen .charging-battery{width:72px;height:40px;color:#bdebd9;margin-bottom:10px}
.standby-screen .phone-call strong{font-size:23px}
.standby-screen .phone-call>span{font-size:12px;line-height:1.4}
body.playing{height:100dvh;overflow:hidden;display:flex;flex-direction:column;padding-bottom:0}
body.playing>header,body.playing>#radio-credit{flex:none}
body.playing>#app{flex:1;min-height:0;overflow:hidden}
body.playing>.site-footer{display:none}
.viewport-player.play-shell{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;grid-template-areas:'image reader' 'tools tools';height:100%;min-height:0;max-width:1200px;width:100%;overflow:hidden;background:#fff8e9}
.viewport-player .stage{grid-area:image;position:relative;top:auto;height:100%;min-height:0;max-height:none;width:100%;border-radius:0}
.viewport-player .stage.framed-stage{height:100%;min-height:0;max-height:none}
.viewport-player .framed-stage .scene-window{flex:1;min-height:0;height:auto;aspect-ratio:auto}
.viewport-player .stage-toolbar{display:flex;align-items:center;gap:6px;padding:3px 8px;min-height:34px}
.viewport-player .stage-toolbar .location{flex:1;min-width:0;gap:6px;font-size:9px;letter-spacing:.4px}
.viewport-player .stage-toolbar .location span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.viewport-player .scene-tool{flex:none;min-width:30px;height:28px;padding:0;border:1px solid #b5d2ba;border-radius:8px;color:#fff3c9;background:#2d6254;font-size:19px;line-height:1}
.viewport-player .scene-dock{height:28px;min-height:28px;padding:3px 10px;overflow:hidden}
.viewport-player .scene-dock .storyboard-label{font-size:11px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.viewport-player .scene-dock .hotspots{display:none}
.viewport-player .reading{grid-area:reader;display:flex;flex-direction:column;gap:10px;min-height:0;height:100%;max-width:none;margin:0;padding:18px 22px;overflow:hidden}
.viewport-player .reader-heading{flex:none;min-height:0}
.viewport-player .reading .episode-name{font-size:10px;line-height:1.3;letter-spacing:1px;margin:0 0 4px}
.viewport-player .reading h2{font-size:clamp(21px,2.2vw,30px);line-height:1.12;margin:0;letter-spacing:-.5px}
.viewport-player .moment-panel{display:flex;flex-direction:column;flex:1;gap:9px;min-height:0}
.viewport-player .beat-meta{flex:none;margin:0;font-size:11px;line-height:1.3}
.viewport-player .beat-track{flex:none;height:3px}
.viewport-player .moment-copy{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.viewport-player .reading .beat-text{min-height:0;margin:0;color:#4e352b;font-size:clamp(16px,2.25dvh,21px);line-height:1.5;animation:player-page-in .2s ease-out}
.viewport-player .beat-navigation{flex:none;margin:0;gap:9px}
.viewport-player .beat-navigation button{min-height:44px;padding:10px 15px;font-size:14px}
.viewport-player .beat-navigation .primary{min-width:0}
.viewport-player .decision-panel{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.viewport-player .choice-label{flex:none;margin:0;padding:6px 10px;line-height:1.2}
.viewport-player .choices{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0}
.viewport-player .choice{flex:1;min-height:44px;padding:10px 12px;gap:10px;transform:none}
.viewport-player .choice-text{font-size:15px;line-height:1.35}
.viewport-player .choice .letter{width:27px;height:29px}
.viewport-player .decision-recap{flex:none;align-self:flex-start;font-size:11px;padding:6px 10px;min-height:32px}
.player-utilities{grid-area:tools;display:flex;justify-content:center;gap:10px;padding:7px 12px calc(7px + env(safe-area-inset-bottom,0px));border-top:3px solid #e7ba52;background:#e3f1e9}
.player-utilities .quiet{min-height:42px;max-width:260px;flex:1;border:2px solid #16847a;border-radius:12px;font-size:12px;font-weight:700;color:#215e52;background:#fff8e9}
.tool-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}
.tool-actions .quiet{min-height:48px;border:2px solid #65a59a;background:#f7fff8;border-radius:12px;color:#215e52;font-size:13px}
.enlarged-scene{height:min(62dvh,500px);position:relative;overflow:hidden;isolation:isolate;background:#173c34}
.enlarged-scene .backdrop{position:absolute;inset:0;filter:none!important;transform:none!important;animation:none!important}
.enlarged-scene .storyboard-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:none;animation:none}
@media(max-width:760px){
 .viewport-player.play-shell{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,44fr) minmax(0,56fr) auto;grid-template-areas:'image' 'reader' 'tools';max-width:680px}
 .viewport-player .reading{padding:10px 16px;gap:8px;border-top:2px solid #e6b34e}
 .viewport-player .reading h2{font-size:23px}
 .viewport-player .reading .beat-text{font-size:clamp(15px,2.15dvh,18px);line-height:1.45}
 .viewport-player .moment-panel{gap:7px}
 .viewport-player .choice{padding:8px 10px;gap:9px}
 .viewport-player .choice-text{font-size:14px;line-height:1.3}
 .viewport-player .choice-label{font-size:10px}
 .viewport-player .choices{gap:6px}
 .viewport-player .beat-navigation button{padding:9px 12px;font-size:13px}
 .player-utilities{gap:8px;padding-top:5px;padding-bottom:calc(5px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:760px) and (max-height:650px){
 .viewport-player.play-shell{grid-template-rows:minmax(0,38fr) minmax(0,62fr) auto}
 .viewport-player .reading{padding:7px 12px;gap:6px}
 .viewport-player .reading h2{font-size:20px}
 .viewport-player .reading .beat-text{font-size:15px;line-height:1.4}
 .viewport-player .choice-text{font-size:13px;line-height:1.3}
 .viewport-player .choice{padding:7px 9px}
 .viewport-player .decision-panel{gap:5px}
}
@media(orientation:landscape) and (max-height:550px){
 .viewport-player.play-shell{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;grid-template-areas:'image reader' 'tools tools';max-width:1200px}
 .viewport-player .reading{padding:7px 12px;gap:6px}
 .viewport-player .reading h2{font-size:19px}
 .viewport-player .reading .beat-text{font-size:14px;line-height:1.35}
 .viewport-player .choice-text{font-size:12px;line-height:1.25}
 .viewport-player .choice{padding:5px 8px;min-height:36px}
 .viewport-player .decision-recap{min-height:24px;padding:3px 8px}
}
@keyframes player-page-in{from{opacity:.3;transform:translateX(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.viewport-player .reading .beat-text{animation:none}}

.viewport-player .scene-dock{display:none}
@media(max-width:760px) and (max-height:650px){.viewport-player .choice-text{font-size:13px;line-height:1.25}.viewport-player .choice{padding:6px 8px}.viewport-player .decision-panel{gap:6px}}

.viewport-player .choice-label .decision-recap{border:0;background:transparent;color:#215e52;min-height:24px;font-size:11px;padding:2px 4px;line-height:1.2;text-decoration:underline}
/* The soundtrack title remains in Music & volume without resizing the player. */
body.playing>#radio-credit{display:none}
@media(max-width:760px) and (max-height:650px){.viewport-player .reading .beat-text{font-size:14.5px;line-height:1.4}}
@media(orientation:landscape) and (max-height:500px){.viewport-player .reading .beat-text{font-size:14px;line-height:1.3}.viewport-player .decision-panel{gap:6px}.viewport-player .choice-label{padding-top:4px;padding-bottom:4px}}
@media(orientation:landscape) and (max-height:500px){.viewport-player .choice{min-height:34px;padding:4px 8px}.viewport-player .choice-text{font-size:13px;line-height:1.2}}
.viewport-player .scene-window .storyboard-art{animation:player-art-in .2s ease-out}
@keyframes player-art-in{from{opacity:.25}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.viewport-player .scene-window .storyboard-art{animation:none}}
/* Fill the fixed illustration panel; keep the complete composition in Scene view. */
.viewport-player .scene-window .storyboard-art{object-fit:cover;object-position:50% 42%}
.viewport-player .shot-p1DecisionMoney .single-shot{object-position:50% 72%}
.viewport-player .shot-foundID .single-shot{object-position:65% 62%}
.viewport-player .shot-actorOpen .single-shot,.viewport-player .shot-actorThink .single-shot{object-position:50% 7%}

/* Narration stays with the passage, directly below the progress line. */
.viewport-player .reader-voice{display:flex;align-items:center;gap:8px;flex:none;min-height:36px}
.viewport-player .reader-voice .quiet{min-height:36px;padding:5px 12px;border:2px solid #16847a;border-radius:12px;background:#e4f5ec;color:#215e52;font-size:12px;font-weight:700;line-height:1.3}
.viewport-player .reader-voice .quiet[aria-pressed="true"]{background:#216f61;color:#fff8e9}
.reader-voice-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(orientation:landscape) and (max-height:550px){.viewport-player.play-shell{grid-template-areas:'image reader' 'tools reader'}.player-utilities{gap:6px;padding:5px 8px calc(5px + env(safe-area-inset-bottom,0px))}.player-utilities .quiet{font-size:11px;padding:5px 7px}.viewport-player .reader-voice{min-height:32px;gap:6px}.viewport-player .reader-voice .quiet{min-height:32px;padding:4px 10px;font-size:11px}}
/* Reserve narration space on shorter phones without moving Next off screen. */
@media(orientation:portrait) and (max-width:760px) and (max-height:720px){
 .viewport-player.play-shell{grid-template-rows:minmax(0,39fr) minmax(0,61fr) auto}
 .viewport-player .reading{padding:8px 14px;gap:6px}
 .viewport-player .moment-panel{gap:5px}
 .viewport-player .decision-panel{gap:6px}
 .viewport-player .reader-voice,.viewport-player .reader-voice .quiet{min-height:32px}
 .viewport-player .reader-voice .quiet{padding:4px 11px}
}
@media(orientation:portrait) and (max-width:760px) and (max-height:600px){
 .viewport-player.play-shell{grid-template-rows:minmax(0,32fr) minmax(0,68fr) auto}
 .viewport-player .reading{padding:6px 12px;gap:4px}
 .viewport-player .reader-heading .episode-name{display:none}
 .viewport-player .moment-panel,.viewport-player .decision-panel{gap:4px}
}

/* Character shots protect the top of the composition instead of cropping faces. */
.viewport-player .character-frame .single-shot,.viewport-player .shot-femiWide .single-shot,.viewport-player .shot-femiClose .single-shot,.viewport-player .shot-rideDriver .single-shot,.viewport-player .shot-rideReaction .single-shot{object-position:50% 0%}
.viewport-player .shot-p4Arrival .single-shot,.viewport-player .shot-p4Boot .single-shot,.viewport-player .shot-p4Room .single-shot,.viewport-player .shot-p4Dollars .single-shot,.viewport-player .shot-p4Reply .single-shot,.viewport-player .shot-p4Listen .single-shot,.viewport-player .shot-p4Curtain .single-shot,.viewport-player .shot-p4Keys .single-shot,.viewport-player .shot-p4Follow .single-shot,.viewport-player .shot-p4Alone .single-shot{object-position:50% 0%}
/* Keep the face, falling cash and red phone together in the reveal. */
.scene-ambient{position:absolute;inset:-5%;width:110%;height:110%;object-fit:cover;filter:blur(20px) brightness(.5) saturate(.85);pointer-events:none}
.viewport-player .whole-scene .single-shot{object-fit:contain;object-position:center}
/* Give the passage a storybook rhythm without delaying Next or changing its text. */
.viewport-player .moment-copy{border-left:3px solid #258778;padding:3px 4px 3px 12px;background:linear-gradient(90deg,#e5f1e766,transparent 80%);border-radius:0 10px 10px 0}
.viewport-player .reading .beat-text{font-weight:500;color:#3e3029;letter-spacing:.04px;animation:none}
.story-lead{font-weight:600;color:#2f4036}
.story-emphasis{background:linear-gradient(transparent 55%,#ffdc86 55%,#ffdc86 93%,transparent 93%);color:#614016;font-weight:750;padding:0 .06em;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.story-dialogue{color:#126c61;font-weight:700;font-style:italic}
.story-dialogue .story-emphasis{color:#126c61}
.story-sentence{animation:story-line-in .36s ease-out both;animation-delay:calc(var(--sentence-order,0)*65ms)}
@keyframes story-line-in{from{opacity:0;filter:blur(1px)}to{opacity:1;filter:blur(0)}}
@media(max-width:760px){.viewport-player .moment-copy{padding-left:10px}}
@media(max-width:350px),(max-height:600px){.viewport-player .moment-copy{padding-left:8px;border-left-width:2px}}
@media(prefers-reduced-motion:reduce){.story-sentence{animation:none;filter:none;opacity:1}}

.viewport-player .shot-returnPickup .single-shot,.viewport-player .shot-warehousePickup .single-shot{object-position:50% 0%}
