/* Load after phone21.css. One composed bottom overlay, with the authored reading size. */
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21{display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;min-height:100dvh;padding:16px;overflow:auto}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__backdrop{position:fixed;inset:0;width:100vw;height:100dvh;object-fit:cover;object-position:center}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__portrait-plane{position:absolute;top:auto;left:16px;bottom:16px;width:clamp(180px,20vw,270px);height:min(32dvh,270px);max-width:none;max-height:none}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__head{width:100%;height:100%;inset:0;object-fit:contain;object-position:center;transform:none;clip-path:none}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__speech{position:relative;left:auto;right:auto;bottom:auto;box-sizing:border-box;width:auto;min-height:0;max-width:1000px;margin:0 0 0 clamp(192px,22vw,286px);padding:12px 16px 8px;transform:none}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__name{margin:0 0 10px;padding:5px 12px;font-size:24px!important}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__words{margin:0;color:#2d261d!important;font:22px/1.38 var(--fantasy-copy,Georgia,serif)!important;white-space:pre-line;overflow-wrap:anywhere}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__actions{display:flex;align-items:stretch;justify-content:space-between;gap:12px;margin-top:12px}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__actions>button{position:static;display:flex;align-items:center;justify-content:center;gap:8px;width:auto;max-width:49%;height:auto;min-height:44px;margin:0;padding:8px 14px;background:#365632;color:#fff1c6;border:2px solid #bba46c;border-radius:2px;box-shadow:0 3px #1b2b1b;font:700 19px/1.2 var(--fantasy-copy,Georgia,serif);text-shadow:none;cursor:pointer;white-space:normal}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__actions>[data-opening-question]{margin-left:auto;font-size:17px;font-weight:400}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__choices{position:static!important;display:flex;justify-content:flex-end;align-items:center;gap:10px;border:0;margin:5px 0 0!important;padding:0!important}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__choices>[data-opening-skip]{margin-left:0!important;min-height:36px!important;padding:3px 2px!important;font-size:15px!important}
/* Same source cover transform for selection art, raised-paw SVG and source-relative body targets. */
body #storyOpening18 .refuge-selection18{position:relative;isolation:isolate;box-sizing:border-box;width:100%;max-width:none;min-height:100dvh;margin:0;padding:16px;overflow:hidden}
body #storyOpening18 .refuge-selection18>header{position:relative;z-index:4;justify-content:space-between;flex-wrap:wrap;gap:8px}
body #storyOpening18 .refuge-selection18>header h1{padding:6px 12px;background:#14251de6;font-size:25px}
body #storyOpening18 .refuge-selection18 .painted-starters17{position:fixed;inset:0;height:100dvh;margin:0;z-index:-1;overflow:hidden}
body #storyOpening18 .refuge-selection18 :is(.painted-starter-plane17,.painted-starter-choices17){position:absolute;inset:auto;left:50%;top:50%;width:max(100vw,200dvh);height:max(50vw,100dvh);aspect-ratio:2/1;transform:translate(-50%,-50%);padding:0;display:block}
body #storyOpening18 .refuge-selection18 .painted-starter-plane17>img{width:100%;height:100%;object-fit:cover}
body #storyOpening18 .refuge-selection18 .painted-starter-choice17{position:absolute;inset:0;width:100%;height:100%;min-height:0;clip-path:var(--body-clip23)!important}
body #storyOpening18 .refuge-selection18 .painted-starter-name17{display:none!important}
body #storyOpening18 .refuge-selection18>footer.refuge-selection-footer18{position:relative;z-index:3;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:end;max-width:1200px;margin:max(45dvh,280px) auto 0;padding:10px;background:#14251de6}
.refuge-choice-details23{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
body #storyOpening18 .refuge-choice-details23>button{display:grid;grid-template-columns:32px minmax(0,1fr);gap:3px 7px;align-content:start;min-width:0;min-height:0;padding:8px;color:#f4e6c8;background:#2e4134;border:2px solid #a18c5f;text-align:left;font:17px/1.2 var(--fantasy-copy,Georgia,serif)}
.refuge-choice-details23 img{grid-row:1/3;width:32px;height:32px;object-fit:contain}.refuge-choice-details23 strong,.refuge-choice-details23 small{grid-column:2}.refuge-choice-details23 :is(span,q){grid-column:1/-1}.refuge-choice-details23 small{font-size:15px}.refuge-choice-details23 q{font-size:15px;font-style:italic;margin-top:4px}
body #storyOpening18 .refuge-choice-details23>button:is(:hover,:focus-visible,[aria-pressed=true]){outline:2px solid #f3d88e;outline-offset:-4px;background:#3c5132}
body #storyOpening18 .refuge-selection18 [data-opening-preview]{display:flex;flex-direction:column;gap:3px;min-height:0;padding:0;background:none;border:0;font-size:16px}
body #storyOpening18 .refuge-selection18 [data-opening-preview] strong{font-size:17px}body #storyOpening18 .refuge-selection-controls18{max-width:350px;justify-content:flex-end}
@media(max-width:700px),(max-aspect-ratio:1/1){
 body :is(#storyOpening18,.spoken-patron21) .spoken-scene21{padding:12px;min-height:100dvh}
 body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__portrait-plane{position:relative;align-self:flex-start;top:auto;left:0;bottom:auto;width:140px;height:140px;flex:0 0 140px;margin:24dvh 0 3px}
 body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__speech{width:100%;max-width:none;margin:0;padding:10px 12px 6px;flex-shrink:0}
 body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__name{font-size:22px!important;margin-bottom:8px}
 body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__words{font-size:20px!important}
 body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__actions{gap:8px;margin-top:10px}
 body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__actions>button{padding:7px 9px;font-size:17px;max-width:50%;min-width:0}
 body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__actions>[data-opening-question]{font-size:16px}
 body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__choices>[data-opening-skip]{min-height:44px!important}
 body #storyOpening18 .refuge-selection18{padding:12px;overflow:visible}
 body #storyOpening18 .refuge-selection18 .painted-starters17{position:fixed;height:100dvh;overflow:hidden}
 body #storyOpening18 .refuge-selection18>header h1{font-size:22px}
 body #storyOpening18 .refuge-selection18>footer.refuge-selection-footer18{grid-template-columns:minmax(0,1fr);margin-top:42dvh}
 .refuge-choice-details23{grid-template-columns:repeat(2,minmax(0,1fr))}
 body #storyOpening18 .refuge-choice-details23>button{font-size:17px;padding:9px 7px}
 body #storyOpening18 .refuge-selection-controls18{max-width:none;justify-content:flex-start}
}
/* Ordinary patron Quest terms use the same bottom footprint, preserving their actual controls. */
body[data-story="true"] .major-patron.story-patron-dialogue18{align-items:end;justify-items:center;padding:16px;background:#080e0d66}
body[data-story="true"] .story-patron-dialogue18 .story-conversation18{position:relative;display:grid;grid-template-columns:clamp(180px,20vw,250px) minmax(0,1fr);grid-template-rows:minmax(0,1fr);box-sizing:border-box;width:min(1100px,calc(100vw - 32px))!important;max-width:1100px!important;height:min(330px,calc(100dvh - 32px))!important;max-height:calc(100dvh - 32px)!important;margin:0;padding:0!important;overflow:hidden!important}
body[data-story="true"] .story-patron-dialogue18 .story-patron-portrait18{min-height:0;overflow:visible;align-items:center;background:var(--speaker-paint,#314733)}
body[data-story="true"] .story-patron-dialogue18 .story-patron-portrait18 img{display:block;width:100%;height:100%;max-height:290px;object-fit:contain!important;object-position:center!important;transform:none;clip-path:none}
body[data-story="true"] .story-patron-dialogue18 .story-patron-copy18{display:block;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;padding:12px 16px 0;scroll-padding-bottom:90px}
body[data-story="true"] .story-patron-dialogue18 .story-patron-copy18>.spoken-scene21__name{margin:0 0 8px;padding:5px 12px;font-size:24px}
body[data-story="true"] .story-patron-dialogue18 .story-patron-copy18 blockquote{margin:8px 0 12px;font:22px/1.38 var(--fantasy-copy,Georgia,serif)!important;white-space:pre-line;overflow-wrap:anywhere}
body[data-story="true"] .story-patron-dialogue18 .story-dialogue-mechanics18{font:20px/1.35 var(--fantasy-copy,Georgia,serif);padding:8px 0;border-top:1px solid #9b8056;overflow-wrap:anywhere}
body[data-story="true"] .story-patron-dialogue18 .story-conversation-actions18{position:sticky;bottom:0;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:12px 0 0;padding:9px 0;background:#e5d3aa;box-shadow:0 -6px 8px #e5d3aa}
body[data-story="true"] .story-patron-dialogue18 .story-conversation-actions18>button{min-width:0;min-height:44px;width:auto;margin:0;padding:8px 12px;font:18px/1.2 var(--fantasy-copy,Georgia,serif);white-space:normal}
body[data-story="true"] .story-patron-dialogue18 .story-conversation-actions18>.story-back18{grid-column:1;grid-row:1;justify-self:start}
body[data-story="true"] .story-patron-dialogue18 .story-conversation-actions18>.story-accept18{grid-column:2;grid-row:1;justify-self:end}
@media(max-width:700px),(max-aspect-ratio:1/1){
 body[data-story="true"] .major-patron.story-patron-dialogue18{padding:12px}
 body[data-story="true"] .story-patron-dialogue18 .story-conversation18{width:calc(100vw - 24px)!important;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);height:min(390px,52dvh)!important;max-height:calc(100dvh - 156px)!important;overflow:visible!important}
 body[data-story="true"] .story-patron-dialogue18 .story-patron-portrait18{position:absolute;left:0;bottom:100%;width:120px;height:120px}
 body[data-story="true"] .story-patron-dialogue18 .story-patron-copy18{padding:10px 12px 0;border-radius:0 6px 6px 6px}
 body[data-story="true"] .story-patron-dialogue18 .story-patron-copy18 blockquote{font-size:20px!important}
 body[data-story="true"] .story-patron-dialogue18 .story-patron-copy18>.spoken-scene21__name{font-size:22px}
 body[data-story="true"] .story-patron-dialogue18 .story-conversation-actions18{gap:8px}
 body[data-story="true"] .story-patron-dialogue18 .story-conversation-actions18>button{font-size:16px;padding:7px 8px}
 body[data-story="true"] .story-patron-dialogue18 .story-conversation-actions18 .icon{width:22px;height:22px;flex-shrink:0}
}
