@media(max-width:900px),(max-width:1100px) and (max-height:540px){
/* Give the illustration its own aspect ratio instead of stretching it under dialogue. */
.v5-story.phoneStory552{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important;min-height:0!important;overflow:visible!important;background:#0d1923!important;padding-bottom:8px}
.phoneStory552>.vista{position:relative!important;inset:auto!important;width:100%!important;height:clamp(270px,82vw,440px)!important;min-height:0!important;overflow:hidden!important;grid-column:1!important;grid-row:1!important}
.phoneStory552 .sceneHeading{top:10px!important;left:10px!important;bottom:auto!important;max-width:calc(100% - 20px)!important;width:auto!important;padding:7px 10px!important;pointer-events:none}
.phoneStory552 .sceneHeading .overline{margin-bottom:4px!important;font-size:10px!important}
.phoneStory552 .sceneHeading h1{font-size:16px!important}.phoneStory552 .sceneHeading p{font-size:11px!important}
.phoneStory552>.dialogue{position:relative!important;inset:auto!important;grid-column:1!important;grid-row:2!important;align-self:start!important;margin:8px!important;width:calc(100% - 16px)!important;max-height:none!important;overflow:visible!important;grid-template-columns:56px minmax(0,1fr)!important;gap:10px!important}
.phoneStory552 .dialogText{font-size:16px!important;line-height:1.65!important;clear:none!important}
.phoneStory552 .dialogControls{flex-wrap:wrap!important}.phoneStory552 .dialogueBody{min-width:0}
.phoneStory552 .phoneCast552{inset:0!important;width:100%!important;height:100%!important}
.phoneCast552 .stageOfficer{width:76px!important;height:100px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-end!important;transform:translate(-50%,-100%)!important;opacity:1!important;filter:drop-shadow(0 2px 2px #0007)!important}
.phoneCast552 .stageOfficer>img,.phoneCast552 .stageOfficer>.spr,.phoneCast552 .stageOfficer>.artSprite{position:static!important;width:66px!important;height:76px!important;max-height:76px!important;object-fit:contain!important;transform:none!important;margin:0!important;flex:none}
.phoneCast552 .stageOfficer .nameTag{position:static!important;inset:auto!important;transform:none!important;margin:0!important;max-width:76px!important;height:22px!important;line-height:20px!important;padding:0 5px!important;font-size:11px!important;white-space:nowrap!important;color:#f1e3bb!important;background:#102019eb!important}
.phoneCast552 .stageOfficer.speaking .nameTag{border:1px solid #e9c77d!important;color:#ffe4a1!important}
.phoneCast552 .stageOfficer::before{display:none!important}.phoneCast552 .stageOfficer::after{bottom:20px!important;height:7px!important}
/* A bounded foreground group, with page controls outside the illustration. */
.v5-hall.phoneHall552{height:360px!important;background-size:cover!important;background-position:center bottom!important;overflow:hidden!important}
.phoneHall552 .v5-hall-cast.camp532{inset:auto 15% 12px!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px 24px!important;align-content:end!important}
.phoneHall552 .camp532 .v51-person{height:100px!important;filter:drop-shadow(0 2px 2px #0007)!important}
.phoneHall552 .camp532 .v51-person[hidden]{display:none!important}
.phoneHall552 .camp532 .v51-person>img,.phoneHall552 .camp532 .v51-person>.spr,.phoneHall552 .camp532 .v51-person>.artSprite{width:70px!important;height:76px!important;max-height:76px!important}
.phoneHall552 .camp532 .v51-person>span{font-size:11px!important;max-width:100%!important;height:24px!important;white-space:nowrap!important}
.v5-camp .phoneCastNav552{display:flex!important;justify-content:space-between!important;align-items:center;gap:10px;background:#10202b;border-top:1px solid #776946;padding:8px!important}
.v5-camp .phoneCastNav552[hidden]{display:none!important}.v5-camp .phoneCastNav552 button{width:auto!important;min-width:96px;min-height:44px;font-size:13px!important}.phoneCastNav552 span{font-size:12px;white-space:nowrap}
body:has(.phoneStory552) #labLauncher{top:64px!important;bottom:auto!important;right:8px!important;left:auto!important}
}
@media(max-width:1100px) and (max-height:540px) and (orientation:landscape){
.v5-story.phoneStory552{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:auto!important;align-items:start!important;gap:0!important}
.phoneStory552>.vista{height:calc(100dvh - 70px)!important;min-height:250px!important;grid-row:1!important;grid-column:1!important}
.phoneStory552>.dialogue{grid-row:1!important;grid-column:2!important;margin:6px!important;width:calc(100% - 12px)!important;max-height:none!important;grid-template-columns:48px minmax(0,1fr)!important;padding:8px!important;gap:8px!important}
.phoneStory552 .dialogText{font-size:14px!important}.phoneStory552 .speaker{font-size:16px!important}.phoneStory552 .dialogue>.portrait{width:48px!important;height:64px!important}
.v5-hall.phoneHall552{height:340px!important}.phoneHall552 .v5-hall-cast.camp532{inset:auto 26% 10px!important}
}
@media(max-width:900px),(max-width:1100px) and (max-height:540px){
.phoneHall552 .camp532 .v51-person>.artSprite{background-color:transparent!important;background-size:600% 400%!important;background-repeat:no-repeat!important;border:0!important;padding:0!important;flex:none;box-shadow:none!important}
}
