/* v0.4: scene + conversation layout. Source artwork stays unchanged. */
body{background:#07111e}.app{max-width:1100px;background:linear-gradient(160deg,#183d51,#08192b 65%)}.top{background:#071625;border:0;border-bottom:1px solid #3e697d;padding:10px 22px}.brand{font-size:.9rem}.stage{font-size:.65rem;margin-top:4px}.header-actions{flex-direction:row;align-items:center;gap:14px}.motion-setting{font-size:.6rem}.screen{padding:24px;gap:12px}.screen.title{padding:0;margin:0;text-align:left}.screen.question{font-size:1rem;line-height:normal;margin:0}.adventure-cover{height:490px;min-height:0;position:relative;overflow:hidden;isolation:isolate;background:#2b5767}.cover-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-3}.cover-shade{position:absolute;inset:0;background:linear-gradient(180deg,#071625ba,transparent 48%,#071625f5 100%);z-index:-2}.cover-label{position:absolute;left:30px;top:22px;color:#d0f9fd;font-size:.65rem;font-weight:850;letter-spacing:.18em}.cover-logo{display:block;position:absolute;width:390px;max-width:63%;left:50%;top:6%;transform:translateX(-50%);height:220px;object-fit:contain;filter:drop-shadow(0 6px 0 #06132666)}.cover-team{position:absolute;inset:190px 10% 25px;display:flex;justify-content:center;align-items:flex-end;gap:16px}.cover-team img{height:94%;object-fit:contain;max-width:30%;filter:drop-shadow(4px 6px 2px #06132688)}.cover-team .cover-metton{height:80%;max-width:34%;z-index:2}.cover-copy{position:absolute;left:28px;bottom:22px;z-index:3}.cover-copy p{font-size:1.2rem;line-height:1.9;text-shadow:0 2px 7px #061326;margin:0}.cover-copy strong{font-size:1.6rem;color:#fff}.start-console{position:relative;display:grid;grid-template-columns:1fr 1.3fr;gap:10px 24px;background:#0b2236;padding:24px 30px;border-top:4px solid #59d9e3}.start-caption>span{font-size:.64rem;color:#8bc7d5;letter-spacing:.16em}.start-caption p{margin:10px 0 0;font-size:1.8rem;font-weight:950;line-height:1.6}.start-caption small{font-size:.8rem;font-weight:600;color:#9abaca;margin-left:10px}.start-actions{display:grid;gap:10px}.start-actions .btn{width:100%;display:flex;justify-content:center;align-items:center;gap:16px}.btn.quiet{background:transparent;color:#cde7ef;border:0;box-shadow:none;min-height:30px;padding:3px;font-size:.82rem}.start-note{grid-column:1/-1;color:#b6d5e1;font-size:.75rem;margin:0;line-height:1.9}.quiz-hud{display:flex;align-items:center;gap:12px;line-height:1.7;height:36px}.chapter-number{display:flex;align-items:center;gap:9px;font-weight:950;color:#81e5ed;font-size:1.4rem}.chapter-number small{font-size:.8rem;color:#dceef6;font-weight:750}.question-count{margin-left:auto;font-size:1.5rem;font-weight:900;color:#fff;font-variant-numeric:tabular-nums}.question-count small{font-size:.75rem;color:#afc7d9}.power{color:#ffcf5a;font-size:.8rem;border-left:1px solid #4b6779;padding-left:12px}.progress{height:4px;background:#385a70}.adventure-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:0;align-items:stretch;border:3px solid #06182a;box-shadow:5px 6px 0 #030d19;min-width:0}.scene{min-width:0;position:relative;overflow:hidden;background:#16394d;min-height:420px;isolation:isolate}.scene-bg{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:45% 50%}.scene:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#06162744,transparent 35%,#05152b77)}.scene-caption{position:absolute;left:12px;top:12px;right:12px;font-size:.71rem;font-weight:750;line-height:1.9;color:#fff;text-shadow:0 1px 3px #000}.scene-corner{position:absolute;top:35px;right:12px;width:20px;height:20px;border-top:2px solid #d6f5fa99;border-right:2px solid #d6f5fa99}.scene-hero{position:absolute;bottom:16px;left:16px;width:170px}.portrait{position:relative;width:100%;height:185px;overflow:hidden;background:linear-gradient(140deg,#274958f0,#0a2439e8);border:3px solid #0b1c2e;outline:1px solid #a6d4df;clip-path:polygon(0 0,85% 0,100% 12%,100% 100%,0 100%)}.portrait img{position:absolute;max-width:none;width:125%;height:auto;left:50%;transform:translateX(-50%);top:-7%;display:block}.portrait.sora img{width:119%;top:0}.hero-name{display:block;position:relative;margin-top:-1px;background:#0c2439;color:#d9f1f8;border-left:4px solid #ffcb59;padding:5px 10px;font-size:.75rem;font-weight:800;line-height:1.6}.conversation{background:#f7f6ee;color:#112a3c;padding:22px;min-width:0;display:flex;flex-direction:column;border-top:4px solid #f4c35b}.guide-heading{display:flex;align-items:center;gap:10px;min-height:60px;font-size:.8rem;font-weight:850;color:#365367;margin-top:-6px}.guide-avatar{width:64px;height:64px;position:relative;display:inline-block;flex:none;border:2px solid #112a3c;background:#daf1ef;overflow:hidden;clip-path:polygon(0 0,80% 0,100% 20%,100% 100%,0 100%)}.guide-avatar .metton{position:absolute;max-width:none;width:108%;height:auto;top:0;left:-1%}.guide-line{height:2px;flex:1;background:#c9d5d6}.question-text{font-size:clamp(1.1rem,2.2vw,1.55rem);line-height:1.95;margin:13px 0 8px;font-weight:900}.quizButtons{display:grid;grid-template-columns:1fr;gap:10px;margin-top:auto}.quizButtons .btn.answer{display:flex;align-items:center;gap:12px;border:2px solid #112a3c;border-radius:0;background:#fffef7;box-shadow:3px 3px 0 #123044;color:#102b3f;min-height:76px;padding:10px 13px;font-size:1rem;line-height:1.95}.quizButtons .answer-a{border-left:6px solid #f7c657!important}.quizButtons .answer-b{border-left:6px solid #39aab9!important}.quizButtons .btn.answer:hover{background:#fff1c6}.choiceLetter{border-radius:0;background:#123248;color:#fff;min-width:28px;height:30px;line-height:30px}.answer-arrow{margin-left:auto;font-size:1.5rem;color:#5e7d8a}.hint{margin:0 0 16px;font-size:.78rem;line-height:1.85;color:#284b61}.hint summary{cursor:pointer;display:list-item;list-style-position:inside;text-decoration:underline;text-underline-offset:3px;padding:5px 0}.hint p{margin:4px 0 8px;background:#e5eeeb;border-left:3px solid #278997;padding:8px 10px;font-size:.86rem;line-height:1.95}.choices-ox{grid-template-columns:1fr 1fr}.choices-ox .btn.answer{min-height:86px}.choices-ox .ox{font-size:2.3rem;line-height:1.1}.choices-ox .answer-arrow{display:none}.feedback-title{font-size:1.55rem;line-height:1.9;margin:12px 0 4px}.explanation{font-size:1.07rem;line-height:2.1;margin:4px 0 15px;font-weight:750}.chosen-answer{border-top:1px solid #c9d5d6;padding-top:10px;font-size:.77rem;color:#526975}.chosen-answer>span{font-size:.64rem}.chosen-answer p{margin:4px 0;font-size:.83rem;line-height:1.9}.encouragement{font-size:.78rem;line-height:1.9;margin:10px 0 16px;color:#285d65}.feedback-talk>.btn{margin-top:auto;line-height:1.9;width:100%}.speaker-label{font-size:.8rem;color:#346478;font-weight:850;border-bottom:2px solid #c9d5d6;padding-bottom:10px}.story-line{font-size:1.2rem;line-height:2.1;margin:24px 0}.story-controls{margin-top:auto;display:flex;align-items:center;gap:12px}.story-controls>span{font-size:.7rem;color:#6c8390}.story-controls .btn{flex:1}.imagined-kitchen{background:radial-gradient(ellipse at 60% 40%,#376676,#102c42);border:0}.imagined-place{position:absolute;top:20%;left:14%;right:10%;color:#fff}.imagined-place>span{font-size:.65rem;letter-spacing:.15em;color:#a2e4ec}.imagined-place strong{display:block;font-size:1.55rem;line-height:1.9;margin:8px 0}.imagined-place p{font-size:.75rem;line-height:1.8;margin:0}.story .scene-hero{width:185px}.story .portrait{height:200px}.ending .scene{height:300px;min-height:0}.ending .scene-hero{width:150px}.ending .portrait{height:163px}.ending>.scene{border:3px solid #06182a}.select .panel,.name .panel{max-width:650px;width:100%;margin:auto}.select h1,.name h1{font-size:1.8rem}.select .avatars{margin-top:22px}.clear .title{max-width:700px;width:100%;margin:auto}.foot{font-size:.64rem;color:#a5c4d2}.scene-caption rt{color:#fff}.question .conversation rt,.mode-feedback .conversation rt{color:inherit}.question .scene .portrait,.mode-feedback .scene .portrait{box-shadow:4px 4px 0 #06172b55}
@media(max-width:700px){.top{padding:9px 14px}.brand{font-size:.78rem}.header-actions{flex-direction:column;gap:4px}.top .btn{min-height:32px;font-size:.7rem;padding:2px 8px}.stage{font-size:.6rem}.motion-setting{font-size:.55rem}.screen{padding:12px;gap:8px}.adventure-cover{height:430px}.cover-label{left:18px;top:15px;font-size:.54rem}.cover-logo{width:310px;max-width:86%;height:185px;top:9%}.cover-team{inset:185px 3% 55px;gap:0}.cover-team img{max-width:32%;height:95%}.cover-team .cover-metton{height:74%;max-width:36%}.cover-copy{left:20px;bottom:12px}.cover-copy p{font-size:.9rem;line-height:1.65}.cover-copy strong{font-size:1.15rem}.start-console{grid-template-columns:1fr;padding:17px 20px;gap:12px}.start-caption{display:flex;align-items:center;justify-content:space-between}.start-caption p{font-size:1rem;margin:0}.start-caption>span{font-size:.56rem}.start-caption small{font-size:.65rem;margin-left:7px}.start-actions{gap:8px}.start-actions .btn{min-height:50px;padding:9px 12px}.start-actions .btn.quiet{min-height:26px;padding:2px}.start-note{font-size:.65rem}.adventure-layout{display:flex;flex-direction:column;border-width:2px;box-shadow:3px 4px 0 #030d19}.scene{height:195px;min-height:0;flex:none}.scene-bg{object-position:50% 58%}.scene-caption{font-size:.63rem;left:10px;top:7px}.scene-hero{left:10px;bottom:10px;width:104px}.portrait{height:112px}.hero-name{padding:3px 6px;font-size:.62rem}.conversation{padding:14px;border-top-width:3px}.guide-heading{min-height:43px;font-size:.73rem;gap:8px;margin-top:-3px}.guide-avatar{width:45px;height:45px}.question-text{font-size:1.05rem;line-height:1.95;margin:8px 0 5px}.quiz-hud{height:26px}.chapter-number{font-size:1rem;gap:7px}.chapter-number small{font-size:.69rem}.question-count{font-size:1.1rem}.question-count small{font-size:.65rem}.power{font-size:.69rem}.hint{font-size:.7rem;margin-bottom:10px}.hint p{font-size:.78rem}.quizButtons{gap:9px}.quizButtons .btn.answer{min-height:60px;padding:8px 10px;font-size:.91rem;line-height:1.9;gap:9px}.choices-ox .btn.answer{min-height:65px}.question .panel{padding:0}.feedback-title{font-size:1.18rem;margin:7px 0 4px}.explanation{font-size:.97rem;line-height:2;margin:5px 0 10px}.chosen-answer{padding-top:6px}.chosen-answer p{font-size:.77rem}.encouragement{font-size:.72rem;margin:8px 0 12px}.feedback-talk>.btn{font-size:.85rem;padding:9px;min-height:52px}.story .scene{height:265px}.story .scene-hero{width:135px}.story .portrait{height:146px}.story-line{font-size:1.05rem;line-height:2;margin:18px 0 25px}.story-controls .btn{font-size:.88rem;padding:10px}.imagined-place{top:24%;left:39%;right:6%}.imagined-place strong{font-size:1.15rem}.imagined-place p{font-size:.65rem}.imagined-place>span{font-size:.52rem}.ending .scene{height:225px}.ending .scene-hero{width:122px}.ending .portrait{height:132px}.select h1,.name h1{font-size:1.5rem}}
@media(max-height:650px) and (max-width:700px){.top{padding:6px 10px}.brand{font-size:.7rem}.stage{margin-top:2px;font-size:.55rem}.header-actions{gap:1px}.motion-setting{font-size:.49rem}.screen{padding:8px;gap:6px}.question .scene{height:112px}.question .scene-hero{width:75px;bottom:5px;left:8px}.question .portrait{height:77px}.question .hero-name{font-size:.52rem;padding:2px 4px}.question .scene-caption{left:96px;top:7px;font-size:.56rem}.question .conversation{padding:9px}.question .guide-heading{min-height:28px;font-size:.65rem}.question .guide-avatar{width:32px;height:32px}.question .question-text{font-size:.93rem;line-height:1.86;margin:7px 0 3px}.question .hint{font-size:.63rem;margin-bottom:7px}.question .hint summary{padding:2px 0}.question .quizButtons{gap:7px}.question .quizButtons .btn.answer{min-height:49px;font-size:.83rem;line-height:1.86;padding:7px 8px;gap:7px}.question .choiceLetter{min-width:24px;height:26px;line-height:26px}.question .quiz-hud{height:23px}.question .choices-ox .btn.answer{min-height:51px}.question .imagined-place{left:38%;top:24%}.question .imagined-place strong{font-size:.9rem;margin:4px 0}.question .imagined-place>span,.question .imagined-place p{display:none}.mode-feedback .scene{height:145px}.mode-feedback .scene-hero{width:90px;bottom:7px}.mode-feedback .portrait{height:97px}.mode-feedback .conversation{padding:11px}.mode-feedback .explanation{font-size:.87rem}.mode-feedback .guide-avatar{height:34px;width:34px}.mode-feedback .guide-heading{min-height:34px}.adventure-cover{height:310px}.cover-logo{height:145px;top:6%}.cover-team{inset:125px 5% 48px}.cover-copy p{font-size:.76rem}.cover-copy strong{font-size:1rem}.start-console{padding:12px 15px;gap:8px}.start-actions .btn{min-height:43px;font-size:.9rem;padding:6px}.start-actions .quiet{font-size:.7rem;min-height:24px}.start-note{font-size:.58rem}.story .scene{height:185px}.story .scene-hero{width:105px}.story .portrait{height:114px}.story-line{font-size:.95rem;margin:14px 0 20px}}
.scene.home:before{content:none}.scene.home{background:#16394d}
@media(max-height:650px) and (max-width:700px){.question:has(.hint[open]) .scene{height:88px}.question:has(.hint[open]) .scene-hero{width:60px;bottom:4px}.question:has(.hint[open]) .portrait{height:60px}.question:has(.hint[open]) .scene-caption{left:80px}.question:has(.hint[open]) .hero-name{font-size:.48rem}}
.conversation .foot{color:#425e6b}.ending .adventure-layout .scene{height:auto;min-height:420px}@media(max-width:700px){.ending .adventure-layout .scene{height:225px;min-height:0}}

/* v0.5: actor focus and one brief background-only earthquake. */
.story-context{font-size:.72rem;color:#c5e4ec;line-height:1.8;letter-spacing:.06em}
.story-talk[data-speaker="hero"]{border-top-color:#42b8c8}.story-talk[data-speaker="narrator"]{border-top-color:#93aab5}
.hero-speaking .portrait{outline:3px solid #ffd267}.hero-speaking .hero-name{background:#f5cf68;color:#122c3d}
.story-talk[data-speaker="metton"] .guide-avatar,.chapter-ending[data-speaker="metton"] .guide-avatar{outline:2px solid #d9a335}
.speaking-marker{float:right;color:#158292}.story-skip{background:transparent;color:#38556a;box-shadow:none;border:0;text-decoration:underline;font-size:.73rem;padding:9px 3px;min-height:36px;margin-top:9px}
.encouragement{border-left:3px solid #2895a6;padding-left:9px}.encouragement>[data-player-name]{font-weight:850;margin-right:5px}
@keyframes brief-quake{0%,100%{transform:translateX(0) scale(1.015)}20%{transform:translateX(-3px) scale(1.015)}40%{transform:translateX(3px) scale(1.015)}60%{transform:translateX(-2px) scale(1.015)}80%{transform:translateX(1px) scale(1.015)}}
.quake-once>.scene-bg{animation:brief-quake .65s ease-out 1}
.reduce-motion .quake-once>.scene-bg{animation:none!important}
@media(prefers-reduced-motion:reduce){.quake-once>.scene-bg{animation:none!important}}
@media(max-height:650px) and (max-width:700px){.story .scene{height:155px}.story .scene-hero{width:90px}.story .portrait{height:98px}.story-line{margin:12px 0 16px}.story-skip{margin-top:4px;padding:5px 3px}.story-context{font-size:.62rem}}
@media(max-height:650px) and (max-width:700px){.mode-feedback .scene{height:95px}.mode-feedback .scene-hero{width:65px;bottom:4px}.mode-feedback .portrait{height:64px}.mode-feedback .hero-name{font-size:.5rem;padding:2px 4px}.mode-feedback .scene-caption{left:85px}.mode-feedback .encouragement{margin:6px 0 8px}.ending .adventure-layout .scene{height:125px}.ending .scene-hero{width:83px;bottom:5px}.ending .portrait{height:85px}.ending .scene-caption{left:105px}.ending .conversation{padding:11px}}
@media(max-height:650px) and (max-width:700px){.mode-feedback .scene{height:85px}}

/* FIX全身を通常会話用の胸上フレームへ。元素材は変更しない。 */
.portrait.neutral img{width:119%;top:0}

/* v0.6 TOP: independent rows, safe areas, and a single inline ruby label. */
.app{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
.top{min-height:66px;flex-shrink:0}.top>div:first-child{min-width:0}.brand{line-height:1.5}.header-actions{flex-shrink:0}
.button-label{display:inline;line-height:inherit;word-spacing:normal;letter-spacing:normal}.button-label>span[aria-hidden]{display:inline-block;margin-left:.5em}
.start-actions .btn{display:block;text-align:center}.motion-setting>span{display:inline}
.adventure-cover{height:auto;display:grid;grid-template-rows:auto auto auto auto;justify-items:center;gap:12px;padding:22px 24px 20px;background:radial-gradient(ellipse at 50% 40%,#306376,#102a42 66%,#0b2035);}
.cover-label{position:static;align-self:start;justify-self:start;font-size:.6rem}
.cover-logo{position:static;transform:none;width:min(76%,390px);max-width:100%;height:185px;object-fit:contain}
.cover-team{position:static;inset:auto;width:min(90%,500px);height:225px;gap:52px;display:flex;align-items:end;justify-content:center}
.cover-team img{display:block;height:100%;max-width:42%;object-fit:contain}
.cover-copy{position:static;width:100%;text-align:center;padding-top:8px}.cover-copy p{font-size:.95rem;line-height:1.9;margin:0}.cover-copy strong{font-size:1.3rem}
@media(max-width:700px){.top{min-height:64px;padding:10px 14px}.adventure-cover{padding:15px 18px 18px;gap:8px}.cover-logo{height:145px;width:min(88%,310px)}.cover-team{height:180px;gap:35px;width:92%}.cover-copy{padding-top:8px}.cover-copy p{font-size:.8rem}.cover-copy strong{font-size:1.1rem}.cover-label{font-size:.5rem}}
@media(max-height:650px) and (max-width:700px){.top{min-height:58px;padding:7px 10px}.adventure-cover{padding:12px 15px;gap:7px}.cover-logo{height:115px}.cover-team{height:145px;gap:28px}.cover-copy p{font-size:.72rem}.cover-copy strong{font-size:.98rem}.cover-copy{padding-top:5px}}

/* TOP art keeps its full portrait composition; desktop actions sit beside it. */
.adventure-cover{width:100%;max-width:450px;aspect-ratio:948/1659;grid-template-rows:6% 31% 23% 27% 13%;gap:0;padding:0;margin:0 auto;overflow:hidden}
.cover-bg{object-fit:contain;object-position:center}.cover-shade{background:linear-gradient(180deg,#07162522,transparent 55%,#07162533 75%,#071625ee 100%)}
.cover-label{padding:15px 18px;color:#14344b;letter-spacing:.14em}.cover-logo{height:100%;width:83%;max-width:100%;padding:5px;filter:drop-shadow(0 3px 0 #06132655)}
.cover-view-gap{width:100%;height:100%}.cover-team{height:100%;width:82%;gap:36px;padding-bottom:8px}.cover-team img{height:100%;max-width:43%}.cover-copy{padding:5px 12px 10px;align-self:center}.cover-copy p{font-size:.8rem;line-height:1.7}.cover-copy strong{font-size:1.1rem}
.portrait.haru.neutral img{width:125%;top:-7%}.portrait.sora.neutral img{width:119%;top:0}
@media(min-width:900px){.screen.title{display:grid;grid-template-columns:minmax(350px,450px) 1fr;align-items:center;background:#0b2236}.start-console{display:flex;flex-direction:column;justify-content:center;padding:36px;border-top:0;gap:24px}.start-caption p{font-size:1.8rem}.cover-copy p{font-size:.9rem}.cover-copy strong{font-size:1.25rem}}
@media(max-height:650px) and (max-width:700px){.cover-label{padding:11px 15px}.cover-copy p{font-size:.7rem}.cover-copy strong{font-size:.95rem}.cover-team{gap:25px}}

.header-actions{flex-direction:row;gap:8px;align-items:center}.top .brand{font-size:clamp(.68rem,2.4vw,.9rem)}.top .btn{min-height:36px;padding:4px 7px;white-space:nowrap}
.loading-panel{width:min(100%,600px);margin:auto}.loading-panel h1{font-size:1.5rem}.loading-panel progress{width:100%;height:18px;accent-color:#148594}.loading-panel #loadingActions{display:grid;gap:12px;margin-top:18px}
.audio-toggle{display:flex;align-items:center;gap:8px;font-weight:800;line-height:2;margin-top:14px}.audio-toggle input{width:20px;height:20px;accent-color:#148594}.audio-volume{display:flex;justify-content:space-between;line-height:2;margin-top:12px;font-size:.85rem}#soundDialog input[type=range]{width:100%;min-height:32px;accent-color:#148594}#audioStatus:empty{display:none}#audioStatus{font-size:.8rem;line-height:1.9}#soundDialog{max-height:calc(100dvh - 32px);overflow:auto}#soundDialog .stack{gap:8px}#soundDialog p{font-size:.85rem}
@media(max-width:360px){.top{flex-wrap:wrap}.header-actions{margin-left:auto}.brand{letter-spacing:0}.top .btn{font-size:.65rem;min-height:32px}}

/* Chapter clear: companion reveal -> achievement -> hero -> takeaways. No score ranking. */
.clear{max-width:1000px;width:100%;margin:0 auto;padding-bottom:max(24px,env(safe-area-inset-bottom,0px));gap:18px}
.clear-heading{text-align:center}.clear-heading>span{color:#78dce5;font-size:.62rem;letter-spacing:.15em}.clear-heading h1{font-size:1.8rem;margin:6px 0 0;line-height:1.8;color:#fff}.clear-heading p{margin:0;font-size:.8rem;color:#c0dce6}
.clear-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.companion-card{position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 35%,#346779,#0a233a 70%);border:1px solid #4e8a9b;display:grid;grid-template-columns:1.3fr 1fr;align-items:center;padding:24px 18px;gap:12px;isolation:isolate}.reward-halo{position:absolute;top:28px;left:12%;width:70%;aspect-ratio:1;border:1px solid #c5db7460;border-radius:50%;box-shadow:0 0 0 22px #81cce411,0 0 0 44px #81cce408;z-index:-1}
.reward-metton{grid-column:1/-1;text-align:center;animation:reward-in .45s ease-out both}.reward-metton img{height:190px;max-width:100%;object-fit:contain}.reward-name{align-self:center;animation:reward-in .45s .3s ease-out both}.reward-name>span{color:#ffda71;font-size:.6rem;letter-spacing:.1em}.reward-name h2{font-size:1.25rem;color:#fff;margin:8px 0;line-height:1.8}.reward-hero{width:128px;justify-self:end;text-align:center;animation:reward-in .45s .6s ease-out both}.reward-hero .portrait{height:135px}.reward-hero>span{font-size:.7rem}.reward-hero>p{font-size:.65rem;line-height:1.8;color:#d1e9ed;margin:3px 0}
.takeaways{animation:reward-in .45s .85s ease-out both}.takeaways h2{font-size:1.1rem;color:#fff;line-height:1.9;margin:0 0 12px}.learning-card{display:flex;align-items:center;gap:16px;background:#eaf2ef;color:#133549;margin-bottom:10px;padding:14px;border-left:4px solid #65ccd6}.learning-card>span{font-size:.9rem;color:#437b89;font-weight:850}.learning-card p{margin:0;line-height:1.9;font-size:.85rem}.learning-card strong{font-size:1.02rem}.clear-note{font-size:.7rem;color:#aacbd8;line-height:1.8;margin:12px 0 0}.clear-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:6px 0 12px}.clear-actions .btn{font-size:.9rem;line-height:1.9}
@keyframes reward-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.clear{gap:12px;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}.clear-heading h1{font-size:1.4rem}.clear-grid{grid-template-columns:1fr;gap:16px}.companion-card{grid-template-columns:115px 1fr;gap:8px;padding:14px}.reward-metton{grid-column:1;grid-row:1/3}.reward-metton img{height:145px}.reward-name{grid-column:2;grid-row:1}.reward-name h2{font-size:1rem;margin:3px 0}.reward-hero{grid-column:2;grid-row:2;width:100%;display:grid;grid-template-columns:65px 1fr;gap:0 8px;align-items:center;text-align:left}.reward-hero .portrait{height:70px;grid-row:1/3}.reward-hero>span{font-size:.62rem;align-self:end}.reward-hero>p{font-size:.6rem;align-self:start}.reward-halo{width:150px;left:-10px;top:10px}.takeaways h2{font-size:.95rem;margin-bottom:8px}.learning-card{padding:8px 12px;gap:12px;margin-bottom:7px}.learning-card p{font-size:.75rem;line-height:1.8}.learning-card strong{font-size:.9rem}.learning-card p br{display:none}.clear-note{font-size:.62rem;margin:8px 0}.clear-actions{gap:10px;padding-bottom:12px}.clear-actions .btn{font-size:.8rem;padding:10px 5px;min-height:48px}}

/* Single-image reactions: translation only; never deform the master artwork. */
@keyframes metton-talk{0%,100%{transform:translateY(0)}40%{transform:translateY(-2px)}}
@keyframes metton-cheer{0%,100%{transform:translateY(0)}30%{transform:translateY(-5px)}65%{transform:translateY(-2px)}}
.conversation[data-speaker=metton] .guide-avatar .metton{animation:metton-talk .5s ease-out 1}
.conversation.metton-happy .guide-avatar .metton{animation:metton-cheer .6s ease-out 1}
.reward-metton .metton{animation:metton-cheer .6s .12s ease-out 1}
.clear-actions{position:sticky;bottom:env(safe-area-inset-bottom,0px);background:#0b2035ed;z-index:5;padding:10px 6px 12px;border-top:1px solid #3d667d}
@media(prefers-reduced-motion:reduce){.conversation .guide-avatar .metton,.reward-metton .metton,.clear *{animation:none!important}}

/* Metton is an independent scene actor, never baked into the background. */
.scene-metton{position:absolute;right:20px;bottom:18px;width:165px;opacity:.68;filter:brightness(.88)}.scene-metton .metton{display:block;width:100%;height:auto;max-width:none;filter:drop-shadow(2px 4px 2px #08253b66)}
.metton-speaking .scene-metton{opacity:1;filter:brightness(1.04)}.metton-speaking .scene-metton .metton{animation:metton-talk .5s ease-out 1}.metton-happy .scene-metton .metton{animation:metton-cheer .6s ease-out 1}.conversation[data-speaker=metton] .guide-heading{color:#125f75}.guide-heading{border-left:4px solid #d1a747;padding-left:10px;min-height:38px;margin:0}.question .scene-metton,.mode-feedback .scene-metton{width:96px;right:14px;bottom:12px}
@media(max-width:700px){.scene-metton{width:125px;right:14px;bottom:12px}.question .scene-metton,.mode-feedback .scene-metton{width:65px;right:12px;bottom:10px}.guide-heading{min-height:30px}.ending .scene-metton{width:105px}.story .scene-metton{width:125px}}
@media(max-height:650px) and (max-width:700px){.question .scene-metton,.mode-feedback .scene-metton{width:45px;right:9px;bottom:6px}.story .scene-metton{width:90px;bottom:9px}.ending .scene-metton{width:75px;bottom:7px}}
@media(prefers-reduced-motion:reduce){.scene-metton .metton{animation:none!important}}
@media(min-width:701px){.story .adventure-layout{grid-template-columns:1fr}.story .scene{height:300px;min-height:0}.story .story-line{margin:16px 0 20px}.story .story-controls .btn{flex:none;min-width:260px;margin-left:auto}.story .story-skip{align-self:flex-end}.story .conversation{padding:18px 22px}}

/* v0.6.1: title first view. Detail stays in the accessible menu dialog. */
.app[data-view=title]{height:100dvh;min-height:0;--title-header:56px;overflow:hidden}
.app[data-view=title]>.top{height:var(--title-header);min-height:var(--title-header);padding:6px 14px;flex:none;flex-wrap:nowrap}
.app[data-view=title] .brand{display:none}.app[data-view=title] .stage{margin:0;font-size:.67rem;line-height:1.7;letter-spacing:0}
.app[data-view=title] .header-actions{gap:6px}.app[data-view=title]>.foot{display:none}
.app[data-view=title]>.screen.title{min-height:0;flex:1;display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;width:100%;padding:0;gap:0;overflow:hidden}
.app[data-view=title] .adventure-cover{height:100%;width:100%;max-width:none;min-height:0;aspect-ratio:auto;grid-template-rows:43% 8% 49%;padding:8px 18px 6px;margin:0;gap:0}
.app[data-view=title] .cover-label,.app[data-view=title] .cover-copy{display:none}.app[data-view=title] .cover-logo{width:min(82%,360px);height:100%;min-height:0;padding:2px;grid-row:1;object-fit:contain}
.app[data-view=title] .cover-view-gap{grid-row:2}.app[data-view=title] .cover-team{grid-row:3;min-height:0;height:100%;max-height:230px;align-self:end;width:min(85%,420px);gap:30px;padding:4px 0 8px}
.app[data-view=title] .cover-team img{height:100%;max-width:43%;min-height:0}.app[data-view=title] .cover-bg{object-fit:cover;object-position:50% 55%}.app[data-view=title] .cover-shade{background:linear-gradient(180deg,#07162511,transparent 50%,#07162577)}
.app[data-view=title] .start-console{display:block;padding:12px 18px max(12px,env(safe-area-inset-bottom,0px));border-top:3px solid #59d9e3;min-height:0}
.app[data-view=title] .start-caption,.app[data-view=title] .start-note{display:none}.app[data-view=title] .start-actions{gap:10px;max-width:460px;margin:auto}.app[data-view=title] .start-actions .btn{font-size:1.05rem;min-height:52px;padding:10px 14px}
#titleMenu{max-height:calc(100dvh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));overflow:auto;padding:18px}.menu-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.menu-heading h2{margin:0}.menu-heading .btn{min-height:40px;padding:6px 10px;font-size:.85rem}.menu-chapter{font-size:.95rem;font-weight:800}.menu-info{border-top:1px solid #acc2cd;margin-top:20px;padding-top:12px}.menu-info h3{font-size:1rem;line-height:1.8;margin:8px 0}.menu-info p{font-size:.86rem;line-height:2}.menu-info small{font-size:.72rem;color:#405c6e}
@media(min-width:900px){.app[data-view=title]>.screen.title{grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr)}.app[data-view=title] .adventure-cover{padding:20px 24px;grid-template-rows:40% 18% 42%}.app[data-view=title] .cover-team{max-height:290px}.app[data-view=title] .start-console{align-self:center;padding:30px;border-top:0}.app[data-view=title] .start-actions .btn{min-height:60px;font-size:1.2rem}.app[data-view=title] .cover-bg{object-fit:contain;background:#16394d}}
@media(max-width:360px){.app[data-view=title]{--title-header:52px}.app[data-view=title]>.top{padding:5px 9px}.app[data-view=title] .stage{font-size:.59rem}.app[data-view=title] .header-actions{margin-left:0;gap:5px}.app[data-view=title] .top .btn{font-size:.7rem;min-height:36px}.app[data-view=title] .start-console{padding:10px 14px max(10px,env(safe-area-inset-bottom,0px))}.app[data-view=title] .start-actions{gap:8px}.app[data-view=title] .start-actions .btn{min-height:49px;font-size:1rem;padding:9px 12px}}

/* Preserve Metton's asymmetric gear: put him to the left, facing inward without mirroring. */
.scene-hero{left:auto!important;right:16px}.scene-metton{left:20px;right:auto!important}
@media(max-width:700px){.scene-hero{right:10px}.scene-metton{left:14px}}
@media(max-height:650px) and (max-width:700px){.scene-hero{right:8px}.scene-metton{left:9px}}
.imagined-kitchen .imagined-place{left:24%;right:36%}
.quake-indicator{position:absolute;left:12px;top:38px;background:#18364be8;border-left:4px solid #ffca58;color:#fff3c8;padding:4px 9px;font-weight:800;font-size:.75rem;line-height:1.8;z-index:3}
.quake-lines{position:absolute;left:40%;top:35%;width:22%;height:34%;pointer-events:none}.quake-lines i{position:absolute;left:0;top:0;width:10px;height:30px;border-left:3px solid #fff0ae;border-right:2px solid #18364b;transform:rotate(18deg)}.quake-lines i+i{left:auto;right:0;top:auto;bottom:0;transform:rotate(-18deg)}
@keyframes distinct-quake{0%,100%{transform:translate(0,0) scale(1.04)}12%{transform:translate(-6px,1px) scale(1.04)}25%{transform:translate(6px,-1px) scale(1.04)}38%{transform:translate(-5px,1px) scale(1.04)}52%{transform:translate(5px,0) scale(1.04)}66%{transform:translate(-3px,-1px) scale(1.04)}80%{transform:translate(3px,1px) scale(1.04)}}
.quake-once>.scene-bg{animation:distinct-quake .95s ease-out 1}.quake-once .quake-lines{animation:metton-talk .3s ease-out 3}
@media(max-height:650px) and (max-width:700px){.quake-indicator{top:28px;font-size:.62rem;padding:2px 7px}.quake-lines{left:30%;top:55%;height:30%;width:20%}}
@media(prefers-reduced-motion:reduce){.quake-once>.scene-bg,.quake-once .quake-lines{animation:none!important}}

/* Q3 keeps the stove visible at right, with companions in the foreground. */
.imagined-kitchen .scene-bg{object-position:85% 50%}
.imagined-kitchen .scene-hero{left:27%!important;right:auto}
@media(min-width:701px){.imagined-kitchen .scene-hero{left:max(27%,116px)!important}}

.story .imagined-kitchen .scene-hero{left:max(44%,145px)!important}
@media(min-width:701px){.story .imagined-kitchen .scene-hero{left:max(38%,190px)!important}}

.opening .movie-copy .stack{position:sticky;bottom:max(10px,env(safe-area-inset-bottom));z-index:5}.opening .movie-copy .stack .btn{min-height:48px}
/* Fixed scene anchors across dialogue, questions, reactions and explanations. */
.scene .scene-hero,.story .scene .scene-hero,.question .scene .scene-hero,.mode-feedback .scene .scene-hero{left:12px!important;right:auto!important;bottom:12px!important;width:140px!important}
.scene .scene-hero .portrait{height:140px!important}
.scene .scene-metton,.story .scene .scene-metton,.question .scene .scene-metton,.mode-feedback .scene .scene-metton{left:auto!important;right:12px!important;bottom:12px!important;width:95px!important;transform:scaleX(-1)}
@media(max-width:700px){.scene .scene-hero,.story .scene .scene-hero,.question .scene .scene-hero,.mode-feedback .scene .scene-hero{left:10px!important;bottom:8px!important;width:100px!important}.scene .scene-hero .portrait{height:100px!important}.scene .scene-metton,.story .scene .scene-metton,.question .scene .scene-metton,.mode-feedback .scene .scene-metton{right:10px!important;bottom:8px!important;width:65px!important}}
@media(max-height:650px) and (max-width:700px){.scene .scene-hero,.story .scene .scene-hero,.question .scene .scene-hero,.mode-feedback .scene .scene-hero{width:64px!important;bottom:4px!important}.scene .scene-hero .portrait{height:64px!important}.scene .scene-metton,.story .scene .scene-metton,.question .scene .scene-metton,.mode-feedback .scene .scene-metton{width:40px!important;bottom:4px!important}.scene .hero-name{font-size:.5rem;padding:2px 4px}}
.image-curtain{position:fixed;inset:0;z-index:100;background:#071625d9;color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;padding:24px}.image-curtain[hidden]{display:none}.image-unavailable{display:inline-block;padding:12px;background:#173b50;color:white}

.chapter-ending .btn.skip-secondary{width:auto;min-height:44px;display:inline-flex;align-items:center;padding:7px 12px;margin-top:8px;font-size:.78rem;background:transparent;color:#315969;border:1px solid #a2bac2;box-shadow:none}
.chapter-ending .btn.skip-secondary{width:fit-content;justify-self:start;align-self:start;max-width:100%}

/* Clear text and actions remain in document flow, never covering the next-stage note. */
.clear-heading{padding:10px 0 4px;text-align:center}.clear-heading h1{margin:10px 0 12px;line-height:1.65}.clear-heading p{line-height:1.9;margin:0 0 12px}.clear-heading>span{letter-spacing:.08em}.clear .takeaways>h2{line-height:1.85;margin:0 0 14px}.clear .learning-card p{line-height:1.9}.clear .clear-note{font-size:.8rem;line-height:2;margin:18px 0 6px}.clear .clear-actions{position:static;bottom:auto;margin-top:12px;padding:10px 0 max(12px,env(safe-area-inset-bottom));background:transparent;box-shadow:none}.clear .reward-name h2{line-height:1.85}.clear .reward-hero p{line-height:1.8}

/* TOP only: six CSS lights, finite animation, no canvas or extra downloads. */
.title .title-light{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden;contain:paint}.title .cover-logo,.title .cover-team{z-index:2}.title-light:before{content:"";position:absolute;top:-20%;left:-35%;width:24%;height:150%;background:linear-gradient(90deg,transparent,#fff4bb45,transparent);transform:rotate(22deg);opacity:0;animation:title-ray 7s ease-out 1}.title-light i{position:absolute;left:8%;top:37%;width:5px;height:5px;border-radius:50%;background:#fff7b6;box-shadow:0 0 9px 3px #ffe9a87a;opacity:0;animation:title-spark 8s ease-in-out 2}.title-light i:nth-child(2){left:87%;top:42%;animation-delay:1.2s}.title-light i:nth-child(3){left:18%;top:65%;animation-delay:2s;width:3px;height:3px}.title-light i:nth-child(4){left:79%;top:72%;animation-delay:.6s}.title-light i:nth-child(5){left:11%;top:20%;animation-delay:3s;width:3px;height:3px}.title-light i:nth-child(6){left:92%;top:14%;animation-delay:2.5s;width:3px;height:3px}
@keyframes title-ray{0%{opacity:0;transform:translateX(0) rotate(22deg)}25%{opacity:.5}75%{opacity:.3}100%{opacity:0;transform:translateX(600%) rotate(22deg)}}
@keyframes title-spark{0%,100%{opacity:0;transform:translateY(10px)}35%,65%{opacity:.7}80%{opacity:.2;transform:translateY(-24px)}}
.page-away .title-light:before,.page-away .title-light i{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.title-light:before,.title-light i{animation:none!important}.title-light i{opacity:.25}}
/* Short landscape phones: allocate height to reading and controls, not a tall scene. */
@media (min-width:600px) and (max-height:500px){
 .top{min-height:52px;padding:5px 12px}.top .brand{font-size:.75rem}.top .stage{font-size:.58rem}.top .btn{min-height:44px;padding:5px 9px}.header-actions{gap:7px}.app>footer{font-size:.58rem;line-height:1.5;padding:3px 10px}.app>footer br{display:none}.app>footer br:after{content:' '}
 .screen{padding:8px 12px;gap:5px}.screen.question,.screen.story,.screen.mode-feedback,.screen.ending{height:calc(100dvh - 82px);min-height:0;display:flex;flex-direction:column}
 .screen .adventure-layout,.story .adventure-layout{display:grid;grid-template-columns:minmax(210px,.82fr) minmax(0,1.18fr);flex:1;min-height:0;gap:0}
 .screen .adventure-layout .scene,.story .scene,.ending .adventure-layout .scene{height:100%;min-height:0}
 .question .quiz-hud,.mode-feedback .quiz-hud{height:23px;flex:none}.question-count{font-size:1rem}.chapter-number{font-size:1rem}.progress{height:3px;flex:none}
 .story-context,.chapter-label{font-size:.64rem;line-height:1.5}
 .screen .conversation,.story .conversation{padding:8px 12px;min-height:0;gap:5px}
 .screen .guide-heading{min-height:20px;line-height:1.5;font-size:.7rem}.question .question-text{font-size:1rem;line-height:1.65;margin:4px 0}.question .hint{font-size:.75rem;margin:1px 0 4px}.question .hint summary{padding:2px 0}
 .question .quizButtons{gap:6px}.question .quizButtons .btn.answer{font-size:.92rem;line-height:1.65;min-height:44px;padding:6px 8px;gap:8px}.question .choices-ox .btn.answer{min-height:44px}.question .choiceLetter{height:25px;line-height:25px;min-width:24px}.question .ox{font-size:1.4rem}
 .scene .scene-hero,.story .scene .scene-hero,.question .scene .scene-hero,.mode-feedback .scene .scene-hero{left:10px!important;bottom:8px!important;width:90px!important}.scene .scene-hero .portrait{height:90px!important}.scene .scene-metton,.story .scene .scene-metton,.question .scene .scene-metton,.mode-feedback .scene .scene-metton{right:10px!important;bottom:8px!important;width:65px!important}.scene .hero-name{font-size:.6rem}.scene-caption{font-size:.6rem}
 .story .story-line{font-size:1rem;line-height:1.85;margin:8px 0 10px}.story-controls .btn,.story .story-controls .btn{min-width:0;min-height:44px;font-size:.9rem;padding:6px 12px}.story .story-skip{min-height:44px;align-self:flex-end;font-size:.75rem;margin:0;padding:5px 8px}
 .feedback-title{font-size:1.1rem;line-height:1.7;margin:3px 0}.mode-feedback .explanation{font-size:.95rem;line-height:1.75;margin:4px 0}.mode-feedback .chosen-answer{font-size:.75rem;margin:3px 0;padding:4px 7px}.mode-feedback .chosen-answer p{margin:2px 0;line-height:1.6}.mode-feedback .encouragement{font-size:.75rem;line-height:1.65;margin:4px 0}.mode-feedback .conversation>.btn{min-height:44px;font-size:.85rem;padding:6px 10px}
 .chapter-ending .eyebrow{font-size:.66rem}.chapter-ending h2{font-size:1rem;margin:3px 0}.chapter-ending>p{font-size:1rem;line-height:1.85;margin:8px 0 12px}.chapter-ending>.btn{min-height:44px;font-size:.9rem;padding:6px 10px}.chapter-ending .btn.skip-secondary{margin-top:4px}
 .opening{grid-template-columns:1fr 1.2fr;display:grid;align-items:stretch}.opening .movie-stage{height:calc(100dvh - 100px);min-height:0}.opening .movie-copy{padding:12px 18px}.opening .movie-copy h1{font-size:1.15rem;line-height:1.7}.opening .movie-copy p{font-size:.9rem;line-height:1.8}.opening .movie-copy .foot{font-size:.65rem}.opening .movie-visual{min-height:0}
 .app[data-view=title] .screen.title{grid-template-columns:1.1fr 1fr;grid-template-rows:minmax(0,1fr)}.app[data-view=title] .start-console{display:flex;flex-direction:column;justify-content:center;padding:18px;border-top:0;border-left:2px solid #59d9e3}.app[data-view=title] .start-actions{width:100%}
 .select .avatars{display:flex;justify-content:center;gap:18px}.select .avatar{padding:6px 14px}.select .avatar img{height:130px;width:auto}.select h1,.name h1{font-size:1.2rem;margin:0}.select .panel>p{margin:4px 0}.select .stack .btn,.name .btn{min-height:44px;font-size:.9rem;padding:6px 10px}.select .panel{padding:10px}.name .panel{max-width:650px;width:100%;margin:auto;padding:12px 20px}.name .stack{grid-template-columns:1fr 1fr;display:grid}.name .field{padding:8px;font-size:1rem}
}
/* Tablets retain generous text and balanced columns without oversized portraits. */
@media(min-width:701px) and (min-height:501px) and (max-width:1200px){.screen{padding:18px;gap:10px}.question .adventure-layout,.mode-feedback .adventure-layout,.ending .adventure-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.conversation{padding:16px}.story .scene{height:260px}.story .conversation{padding:16px 20px}.story .story-controls .btn{min-width:200px}.scene .scene-caption{font-size:.68rem}}
.story .story-skip{min-height:44px}
@media(min-width:600px) and (max-height:500px){.select .avatars{margin:4px 0;gap:20px}.select .avatar{height:140px;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:5px 14px}.select .avatar img{height:105px;max-height:105px;width:auto}.select .avatar small{font-size:.75rem;line-height:1.6}.select .panel h1{font-size:1.2rem;line-height:1.6}.select .panel>p{font-size:.85rem;line-height:1.6;margin:2px 0}.select .stack{margin-top:5px}}
@media(min-width:600px) and (max-height:500px){.mode-feedback .conversation{display:flex;flex-direction:column;gap:3px;padding:6px 10px}.mode-feedback .guide-heading{min-height:16px;line-height:1.4}.mode-feedback .feedback-title{font-size:1rem;line-height:1.5;margin:0}.mode-feedback .explanation{font-size:.9rem;line-height:1.6;margin:2px 0}.mode-feedback .chosen-answer{font-size:.7rem;line-height:1.5;margin:0;padding:2px 5px}.mode-feedback .chosen-answer p{margin:0;line-height:1.5}.mode-feedback .encouragement{font-size:.7rem;line-height:1.5;margin:2px 0}.mode-feedback .conversation>.btn{margin-top:auto;min-height:44px;flex-shrink:0}}
/* Prologue is omitted for this trial; keep its data only for a future revision. */
#menuReplay{display:none!important}
/* Slightly stronger guide presence on question screens only, same foot/right anchor. */
.question .scene .scene-metton{width:109px!important}
@media(max-width:700px){.question .scene .scene-metton{width:75px!important}}
@media(max-height:650px) and (max-width:700px){.question .scene .scene-metton{width:46px!important}}
@media(min-width:600px) and (max-height:500px){.question .scene .scene-metton{width:75px!important}}
/* v0.6.4: landscape TOP is one full-width scene; portrait rules remain intact. */
@media (orientation:landscape) and (min-width:600px){
 .app[data-view=title]{max-width:none;padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
 .app[data-view=title]>.screen.title{position:relative;display:block;height:calc(100dvh - var(--title-header));width:100%;flex:1}
 .app[data-view=title] .adventure-cover{position:absolute;inset:0;display:block;padding:0;height:100%;width:100%}
 .app[data-view=title] .cover-bg{object-fit:cover;object-position:50% 54%;background:transparent}
 .app[data-view=title] .cover-shade{background:linear-gradient(180deg,#08213908 45%,#08213970)}
 .app[data-view=title] .cover-logo{position:absolute;left:50%;top:3%;transform:translateX(-50%);width:48%;max-width:650px;height:64%;padding:0}
 .app[data-view=title] .cover-team{position:absolute;inset:6% 5% 4%;display:flex;justify-content:space-between;align-items:flex-end;width:auto;height:auto;max-height:none;padding:0;gap:0}
 .app[data-view=title] .cover-team img{height:90%;max-width:24%;width:auto;object-fit:contain}
 .app[data-view=title] .start-console{position:absolute;z-index:4;left:50%;bottom:max(14px,env(safe-area-inset-bottom,0px));transform:translateX(-50%);width:40%;max-width:460px;padding:0;display:block;background:transparent;border:0}
 .app[data-view=title] .start-actions{width:100%;gap:8px;display:grid;grid-template-columns:1fr;margin:0}
 .app[data-view=title] .start-actions .btn{min-height:52px;font-size:1.08rem;padding:8px 12px}
 .app[data-view=title] .cover-view-gap{display:none}
}
@media (orientation:landscape) and (min-width:600px) and (max-height:500px){
 .app[data-view=title]{--title-header:48px}
 .app[data-view=title] .cover-logo{top:1%;height:64%;width:46%}
 .app[data-view=title] .cover-team{inset:3% 7% 4%}
 .app[data-view=title] .cover-team img{height:96%;max-width:23%}
 .app[data-view=title] .start-console{width:48%;max-width:490px;bottom:max(10px,env(safe-area-inset-bottom,0px))}
 .app[data-view=title] .start-actions{grid-auto-flow:column;grid-auto-columns:1fr;grid-template-columns:none;gap:10px}
 .app[data-view=title] .start-actions .btn{min-height:46px;font-size:.95rem;padding:6px 10px;gap:8px}
}
/* Let content determine landscape height; document scrolling keeps every answer reachable. */
@media (orientation:landscape) and (min-width:600px) and (max-height:500px){
 .app:not([data-view=title]){height:auto;min-height:100dvh;overflow:visible;padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
 .screen.question,.screen.story,.screen.mode-feedback,.screen.ending{height:auto;min-height:calc(100dvh - 82px);flex:1 0 auto;overflow:visible}
 .screen .adventure-layout,.story .adventure-layout{flex:none;min-height:0;grid-template-rows:auto;align-items:stretch;overflow:visible}
 .screen .adventure-layout .scene,.story .scene,.ending .adventure-layout .scene{height:auto;min-height:190px;align-self:stretch}
 .screen .conversation,.story .conversation{height:auto;min-height:min-content;overflow:visible}
 .screen .conversation>*{flex-shrink:0}
 .app:not([data-view=title])>.foot{position:static;flex:none;clear:both;margin:8px 0 0;padding-bottom:max(8px,env(safe-area-inset-bottom,0px))}
}
@media (orientation:landscape) and (min-width:600px){
 .app[data-view=title] .cover-team{top:4%;bottom:auto;height:92%;align-self:auto;grid-row:auto}
 .app[data-view=title] .cover-team img{height:100%;max-height:100%;width:24%;object-position:center bottom}
}
@media (orientation:landscape) and (min-width:600px){
 body{-webkit-text-size-adjust:100%;text-size-adjust:100%}
 .app[data-view=title]{height:100svh;height:100dvh}
}
