/* The painting fills the viewport; controls occupy only its edges. */
.world-stage{position:relative;isolation:isolate;min-height:760px;height:100svh;width:100%;overflow:hidden;background:#d6d9c5;color:#f8f2df}
.world-landscape,.world-shade{position:absolute;inset:0;z-index:-2;background-position:center;background-size:cover;background-repeat:no-repeat}
.world-shade{z-index:-1;background:linear-gradient(180deg,#122b2420,transparent 45%,#122b2466)}
.world-heading{position:absolute;top:145px;left:5vw;max-width:65%;text-shadow:0 2px 25px #fff8db,0 1px 6px #fff8db;color:#203c32}
.world-heading>p:first-child{font-size:12px;letter-spacing:3px;margin:0 0 10px;font-weight:700}
.world-heading h1{font:500 clamp(36px,4.8vw,68px)/1.25 Georgia,"Noto Serif TC","Songti TC",serif;letter-spacing:2px;margin:0 0 20px}
.world-heading>p:last-child{display:inline-block;font-size:13px;letter-spacing:.5px;background:#fff9e8e0;border:1px solid #bca677;padding:9px 15px;margin:0;border-radius:4px;text-shadow:none;color:#284436}
.world-tools{position:absolute;right:4vw;top:95px;display:flex;gap:8px;margin:0;z-index:3}
.world-tools button{background:#fcf7e9ed;color:#284436;border:1px solid #cec1a6;padding:10px 15px;border-radius:50px;min-height:42px;font-size:12px;line-height:1.5}
.world-dialogue{position:absolute;bottom:5vh;left:5vw;width:min(620px,57vw);background:linear-gradient(120deg,#193d34f5,#294f42ed);backdrop-filter:blur(12px);border:1px solid #d5c38b80;border-top:2px solid #c6ac6c;color:#fff7e2;padding:24px 30px;border-radius:5px;box-shadow:0 15px 70px #14261f45;text-align:left}
.world-speaker{display:flex;align-items:center;justify-content:space-between;gap:14px;color:#e4cb8c;font-size:13px;letter-spacing:1px}.world-speaker span{font-size:11px;opacity:.8}
.world-dialogue>p{font:500 clamp(18px,1.55vw,23px)/1.8 Georgia,"Noto Serif TC","Songti TC",serif;margin:15px 0;min-height:2em;color:inherit;white-space:normal}
.world-dialogue>small{display:block;color:#e3e4ce;font-size:12px;line-height:1.7}
.world-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px;flex-wrap:wrap}
.world-actions button{border:1px solid #d3c59b80;background:transparent;color:#f9f3df;font:inherit;font-size:12px;min-height:44px;padding:10px 16px;border-radius:4px;line-height:1.5}
.world-actions .primary{background:#f5e9c8;color:#253e31;border-color:#f5e9c8;font-weight:650}.world-actions button:hover:not(:disabled){background:#fff7e2;color:#203c32}.world-actions button:disabled{opacity:.4}
.world-drawer{width:min(1100px,94vw);max-width:94vw;max-height:88dvh;margin:auto;border:1px solid #b8a985;border-radius:8px;background:#faf7eb;color:#284436;padding:28px;box-shadow:0 20px 90px #13271e44;overflow:auto}
.world-drawer::backdrop{background:#16312680;backdrop-filter:blur(8px)}.drawer-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;position:sticky;top:-28px;background:#faf7ebf5;z-index:5;padding:12px 0;border-bottom:1px solid #d8cfb9;margin-bottom:18px}.drawer-heading h2{font-size:23px;margin:0}.drawer-heading>button{flex-shrink:0;min-height:44px;padding:8px 14px;background:#fffaf0;color:#284436;border:1px solid #c8b99b;border-radius:4px}
[hidden]{display:none!important}
@media(max-width:700px){
 .world-stage{height:100svh;min-height:740px}.world-landscape{background-position:64% center}
 .world-heading{left:20px;right:20px;top:172px;max-width:none}.world-heading h1{font-size:32px;line-height:1.3;margin-bottom:12px}.world-heading>p:first-child{font-size:10px;letter-spacing:1px}.world-heading>p:last-child{font-size:11px;padding:8px 10px}
 .world-tools{left:16px;right:16px;top:114px;gap:6px;justify-content:flex-start;flex-wrap:wrap}.world-tools button{font-size:11px;padding:8px 12px;min-height:38px}
 .world-dialogue{left:12px;bottom:18px;width:calc(100% - 24px);padding:18px 19px;border-radius:5px}.world-dialogue>p{font-size:18px;line-height:1.65;margin:12px 0;min-height:0}.world-dialogue>small{font-size:11px}.world-speaker{font-size:12px}.world-actions{margin-top:15px;gap:8px}.world-actions button{font-size:12px;padding:9px 12px}.world-actions .primary{margin-left:auto;max-width:75%}
 .world-drawer{padding:18px;width:96vw;max-width:96vw;max-height:92dvh}.drawer-heading{top:-18px}.drawer-heading h2{font-size:19px}
}
@media(max-height:680px) and (min-width:701px){.world-stage{min-height:640px}.world-heading{top:125px}.world-heading h1{font-size:40px}.world-dialogue{bottom:20px;padding:18px 24px}}
@media(prefers-reduced-motion:reduce){.world-stage *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
body{background:#e2e0cf url('assets/hero-ink.png') 65% center/cover fixed no-repeat;min-height:100svh}body:before{content:"";position:fixed;inset:0;background:#eef0de25;z-index:-1;pointer-events:none}.site-header{position:absolute;top:0;left:0;right:0;z-index:30;max-width:none;height:90px;padding:16px 4vw;background:#fcf8eced;border-bottom:1px solid #a8a88a60}.site-header .brand{font-size:24px}.site-header nav{gap:5px}.site-header nav button{font-size:13px}#app{max-width:none;padding:125px 5vw 50px;min-height:100svh}#app:has(>.world-stage){padding:0}.world-landscape{background-image:url('assets/hero-ink.png');background-position:65% center}.world-shade{background:linear-gradient(180deg,#183b2510,transparent 50%,#16392830)}.world-tools{top:110px}.world-heading{top:150px;max-width:54%}.world-heading h1{font-size:clamp(36px,4.2vw,62px)}.world-dialogue{width:min(590px,52vw)}.world-drawer .world{margin:0}.world-drawer .world>.section-heading{display:none}.world-drawer .realm-panel{grid-template-columns:200px 1fr}.world-drawer .realm-panel .scene{min-height:240px}.world-drawer .journey-progress{margin-top:0}footer{background:#faf7ecef}.page-title{background:#fff9ebed;padding:25px;border-radius:8px}.role-grid,.journal-grid,.search-bar,.dictionary-grid,.section-heading,.pagination,.mentor{max-width:1150px;margin-left:auto;margin-right:auto}.search-bar{background:#fff9ebee;padding:20px}.panel,.story-paper,.word-paper{background:#fffcf2f0;backdrop-filter:blur(8px);border-radius:8px;border-color:#c8b997}.panel{margin:20px auto;box-shadow:0 20px 70px #25423520}.story-layout{display:block;margin:0;max-width:none}.story-paper{width:min(760px,67%);margin:0;padding:35px}.story-aside{position:absolute;right:5vw;top:125px;max-width:25vw}.story-aside>.scene,.story-aside>.story-guide{display:none}.story-aside>button{background:#fff8e8e8}.lesson-layout{max-width:none;margin:0;grid-template-columns:minmax(0,760px) 1fr;gap:4vw}.lesson-guide{grid-column:2;grid-row:1;align-self:start;background:#fff9e6df;border-radius:8px;padding:20px}.lesson-guide .lesson-role{display:none}.lesson-layout .word-paper{grid-column:1;grid-row:1}.quiz,.assessment,.achievement{margin-left:0;max-width:820px}.achievement .fox{width:95px}.gloss-dialog{z-index:50}.ending{border-radius:6px}.world-dialogue .world-actions button{font-size:12px}
@media(max-width:1050px){.site-header{padding:15px 20px;gap:10px}.site-header .brand{font-size:21px}.site-header nav button{font-size:12px;padding:8px}.world-heading{max-width:62%}.story-paper{width:73%}.story-aside{right:20px}.world-dialogue{width:58vw}}
@media(max-width:700px){body{background-position:72% center}.site-header{height:100px;padding:12px 16px;gap:8px}.site-header .brand{font-size:21px}.site-header .brand small{font-size:7px}.site-header .seal{font-size:25px}.site-header #status{font-size:10px;padding:6px 8px}.site-header nav{width:100%;padding-top:4px;gap:2px;order:3}.site-header nav button{font-size:12px;padding:6px 9px}.world-stage{min-height:800px}.world-landscape{background-position:76% center}.world-heading{top:172px;max-width:none}.world-heading h1{font-size:30px}.world-tools{top:115px}.world-dialogue{width:calc(100% - 24px);bottom:18px}.world-dialogue>p{font-size:18px}.world-heading>p:last-child{font-size:11px}#app{padding:120px 14px 35px}.world-drawer .realm-panel{grid-template-columns:100px 1fr}.world-drawer .realm-panel .scene{min-height:180px}.world-drawer .realm-panel>div:last-child{padding:14px}.world-drawer .level-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}.world-drawer .chapter{gap:9px}.world-drawer .chapter strong{font-size:16px}.world-drawer .chapter-state{max-width:55px}.story-paper{width:100%;padding:23px 18px;margin-top:100px}.story-aside{right:16px;top:125px;max-width:none}.story-aside>button{font-size:12px}.lesson-layout{display:flex;flex-direction:column;gap:14px}.lesson-guide{width:100%;display:block;text-align:left;padding:13px 17px;background:#fffae9e8}.lesson-guide>h2{display:none}.lesson-guide>small{display:inline-block;margin-right:10px}.lesson-guide>button{font-size:11px;padding:5px 9px}.lesson-layout .word-paper{width:100%;padding:22px 18px}.quiz,.assessment,.achievement{margin:0 auto}.world-dialogue .world-actions button{font-size:11px}.world-dialogue .world-actions .primary{max-width:65%}.role-grid .role-card{background:#fff9eff5}.page-title{margin:8px auto 20px}.dictionary-grid{grid-template-columns:1fr 1fr}.chapter-mission .actions{gap:8px}}

.world-tools{width:auto;border:0;padding:0;order:initial}
@media(max-width:700px){.world-landscape{background-size:auto 145%;background-position:76% bottom}.world-shade{background:linear-gradient(180deg,#fff6e94d,transparent 50%,#17352420)}}

/* Chapter artwork follows the selected story into reading and practice. */
body{background-image:var(--chapter-scene,url('assets/hero-ink.png'));background-position:65% center}
.world-landscape{background-image:var(--chapter-scene,url('assets/hero-ink.png'));background-size:cover;background-position:65% center}
.world-shade{background:linear-gradient(90deg,#faf2ddab,transparent 65%),linear-gradient(180deg,#fff5e333,transparent 55%,#132f3233)}
.world-heading{max-width:56%;top:165px}
.world-heading h1{font-size:clamp(32px,4vw,58px)}
.world-dialogue{background:#193d34ed;width:min(590px,50vw)}
.world-drawer .drawer-heading{position:static;margin:0 0 20px;padding:0 0 14px;background:#faf7eb}
.world-drawer .journey-progress{color:#284436;position:static}
.realm-description{padding:0 4px;overflow-wrap:anywhere}
.realm-description .actions{margin:12px 0}
.world-drawer .chapter{min-width:0;width:100%;overflow-wrap:anywhere}
.world-drawer .chapter>span:nth-child(2){min-width:0}
@media(max-width:700px){
 body,.world-landscape{background-position:67% center;background-size:cover}
 .world-stage{min-height:830px}
 .world-heading{top:170px;max-width:none}
 .world-heading h1{font-size:29px}
 .world-dialogue{width:calc(100% - 24px);bottom:18px;padding:16px 18px}
 .world-dialogue>p{font-size:17px;line-height:1.6}
 .world-dialogue>small{font-size:11px}
 .world-drawer .level-tabs{gap:5px}
 .world-drawer .level-tabs button{min-width:0;padding:10px 2px}
 .world-drawer .level-tabs small{display:none}
 .world-drawer .chapter{padding:14px 10px;align-items:flex-start}
 .world-drawer .chapter-state{flex:0 0 48px}
 .world-drawer .chapter-number{font-size:24px}
 .realm-description .actions button{font-size:12px;padding:9px}
}

img.world-landscape{width:100%;height:100%;object-fit:cover;object-position:65% center;background:none}
@media(max-width:700px){img.world-landscape{object-position:67% center}}
