/* Fixed-camera consultation. Only actual pose and text opacity may change. */
body[data-quality=on] .flow-page:not(.draw-page),
body[data-quality=on] .flow-page:not(.draw-page) :is(.flow-content,.dialogue-scene-layer,.dialogue-scene-image,.conversation-frame,.frame-inner,.quality-crest,.reading-speaker){animation:none!important;transform:none!important;transition:none!important}
body[data-quality=on] .flow-page:not(.draw-page){position:relative;isolation:isolate;background:#071a17;overflow:hidden}
body[data-quality=on] .flow-page:not(.draw-page) .dialogue-scene-layer{inset:0;width:100%;height:100%;z-index:-3}
body[data-quality=on] .flow-page:not(.draw-page) img.dialogue-scene-image{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center top;filter:none}
body[data-quality=on] .flow-page:not(.draw-page) .dialogue-scene-image.scene-composition{position:absolute;inset:0;width:100%;height:100%;overflow:hidden}
body[data-quality=on] .flow-page:not(.draw-page) .dialogue-scene-image.scene-composition>.scene-portrait{inset:0;width:100%;height:100%;left:0;max-width:none;object-fit:cover;object-position:center top;filter:none}
body[data-quality=on] .flow-page:not(.draw-page) .scene-look-reading-hand>.scene-setting{filter:brightness(.8) saturate(.78);object-fit:cover;object-position:52% 40%}
/* Static composition crops. These do not animate or simulate body movement. */
body[data-quality=on] .flow-page:not(.draw-page) img.dialogue-scene-image[data-image="female-over-shoulder-v1.png"]{inset:-4% auto auto -25%;width:150%;height:150%;object-position:50% 12%}
body[data-quality=on] .flow-page:not(.draw-page) img.dialogue-scene-image[data-image="male-photo-over-shoulder-v4.png"]{inset:-5% auto auto -26%;width:152%;height:152%;object-position:50% 8%}
body[data-quality=on] .flow-page:not(.draw-page)>.flow-vignette{inset:0;background:linear-gradient(180deg,#03100c57 0,transparent 17%,transparent 48%,#07181122 63%,#04110bd9 100%);pointer-events:none}
body[data-quality=on] .flow-page:not(.draw-page)>.topbar{position:relative;z-index:20;height:54px;min-height:54px;padding:5px 10px;gap:8px;border:0;background:linear-gradient(180deg,#03150e99,#03150e18);color:#edf5f0;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
body[data-quality=on] .flow-page:not(.draw-page)>.topbar>span{font-size:11px;font-weight:500;letter-spacing:.02em;line-height:1.5;max-width:calc(100% - 104px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-quality=on] .flow-page:not(.draw-page)>.topbar .icon-button{height:44px;width:44px;min-height:44px;min-width:44px;color:#e7f0e8;background:#061b1222;border-color:#c9ded329;box-shadow:none}
body[data-quality=on] .flow-page:not(.draw-page) .flow-content{position:absolute;inset:0;height:100%;min-height:0;width:100%;max-width:none;padding:0 17px calc(16px + env(safe-area-inset-bottom));display:flex;flex-direction:column;justify-content:flex-end;z-index:5;pointer-events:none;background:none}
body[data-quality=on] .flow-page:not(.draw-page) .flow-progress{position:absolute;top:54px;left:18px;right:18px;padding:10px 0;color:#c0d1c7;font-size:7px;letter-spacing:.04em;opacity:.72;pointer-events:none}
body[data-quality=on] .flow-page:not(.draw-page) .flow-progress i{background:#b9d0c038}.flow-page:not(.draw-page) .flow-progress .current{color:#f0f6f1}
body[data-quality=on] .flow-page:not(.draw-page) .reading-frame{position:relative;flex:0 0 auto;width:100%;height:clamp(236px,28.5dvh,260px);min-height:0;max-height:none;margin:0 0 10px;padding:0;pointer-events:auto;border:1px solid #94b4a4a8;border-radius:4px;background:linear-gradient(115deg,#12352df5,#0c2822f5);color:#edf5f1;box-shadow:0 10px 30px #0003,inset 0 0 0 4px #cedfd705;--text:#edf5f1;--muted:#afc9bf;--soft:#c4ddd1;--line:#6c9181;--button:#e0ece3;--button-ink:#183f30;--button-rim:#8baa98;--metal-hi:#deeee5;--metal-mid:#97b6a7;--metal-edge:#c0d8cd}
body[data-quality=on] .flow-page:not(.draw-page) .reading-frame:before{content:'';position:absolute;inset:5px;pointer-events:none;border:1px solid #b2cbb914;border-radius:2px}
body[data-quality=on] .flow-page:not(.draw-page) .reading-frame .frame-inner{position:relative;height:100%;max-height:100%;min-height:0;display:flex;flex-direction:column;padding:31px 18px 15px;overflow:hidden;background:none;border:0}
body[data-quality=on] .flow-page:not(.draw-page) .reading-frame .frame-crest{display:none}
body[data-quality=on] .flow-page:not(.draw-page) .reading-speaker{position:absolute;top:8px;left:18px;z-index:3;display:inline-flex;align-items:center;gap:9px;padding:0;font-family:'Pretendard Variable',sans-serif;font-size:10px;line-height:14px;letter-spacing:.06em;font-weight:500;color:#bad2c2;background:none;border:0;border-radius:0}
body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue{position:relative;flex:1;min-height:0;width:100%;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#789b87 transparent;overscroll-behavior:contain;animation:reading-ink .16s ease-out both;scroll-padding-block:8px}
body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue h1{font-family:var(--serif);font-size:19px;line-height:1.45;font-weight:500;letter-spacing:-.045em;margin:0 0 9px;color:#edf6ef;word-break:keep-all;overflow-wrap:anywhere;text-wrap:pretty}
body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue h1:focus{outline:none}
body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue .dialogue-line{font-family:var(--serif);font-size:12px;line-height:1.8;letter-spacing:-.015em;margin:0 0 13px;color:#d2e1d8;word-break:keep-all;overflow-wrap:anywhere}
body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue .dialogue-reply{display:none}
body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue :is(.dialogue-responses,.choice-list){display:grid;gap:7px;margin:0}
body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue :is(.dialogue-responses,.choice-list) button{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:9px 12px;color:#ecf4ed;background:#b7d0bd0d;border:1px solid #9fbeac63;border-radius:4px;box-shadow:none;font:400 12px/1.55 'Pretendard Variable',sans-serif;text-align:left;word-break:keep-all;overflow-wrap:anywhere;transform:none;transition:background .15s,border-color .15s}
body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue :is(.dialogue-responses,.choice-list) button svg{width:14px;height:14px;flex-shrink:0;color:#bfd6c8}
body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue :is(.dialogue-responses,.choice-list) button:active{background:#c5dfca22;transform:none}
body[data-quality=on] .flow-page:not(.draw-page) .reading-frame .quality-corner{width:34px;height:34px;pointer-events:none}
body[data-quality=on] .flow-page:not(.draw-page) .reading-frame .quality-crest{width:62px;height:15px;top:-7px;pointer-events:none;filter:none}
body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue :is(input,textarea){width:100%;min-width:0;min-height:44px;padding:10px 11px;border:1px solid #9db9a67a;border-radius:3px;background:#061d1780;box-shadow:inset 0 1px 0 #0002;color:#eef6f0;font:400 16px/1.6 var(--serif);caret-color:#d8eadc}
body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue input::placeholder{color:#a8c3b3;opacity:.8}
body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue .name-line{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}
body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue .pill-button{width:auto;min-width:78px;min-height:44px;height:auto;padding:9px 12px;border:1px solid #c2d4c3;border-radius:4px;box-shadow:inset 0 1px 0 #fff5;background:linear-gradient(120deg,#deeadf,#ccdfcf);color:#1e4330;font:500 12px/1.6 'Pretendard Variable',sans-serif;transform:none;transition:background .15s}
body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue .pill-button svg{width:13px;height:13px;flex-shrink:0}
body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue .pill-button:disabled{opacity:.43}
body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue .pill-button:active{transform:none;box-shadow:none}
body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue textarea{resize:none;height:66px;min-height:66px;line-height:1.6;font-size:16px}
body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue .question-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;color:#b8d0c1;font-size:9px}
body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue .frame-hint{font:9px/1.6 'Pretendard Variable',sans-serif;color:#b2cabb;margin:7px 0 0;letter-spacing:0}
body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue .question-quote{max-height:57px;overflow:auto;margin:0 0 10px;padding:8px 10px;border-left:1px solid #a2c1ad77;color:#d2e2d5;background:#061d1738;font:12px/1.7 var(--serif);word-break:keep-all;overflow-wrap:anywhere}
body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue .dialogue-edit{gap:0 16px;color:#b7cebf;margin:5px 0 0}
body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue .dialogue-edit button{min-height:44px;font:10px 'Pretendard Variable',sans-serif}
body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue .frame-kicker{margin:0 0 8px;font-size:9px;color:#b8cfc0}
body[data-quality=on] .flow-page:not(.draw-page) .flow-privacy{margin:0;font-size:8px;line-height:1.5;color:#c0d2c4;opacity:.72;pointer-events:none}
body[data-quality=on] .flow-page[data-flow-stage=mood] .reading-frame{height:clamp(264px,31dvh,288px)}
body[data-quality=on] .flow-page:is([data-flow-stage=question],[data-flow-stage=ready]) .reading-frame{height:clamp(252px,31dvh,280px)}
/* The story is an unchanged still scene; the next action opens the same room. */
.reading-story .scene-person,.reading-story .scene-person img,.reading-story .story-copy{animation:none!important;transition:none!important}
.reading-story .scene-person{position:absolute;inset:0;width:100%;height:100%;transform:none}
.reading-story .scene-person>.scene-portrait{width:100%;height:100%;object-fit:cover;object-position:center top}
.reading-story .story-copy h1{font-family:var(--serif);font-weight:500;font-size:32px;line-height:1.55;letter-spacing:-.04em}
@keyframes reading-ink{from{opacity:.35}to{opacity:1}}
@media(hover:hover){body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue :is(.dialogue-responses,.choice-list) button:hover{background:#b7d0bd1c;border-color:#c4ddca9c;transform:none}}
@media(min-width:768px){body[data-quality=on] .flow-page:not(.draw-page) .reading-frame .frame-inner{padding:31px 19px 16px}body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue h1{font-size:20px}}
@media(min-width:1024px){body[data-quality=on] .flow-page:not(.draw-page) .flow-content{padding-inline:18px}body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue .dialogue-line{font-size:12px}}
@media(max-width:359px){body[data-quality=on] .flow-page:not(.draw-page) .flow-content{padding-inline:13px;padding-bottom:12px}body[data-quality=on] .flow-page:not(.draw-page) .reading-frame .frame-inner{padding:29px 14px 12px}body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue h1{font-size:18px}body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue .name-line{grid-template-columns:minmax(0,1fr) auto}body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue .name-line .pill-button{min-width:76px;font-size:10px;padding-inline:9px}}
@media(max-height:620px){body[data-quality=on] .flow-page:not(.draw-page) .reading-frame{height:236px}body[data-quality=on] .flow-page:is([data-flow-stage=mood],[data-flow-stage=question],[data-flow-stage=ready]) .reading-frame{height:264px}body[data-quality=on] .flow-page:not(.draw-page) .frame-inner{max-height:100%}body[data-quality=on] .flow-page:not(.draw-page) .reading-dialogue .dialogue-line{font-size:11px;line-height:1.7;margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){body[data-quality=on] .reading-dialogue,body[data-quality=on] .reading-dialogue *{animation:none!important;transition:none!important}}
:root[data-motion=reduce] body[data-quality=on] .reading-dialogue,:root[data-motion=reduce] body[data-quality=on] .reading-dialogue *{animation:none!important;transition:none!important}

body[data-quality=on] .flow-page:not(.draw-page) .dialogue-scene-image.scene-composition.scene-look-reading-hand>.scene-portrait{object-fit:contain;object-position:center 18%}
body[data-quality=on] .reading-speaker:after{content:"";width:24px;height:1px;background:#9dbba955}
/* Match the story and conversation canvas so entering the room does not zoom the page. */
body[data-quality=on] .app-shell:has(.reading-story){width:min(100%,calc(100dvh * 9 / 16));max-width:calc(100dvh * 9 / 16);margin-inline:auto}
body[data-quality=on] .reading-story{height:100dvh;min-height:100dvh;overflow:hidden}
.reading-story .scene-person[data-scene-image="female-over-shoulder-v1.png"]>.scene-portrait{inset:-4% auto auto -25%;width:150%;height:150%;object-position:50% 12%}
.reading-story .scene-person[data-scene-image="male-photo-over-shoulder-v4.png"]>.scene-portrait{inset:-5% auto auto -26%;width:152%;height:152%;object-position:50% 8%}
