/* Last loader. Supersedes opening23-screen and phone21 on these exact surfaces. */
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21{display:block;position:fixed;inset:0;min-height:0;height:100dvh;padding:0;overflow:hidden}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__backfill{position:absolute;inset:0;z-index:-3;width:100%;height:100%;object-fit:cover;object-position:52% 65%;filter:brightness(.65)}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__backdrop{position:absolute;inset:0 0 auto;width:100%;height:calc(100dvh - 220px);object-fit:cover;object-position:52% 65%;z-index:-2}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__portrait-plane{position:absolute;inset:auto auto 82px 16px;max-width:none;max-height:none;width:180px;height:180px;margin:0}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__head{inset:0;width:100%;height:100%;object-fit:contain;object-position:center;transform:none;clip-path:none}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__speech{position:absolute;inset:auto 16px 82px 210px;width:auto;max-width:1000px;min-height:0;max-height:none;margin:0;padding:10px 14px;overflow:visible}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__name{margin:0 0 7px;padding:4px 10px;font-size:23px!important}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__words{margin:0;white-space:pre-line;font:22px/1.35 var(--fantasy-copy,Georgia,serif)!important;overflow-wrap:anywhere}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__actions{position:static;display:contents;margin:0;padding:0}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__actions>[data-opening-next]{position:fixed;inset:auto 16px 16px auto;max-width:calc(50vw - 24px);width:auto;min-height:44px;height:44px;box-sizing:border-box;display:flex;align-items:center;margin:0;padding:8px 14px;font:700 17px/20px var(--fantasy-copy,Georgia,serif);background:#365632;color:#fff1c6;border:2px solid #bba46c;box-shadow:0 3px #1b2b1b}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__actions>[data-opening-question]{position:fixed;inset:auto 16px 66px auto;width:auto;max-width:calc(100vw - 32px);min-height:36px;margin:0;padding:6px 10px;font:17px/1.2 var(--fantasy-copy,Georgia,serif);background:#263d31;color:#fff1c6;border:1px solid #bba46c}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__speech:has(+.spoken-scene21__actions>[data-opening-question]){bottom:112px}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__choices{position:fixed!important;inset:auto auto 16px 16px!important;display:flex;align-items:center;justify-content:flex-start;gap:8px;width:auto;max-width:calc(50vw - 24px);min-height:44px;margin:0!important;padding:0!important;border:0}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__choices>[data-opening-skip]{min-height:44px!important;height:44px;box-sizing:border-box;display:flex;align-items:center;margin:0!important;padding:8px 2px!important;font:17px/20px var(--fantasy-copy,Georgia,serif)!important}
body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__choices>[data-opening-keep]{position:fixed;left:16px;bottom:66px;max-width:calc(50vw - 24px);min-height:36px!important;padding:6px 8px!important;font-size:15px!important}
/* Source camera centre (.515,.665), visible source width <= .50. Art, pose and hits share this plane. */
body #storyOpening18 .refuge-selection18{position:fixed;inset:0;display:grid;grid-template-rows:44px minmax(0,1fr) auto;width:100vw;max-width:none;height:100dvh;min-height:0;margin:0;padding:0;overflow:hidden;background:#14251d}
body #storyOpening18 .refuge-selection18>header{position:relative;z-index:4;justify-content:space-between;padding:4px 12px;background:#14251de8}
body #storyOpening18 .refuge-selection18>header h1{margin:0;padding:0;font-size:24px}
body #storyOpening18 .refuge-selection-camera23{position:relative;isolation:isolate;min-height:0;overflow:hidden;container-type:size}
body #storyOpening18 .refuge-selection18 .painted-starters17{position:absolute;inset:0;width:100%;height:100%;margin:0;overflow:hidden;z-index:0}
body #storyOpening18 .refuge-selection18 :is(.painted-starter-plane17,.painted-starter-choices17){position:absolute;inset:auto;left:50%;top:clamp(calc(100cqh - max(100cqw,100cqh)),calc(55cqh - max(66.5cqw,66.5cqh)),0px);width:max(200cqw,200cqh);height:max(100cqw,100cqh);aspect-ratio:2/1;transform:translateX(-51.5%);display:block;margin:0;padding:0}
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;align-items:center;gap:7px 12px;width:auto;max-width:none;margin:0;padding:8px 12px;background:#14251de8}
body #storyOpening18 .refuge-choice-details23{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
body #storyOpening18 .refuge-choice-details23>button{display:grid;grid-template-columns:28px minmax(0,1fr);align-content:start;gap:2px 5px;min-width:0;min-height:0;padding:7px;color:#f4e6c8;background:#2e4134;border:2px solid #a18c5f;text-align:left;font:17px/1.15 var(--fantasy-copy,Georgia,serif)}
body #storyOpening18 .refuge-choice-details23 img{grid-row:1/3;width:28px;height:28px;object-fit:contain}
body #storyOpening18 .refuge-choice-details23 :is(strong,small){grid-column:2}body #storyOpening18 .refuge-choice-details23 small{font-size:14px}body #storyOpening18 .refuge-choice-details23 span{grid-column:1/-1;font-size:16px}
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:row;align-items:center;flex-wrap:wrap;gap:3px 8px;min-height:0;padding:0;border:0;background:none;font-size:15px}
body #storyOpening18 .refuge-selection18 [data-opening-preview] :is(span,strong){font-size:15px}
body #storyOpening18 .refuge-selection-controls18{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;max-width:none;gap:5px}
body #storyOpening18 .refuge-selection-controls18 label{font-size:14px}body #storyOpening18 .refuge-selection-controls18 input{width:170px;font-size:16px}
@media(max-width:700px),(max-aspect-ratio:1/1){
 body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__backdrop{height:calc(100dvh - 270px);object-position:52% 70%}
 body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__portrait-plane{inset:auto auto 340px 12px;width:100px;height:100px}
 body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__speech{inset:auto 12px 82px 12px;width:auto;max-width:none;margin:0;padding:9px 12px}
 body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__name{font-size:21px!important;margin-bottom:5px}
 body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__words{font-size:20px!important}
 body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__actions>[data-opening-next]{right:12px;bottom:12px;font-size:17px;max-width:calc(50vw - 20px)}
 body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__choices{left:12px!important;bottom:12px!important}
 body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__actions>[data-opening-question]{right:12px;bottom:64px;font-size:16px}
 body :is(#storyOpening18,.spoken-patron21) .spoken-scene21__choices>[data-opening-keep]{left:12px;bottom:64px;font-size:14px!important}
 body :is(#storyOpening18,.spoken-patron21) .spoken-scene21:has([data-opening-question]) [data-opening-keep]{bottom:auto;top:12px}
 body #storyOpening18 .refuge-selection18{grid-template-rows:40px minmax(0,min(100vw,calc(100dvh - 400px))) minmax(0,1fr)}
 body #storyOpening18 .refuge-selection18>header{padding:4px 8px}body #storyOpening18 .refuge-selection18>header h1{font-size:19px}
 body #storyOpening18 .refuge-selection18>footer.refuge-selection-footer18{grid-template-columns:minmax(0,1fr);align-content:space-between;gap:5px;padding:6px 8px}
 body #storyOpening18 .refuge-choice-details23{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 body #storyOpening18 .refuge-choice-details23>button{padding:5px;font-size:16px}
 body #storyOpening18 .refuge-choice-details23 span{font-size:15px;line-height:1.15}
 body #storyOpening18 .refuge-selection18 [data-opening-preview]{font-size:14px}
 body #storyOpening18 .refuge-selection18 [data-opening-preview] span{display:none}
 body #storyOpening18 .refuge-selection-controls18{justify-content:space-between;flex-wrap:nowrap}
 body #storyOpening18 .refuge-selection-controls18 label{display:grid;grid-template-columns:auto auto;gap:2px;font-size:13px}
 body #storyOpening18 .refuge-selection-controls18 input{grid-column:1/-1;width:128px;padding:4px;font-size:16px}
 body #storyOpening18 .refuge-selection-controls18 [data-opening-keep]{font-size:13px;max-width:96px}
}
