:root{--paper:#f6f3e9;--panel:#fffdf6;--ink:#253e34;--muted:#607064;--green:#315846;--green-dark:#244535;--sage:#e3e9d9;--line:#daddcc;--clay:#a9573c;--orange:#cd7955;--soft:#f0e8d7;--focus:#965234;--shadow:0 12px 36px #35472c12;font-family:'Vila Sans',Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}button{color:inherit}a{color:var(--green)}button:focus-visible,a:focus-visible,textarea:focus-visible,input:focus-visible{outline:3px solid var(--focus);outline-offset:5px}button:disabled{opacity:.52}button:disabled:focus{outline:none}.skip-link{position:absolute;left:20px;top:-80px;background:var(--green);color:white;padding:15px;z-index:20}.skip-link:focus{top:15px}.topbar{height:96px;padding:0 4.2%;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.wordmark{display:flex;align-items:center;gap:12px;text-decoration:none;font-family:'Vila Serif',Georgia,serif;font-size:24px;line-height:1.12;letter-spacing:-.7px}.brand-symbol{font-size:45px;color:var(--green);line-height:1}.wordmark small{display:block;font:9px 'Vila Sans',Arial,sans-serif;letter-spacing:2.1px;margin-top:7px;color:var(--muted)}.chapter-pill{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:12px}.live-dot{width:7px;height:7px;background:#617c49;border-radius:50%}.divider{color:#b7bdab;margin:0 5px}.header-actions{display:flex;align-items:center;gap:20px}.xp-pill{font-size:12px;letter-spacing:.5px}.xp-pill>span{color:var(--clay);font-size:22px;vertical-align:middle;margin-right:6px}.xp-pill b{font-size:17px}.icon-button{border:1px solid var(--line);background:transparent;width:37px;height:37px;border-radius:50%;font-size:18px;display:inline-flex;align-items:center;justify-content:center}.icon-button:hover{background:var(--sage)}main{max-width:1600px;margin:auto;padding:36px 4.2% 0}.chapter-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:29px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.7px;margin:0;color:var(--muted)}.eyebrow span{padding:0 7px;color:var(--clay)}h1{font-family:'Vila Serif',Georgia,serif;font-weight:400;letter-spacing:-1.3px;font-size:38px;line-height:1.16;margin:10px 0}h1>span{color:var(--clay)}.chapter-heading p:last-child{margin:0;font-size:14px;color:var(--muted);line-height:1.6}.pace-note{font-size:13px;line-height:1.6;color:var(--muted);padding-right:5px}.pace-note>span{float:left;font-size:29px;color:#aa8350;margin-right:13px;line-height:1.5}.pace-note small{font-size:11px}.game-layout{display:grid;grid-template-columns:296px minmax(0,1fr);gap:25px;align-items:stretch}.journal{padding:25px 20px 19px;background:var(--panel);border:1px solid var(--line);border-radius:14px;display:flex;flex-direction:column}.journal-title{display:flex;justify-content:space-between;align-items:center}.journal-title>span:last-child{font-size:24px;color:#778565}.journal .eyebrow{font-size:9px;letter-spacing:1.1px}.progress-label{font-size:11px;display:flex;justify-content:space-between;gap:10px;margin-top:20px}.progress-label b{font-weight:500}.progress-label>span{color:var(--muted)}progress{display:block;width:100%;height:5px;border:0;border-radius:10px;overflow:hidden;margin:11px 0 26px;background:var(--sage);accent-color:var(--green)}progress::-webkit-progress-bar{background:var(--sage);border-radius:10px}progress::-webkit-progress-value{background:var(--green);border-radius:10px;transition:width .4s}.mission-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.mission{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:transparent;border:1px solid transparent;border-radius:9px;padding:15px 7px}.mission.active{background:#eaf0e1;border-color:#cedbbf}.mission:not(:disabled):hover{background:var(--sage)}.mission-number{font-size:12px;width:27px;height:27px;flex:0 0 27px;border:1px solid #d1d8c8;border-radius:50%;display:grid;place-items:center}.active .mission-number,.done .mission-number{background:var(--green);color:white;border-color:var(--green)}.mission b{font-size:12px;display:block;font-weight:600;line-height:1.4}.mission small{font-size:10px;display:block;margin-top:6px;color:var(--muted)}.mission-status{margin-left:auto;font-size:16px}.side-quest{border-top:1px dashed var(--line);margin-top:25px;padding-top:25px}.side-quest button{display:flex;align-items:center;gap:10px;width:100%;border:0;background:none;text-align:left;padding:18px 0}.quest-icon{font-size:24px;width:30px;height:34px;background:var(--soft);border-radius:9px;text-align:center;color:var(--clay)}.side-quest b,.notebook-button b{display:block;font-size:12px;font-weight:600}.side-quest small,.notebook-button small{font-size:10px;color:var(--muted);display:block;margin-top:5px}.side-quest button>span:last-child{margin-left:auto}.notebook-button{display:flex;align-items:center;gap:10px;text-align:left;background:#f3efdf;border:1px solid #e5dfc9;border-radius:9px;padding:16px 10px;width:100%;margin-top:auto}.notebook-button:hover{background:#eae3cf}.notebook-button>span:last-child{margin-left:auto}.book-icon{font-size:27px;color:#87714c;line-height:1}.journal-foot{color:var(--muted);font-size:10px;text-align:center;margin:20px 0 0}.journal-foot>span{color:#889971;margin-right:4px}.world{position:relative;background:#e9eddf;border:1px solid #d6ddca;border-radius:14px;min-width:0;overflow:hidden;display:flex;flex-direction:column;isolation:isolate}.world-top{display:flex;align-items:center;justify-content:space-between;position:absolute;top:21px;left:24px;right:24px;z-index:2}.location-tag{font-size:9px;font-weight:700;letter-spacing:1.5px;display:flex;gap:9px;align-items:center}.location-tag>span{font-size:18px}.map-help{background:#f8f7eece;border:1px solid #d4ddc6;border-radius:18px;padding:8px 12px;font-size:10px;color:#55694e}.map-help:hover{background:var(--panel)}.map-help>span{margin-left:6px}.scene{position:relative;flex:1;min-height:415px;display:flex;align-items:center}.village-art{display:block;width:100%;height:auto;min-height:415px;object-fit:cover}.hotspot{position:absolute;border:0;background:transparent;transform:translate(-50%,-50%);display:flex;align-items:center;flex-direction:column;gap:6px;padding:6px;filter:drop-shadow(0 3px 6px #2c442322);z-index:3}.hotspot-mark{width:35px;height:35px;background:var(--panel);border:3px solid var(--green);border-radius:50%;font-size:13px;font-weight:700;display:grid;place-items:center;transition:transform .2s}.hotspot-label{background:var(--panel);border:1px solid #d6ddca;white-space:nowrap;border-radius:6px;padding:7px 11px;font-size:10px;font-weight:600;transition:transform .2s}.hotspot-label>span{margin-left:8px;color:var(--clay)}.hotspot:hover .hotspot-mark{transform:translateY(-4px);background:var(--green);color:white}.hotspot:hover .hotspot-label{transform:translateY(-2px)}.restaurant{left:49%;top:47%}.garden{left:22%;top:71%}.library{left:80%;top:44%}.garden .hotspot-mark{border-color:#9b7550}.library .hotspot-mark{border-color:#698276}.hotspot.complete .hotspot-mark{background:var(--green);color:white}.hotspot.locked .hotspot-mark{border-color:#a5af9b;color:#768170}.scene-note{position:absolute;bottom:14px;left:24px;color:#5c7254;font-family:'Vila Serif',Georgia,serif;font-size:13px;font-style:italic}.traveler{position:absolute;left:60%;top:70%;width:27px;height:43px;z-index:2;transition:left .8s,top .8s}.traveler-head{position:absolute;top:0;left:8px;background:#e1ae7b;border:3px solid #544238;border-radius:50%;width:15px;height:17px;z-index:2}.traveler-body{position:absolute;top:13px;left:7px;width:18px;height:23px;border-radius:8px 8px 5px 5px;background:#ae6447;border-bottom:6px solid #4b6153;transform:rotate(-5deg);z-index:1}.traveler-shadow{position:absolute;bottom:2px;left:0;width:30px;height:8px;background:#3d592e30;border-radius:50%}.guide-card{position:relative;z-index:3;border-top:1px solid #d5ddc8;background:#fdfcf5;display:flex;align-items:center;gap:14px;padding:22px 23px;min-height:125px}.guide-card>img{width:62px;height:62px;flex:0 0 62px;border-radius:50%;background:var(--sage)}.guide-copy{flex:1}.character-name{font-size:10px;font-weight:700;letter-spacing:1.3px}.character-name>span{font-size:8px;font-weight:500;letter-spacing:.9px;color:var(--muted);margin-left:9px}.guide-copy p{font-size:13px;line-height:1.65;margin:7px 0 0;max-width:440px}.primary{background:var(--green);color:#fffdf6;border:1px solid var(--green);border-radius:7px;min-height:45px;padding:13px 18px;font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:19px;text-decoration:none;transition:background .2s,transform .2s;white-space:nowrap}.primary:hover{background:var(--green-dark);transform:translateY(-1px)}.primary>span{font-size:18px}.secondary{border:1px solid #c7d0be;color:var(--green);border-radius:7px;background:transparent;min-height:44px;padding:11px 17px;font-size:13px;font-weight:600}.secondary:hover{background:var(--sage)}.text-button{border:0;background:transparent;text-decoration:underline;text-underline-offset:4px;font-size:13px;padding:10px 0;color:var(--muted)}.game-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;color:var(--muted);font-size:10px;margin:24px 0 22px}.game-footer>span:first-child{letter-spacing:1.4px;font-size:9px;font-weight:700;display:flex;align-items:center;gap:8px}.academy-symbol{font-family:Georgia,serif;font-size:26px}.game-footer>p{font-family:'Vila Serif',Georgia,serif;font-size:13px;font-style:italic;margin:0}.game-footer>span:last-child>span{margin-left:5px}dialog{width:min(760px,calc(100% - 32px));max-height:calc(100dvh - 48px);padding:25px 34px 31px;border:1px solid #cbd2bc;border-radius:18px;background:var(--panel);color:var(--ink);box-shadow:0 28px 120px #132a2550;overflow:auto}dialog::backdrop{background:#172e2566;backdrop-filter:blur(5px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.dialog-top .icon-button{flex:0 0 35px}.dialog-character{display:flex;align-items:center;gap:15px;margin-bottom:16px}.dialog-character>img{width:66px;height:66px;border-radius:50%}.dialog-character>div>p{font-size:11px;color:var(--muted);margin:5px 0 0}.dialog-character b{font-family:'Vila Serif',Georgia,serif;font-size:21px;font-weight:400}h2{font-family:'Vila Serif',Georgia,serif;font-weight:400;font-size:32px;letter-spacing:-.7px;line-height:1.2;margin:8px 0 14px}h3{font-family:'Vila Serif',Georgia,serif;font-weight:400;font-size:24px;margin:0 0 12px}.lede{font-size:17px;line-height:1.7;margin:0 0 22px}.lede strong{font-weight:600}.simulation-label{display:inline-block;font-size:10px;color:var(--muted);background:#eff0e6;border-radius:5px;padding:5px 9px;margin:0 0 15px}.speech{border-left:3px solid var(--orange);background:#f4ecde;padding:17px 20px;line-height:1.7;font-size:17px;border-radius:0 8px 8px 0;margin:18px 0}.speech p{margin:0}.speech small{display:block;margin-bottom:5px;color:var(--muted);font-size:11px}.dialog-actions{display:flex;align-items:center;gap:13px;justify-content:flex-end;flex-wrap:wrap;margin-top:23px}.choice-list{display:grid;gap:10px;margin-top:18px}.answer{display:flex;align-items:center;gap:12px;text-align:left;background:transparent;border:1px solid #cdd6c3;border-radius:9px;padding:15px 17px;line-height:1.6;font-size:15px;width:100%}.answer:hover{background:var(--sage)}.answer>span:first-child{font-size:13px;background:#e7ecdf;flex:0 0 25px;height:25px;border-radius:50%;display:grid;place-items:center}.feedback{background:#eef2e8;border:1px solid #c6d5b7;border-radius:9px;padding:16px 18px;margin-top:18px;line-height:1.7;font-size:15px}.feedback.wrong{background:#f7eee1;border-color:#dfc29e}.feedback p{margin:0}.feedback ul{margin:7px 0 0;padding-left:21px}.feedback b{display:block;margin-bottom:5px}.reward{font-size:12px;color:var(--clay);font-weight:700;letter-spacing:.4px;margin-bottom:12px}.plate-scene{display:flex;align-items:center;justify-content:center;gap:25px;background:#e9eddf;border-radius:10px;min-height:133px;margin:17px 0;padding:20px}.plate{width:95px;height:95px;border:8px solid #fffdf6;border-radius:50%;background:#e2d6ba;box-shadow:0 6px 0 #62765126,inset 0 0 0 3px #d5cbb6;position:relative;display:grid;place-items:center;font-size:43px}.plate-description{max-width:350px;font-size:15px;line-height:1.65}.plate-description b{display:block;margin-bottom:4px}.plate-description p{margin:0}.ingredient-list{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.ingredient-list span{background:#eef1e5;border:1px solid #d8dfcb;padding:6px 11px;border-radius:6px;font-size:12px}.builder{display:grid;gap:18px;margin:23px 0}fieldset{padding:0;border:0;min-width:0;margin:0}legend{font-size:14px;font-weight:700;padding:0;margin-bottom:10px}legend small{font-weight:400;color:var(--muted);margin-left:7px;font-size:12px}.cards{display:grid;grid-template-columns:1fr 1fr;gap:9px}.choice-card{display:block;border:1px solid #d5d9c9;border-radius:8px;padding:14px;cursor:pointer;position:relative;background:#faf9f1;transition:background .15s}.choice-card:has(input:checked){background:#e5ecd9;border-color:#658057;box-shadow:0 0 0 1px #658057}.choice-card:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:3px}.choice-card input{position:absolute;top:16px;right:13px;accent-color:var(--green);width:15px;height:15px;margin:0}.choice-card b{display:block;padding-right:22px;font-size:14px;line-height:1.5}.choice-card small{font-size:12px;color:var(--muted);line-height:1.6;display:block;margin-top:6px}.prompt-preview{background:#f0edde;border:1px solid #e2dcc5;border-radius:9px;padding:17px 20px}.prompt-preview .eyebrow{margin-bottom:9px;font-size:9px}.prompt-preview p{font-size:15px;line-height:1.7;margin:0;white-space:pre-wrap}.compare{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.compare>div{padding:17px;border-radius:10px;background:#f1eee3;font-size:14px;line-height:1.7}.compare>div:last-child{background:#e7eedb}.compare .eyebrow{margin-bottom:8px;font-size:9px}.compare p{margin:0}.claim-list{display:grid;gap:9px}.claim-list .answer{font-size:15px}.claim-list .answer:hover{border-color:var(--clay)}.notebook-form label{display:block;font-size:14px;font-weight:600;margin:21px 0 9px}.notebook-form small{font-weight:400;color:var(--muted);display:block;font-size:12px;line-height:1.6;margin-top:5px}textarea{display:block;width:100%;min-height:128px;border:1px solid #cbd3bd;background:#fffef8;border-radius:8px;resize:vertical;padding:14px 16px;color:var(--ink);font-size:16px;line-height:1.65}.notebook-form textarea+small{margin-top:7px}.self-check{font-size:13px;background:#eff2e7;border-radius:8px;padding:15px;line-height:1.7;margin-top:16px}.self-check p{margin:0}.self-check ul{padding-left:20px;margin:5px 0}.badge{width:85px;height:85px;display:grid;place-items:center;background:#e9eedb;color:var(--green);border:1px solid #c6d5b1;border-radius:50%;font-size:42px;margin:5px auto 19px}.finish{text-align:center}.finish .lede{max-width:535px;margin:0 auto 20px}.learning-list{display:grid;gap:12px;margin:22px 0;text-align:left}.learning-list>div{display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:0 0 12px;font-size:15px;line-height:1.5}.learning-list>div>span{color:#537845;font-size:20px}.finish .dialog-actions{justify-content:center}.help-copy{font-size:16px;line-height:1.8}.help-copy p{margin:0 0 18px}.help-copy details{border-top:1px solid var(--line);padding:14px 0}.help-copy summary{cursor:pointer;font-weight:600}.help-copy details p{font-size:14px;margin:12px 0 0}.danger{color:#994c39;border-color:#d6baaa}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:var(--green);color:white;border:1px solid #57705a;border-radius:9px;padding:14px 22px;box-shadow:var(--shadow);font-size:14px;z-index:15;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:calc(100% - 32px);text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}.noscript{background:#fff0dc;border:1px solid #a67549;padding:20px;margin:20px 0;font-size:17px}.hidden{display:none!important}.small-note{font-size:12px;color:var(--muted);line-height:1.7;margin-top:18px}.locked-note{background:var(--soft);padding:18px 20px;border-radius:8px;font-size:16px;line-height:1.7}.lesson-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid #cbd8bf;border-radius:20px;padding:5px 11px;font-size:11px;color:#4e6846;margin:4px}.motion-muted *, .motion-muted *::before,.motion-muted *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
@media(min-width:1500px){.scene{min-height:510px}.village-art{min-height:510px}.journal{padding:29px 24px}.mission b{font-size:13px}.game-layout{grid-template-columns:315px minmax(0,1fr)}}
@media(max-width:1190px){main{padding:28px 3% 0}.topbar{padding:0 3%}.game-layout{grid-template-columns:255px minmax(0,1fr);gap:17px}.journal{padding:21px 14px}.guide-card{padding:18px;gap:12px;flex-wrap:wrap}.guide-copy{min-width:220px}.guide-card .primary{margin-left:74px}.guide-copy p{font-size:13px}.character-name>span{display:none}.scene{min-height:350px}.village-art{min-height:350px}.hotspot-label{font-size:9px;padding:6px 8px}.chapter-heading h1{font-size:33px}.scene-note{font-size:11px;bottom:10px}}
@media(max-width:850px){.topbar{height:79px}.chapter-pill{display:none}.chapter-heading{margin-bottom:22px}.pace-note{display:none}.game-layout{grid-template-columns:1fr}.world{grid-row:1}.journal{padding:22px}.mission-list{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.mission{height:100%;align-items:flex-start;gap:8px;padding:12px 7px}.mission-status{display:none}.mission-number{width:23px;height:23px;flex-basis:23px}.side-quest{margin-top:20px;padding-top:18px}.notebook-button{max-width:none}.scene{min-height:360px}.village-art{min-height:360px}.guide-card{flex-wrap:nowrap}.guide-copy{min-width:0}.guide-card .primary{margin-left:0}.game-footer>p{display:none}.progress-label{margin-top:13px}progress{margin-bottom:18px}.journal-foot{margin-top:15px}}
@media(max-width:560px){.topbar{padding:0 20px;gap:10px}.wordmark{font-size:20px;gap:9px}.brand-symbol{font-size:36px}.wordmark small{font-size:7px;letter-spacing:1.8px}.header-actions{gap:10px}.xp-pill{font-size:9px}.xp-pill b{font-size:14px}.xp-pill>span{font-size:18px;margin-right:2px}.icon-button{width:33px;height:33px}.topbar .icon-button{width:30px;height:30px;font-size:16px}main{padding:26px 16px 0}.chapter-heading{margin-bottom:22px}.chapter-heading h1{font-size:29px;max-width:340px;letter-spacing:-.8px}.chapter-heading .eyebrow{font-size:9px;letter-spacing:1.2px}.chapter-heading p:last-child{font-size:12px;max-width:280px}.world-top{top:14px;left:14px;right:14px}.location-tag{font-size:8px;letter-spacing:1px}.map-help{font-size:9px;padding:7px}.map-help>span{display:none}.scene{min-height:323px;overflow:hidden}.village-art{min-height:323px;width:100%;object-fit:cover;object-position:center}.hotspot-label{white-space:normal;max-width:108px;line-height:1.3;padding:6px 7px;font-size:9px}.hotspot-label>span{display:none}.hotspot-mark{width:29px;height:29px;font-size:11px;border-width:2px}.restaurant{left:48%;top:45%}.garden{left:20%;top:72%}.library{left:82%;top:43%}.scene-note{font-size:10px;left:13px;bottom:11px;max-width:210px}.guide-card{padding:17px 16px;gap:11px;display:grid;grid-template-columns:45px 1fr}.guide-card>img{width:45px;height:45px;align-self:start}.guide-copy p{font-size:13px;line-height:1.7}.guide-card .primary{grid-column:1/-1;justify-content:space-between;width:100%;margin-top:2px;padding:12px 16px;min-height:46px}.character-name{font-size:9px}.journal{padding:20px 15px}.mission-list{grid-template-columns:1fr}.mission{align-items:center;padding:13px 10px}.mission b{font-size:13px}.mission small{font-size:11px;margin-top:3px}.mission-status{display:block}.mission-number{width:29px;height:29px;flex-basis:29px;margin-right:3px}.mission-list{gap:5px}.side-quest button{padding-top:16px;padding-bottom:18px}.side-quest b,.notebook-button b{font-size:13px}.side-quest small,.notebook-button small{font-size:11px}.notebook-button{padding:16px 12px}.game-footer{flex-wrap:wrap;justify-content:center;font-size:10px;margin:20px 0}.game-footer>span:first-child{font-size:8px}.game-footer>span:last-child{width:100%;text-align:center}.journal-foot{font-size:11px}dialog{width:calc(100% - 20px);padding:18px 20px 25px;max-height:calc(100dvh - 20px);border-radius:13px}h2{font-size:29px}.lede{font-size:16px;line-height:1.7}.dialog-top{margin-bottom:15px}.dialog-top .eyebrow{font-size:9px;letter-spacing:1.2px}.dialog-character img{width:54px;height:54px}.speech{font-size:16px;padding:15px}.cards{grid-template-columns:1fr}.choice-card{padding:15px}.choice-card small{font-size:13px}.compare{grid-template-columns:1fr}.dialog-actions{justify-content:stretch;gap:10px}.dialog-actions>*{flex:1;white-space:normal;text-align:center}.answer{font-size:15px;padding:14px}.plate-scene{gap:13px;padding:17px 13px}.plate{width:70px;height:70px;flex:0 0 70px;font-size:33px;border-width:6px}.plate-description{font-size:14px}.feedback{font-size:15px;padding:15px}.primary{font-size:13px;min-height:47px}.help-copy{font-size:15px}.scene-note{background:#e9eddfb5;border-radius:4px;padding:3px 5px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.speech small{color:#50604f}

/* Instructional reading stays comfortable at every viewport size. */
.game-layout { align-items: start; }
.chapter-heading p:last-child,
.guide-copy p,
.lede,
.speech,
.answer,
.claim-list .answer,
.feedback,
.plate-description,
.ingredient-list span,
legend,
legend small,
.choice-card b,
.choice-card small,
.prompt-preview p,
.compare>div,
.notebook-form label,
.notebook-form small,
textarea,
.self-check,
.learning-list>div,
.help-copy,
.help-copy details p,
.small-note,
.locked-note {
  font-size: 17px;
  line-height: 1.65;
}
.mission b,
.side-quest b,
.notebook-button b,
.primary,
.secondary,
.text-button {
  font-size: 15px;
}
.mission small,
.side-quest small,
.notebook-button small {
  font-size: 13px;
  line-height: 1.5;
}
.guide-card { flex-wrap: wrap; }
.guide-copy { min-width: min(240px, 100%); }
.guide-card .primary { margin-left: 76px; }
@media (max-width: 560px) {
  .guide-copy { min-width: 0; }
  .guide-card .primary { margin-left: 0; }
}

[hidden] { display: none !important; }
.narration-panel { background: #eef2e5; border: 1px solid #ccd7bd; border-radius: 12px; padding: 16px 18px; margin: 0 0 24px; }
.narration-top { display: flex; gap: 11px; align-items: center; }
.audio-emblem { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: #dfe8d3; color: var(--green); font-size: 24px; flex: 0 0 35px; }
.narration-top strong { display: block; font-size: 15px; }
#audio-status { display: block; font-size: 13px; line-height: 1.5; color: #50604f; margin-top: 3px; }
.audio-transcript { font-size: 17px; line-height: 1.65; margin: 13px 0; }
.audio-transcript-details summary { cursor: pointer; min-height: 44px; padding: 6px 0; font-size: 15px; line-height: 2; color: var(--green); }
.audio-transcript-details p { margin-top: 10px; }
.audio-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.audio-controls .secondary { background: var(--panel); min-width: 150px; }
.audio-controls .text-button { padding: 12px 0; min-height: 44px; color: var(--green); }
.audio-time { margin-left: auto; font-size: 13px; color: #50604f; font-variant-numeric: tabular-nums; }
#audio-progress { height: 4px; margin: 11px 0; }
.audio-settings summary, .dialog-glossary summary { cursor: pointer; min-height: 40px; padding: 10px 0; font-size: 15px; color: var(--green); }
.audio-settings>div { display: flex; flex-wrap: wrap; gap: 15px 25px; padding: 7px 0; }
.audio-settings label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; flex: 1; min-width: 180px; }
.audio-settings input { accent-color: var(--green); min-height: 30px; width: 100%; }
.audio-settings select { border: 1px solid #b7c4aa; background: var(--panel); border-radius: 6px; padding: 9px; color: var(--ink); font: inherit; min-height: 44px; max-width: 100%; }
select:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.audio-request { display: inline-flex; gap: 7px; align-items: center; color: var(--green); min-height: 44px; text-decoration-thickness: 1px; }
.audio-request::before { content: '♪'; text-decoration: none; font-size: 20px; }
.dialog-glossary { border-top: 1px dashed #cbd4bd; margin-top: 23px; padding-top: 7px; }
.dialog-glossary dl { margin: 8px 0; font-size: 17px; line-height: 1.65; }
.dialog-glossary dt { font-weight: 700; margin-top: 12px; }
.dialog-glossary dd { margin: 2px 0 0; }
.remaining-hints { margin-top: 10px; }
.remaining-hints summary { cursor: pointer; padding: 8px 0; }
/* Investigation, authored experiments and invitation repair. */
.clue-board, .experiment-board, .invitation-board {
  min-width: 0;
  margin: 22px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  overflow-wrap: anywhere;
}
.clue-grid, .experiment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.clue-question {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  padding: 15px;
  border: 1px solid #c7d0be;
  border-radius: 9px;
  background: var(--panel);
  text-align: left;
  white-space: normal;
}
.clue-question b, .clue-answer p, .clue-summary,
.experiment-board header p, .experiment-dimension p,
#experiment-comparison, .experiment-history,
.invitation-part, .repair-card, .mural-success p {
  font-size: 17px;
  line-height: 1.65;
}
.clue-question small { margin-top: auto; font-size: 13px; line-height: 1.5; color: #50604f; }
.clue-icon, .experiment-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 10px;
  background: var(--sage);
  font-size: 27px;
}
.clue-question:hover, .invitation-part:hover { background: var(--sage); border-color: #658057; }
.clue-question[aria-pressed="true"], .invitation-part[aria-pressed="true"] {
  background: #e5ecd9;
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}
.clue-answer { margin-top: 18px; padding: 18px; border-left: 3px solid var(--orange); background: var(--panel); border-radius: 0 9px 9px 0; }
.clue-answer h3 { font-size: 23px; margin: 0 0 8px; }
.clue-answer p { margin: 0; }
.clue-answer article + article { border-top: 1px dashed #c7d0be; margin-top: 18px; padding-top: 18px; }
.clue-answer .audio-request { margin-top: 8px; white-space: normal; text-align: left; }
.clue-summary { display: grid; gap: 6px; padding: 0; margin: 18px 0 8px; list-style: none; }
.clue-board > .text-button { min-height: 44px; color: var(--green); text-align: left; }
.experiment-board { background: #f0e8d7; border-color: #d8cdb5; }
.experiment-board header p { margin: 0 0 18px; }
.experiment-dimension { min-width: 0; padding: 16px; border: 1px solid #d8cdb5; border-radius: 10px; background: var(--panel); }
.experiment-dimension h4 { font-size: 17px; line-height: 1.5; margin: 12px 0 8px; }
.experiment-dimension p { margin: 0; }
.experiment-dimension[data-changed="true"] { border-color: var(--clay); box-shadow: inset 0 3px 0 var(--clay); }
#experiment-comparison { margin: 16px 0 0; }
.experiment-history { margin-top: 16px; padding-top: 8px; border-top: 1px dashed #b5aa91; }
.experiment-history summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-weight: 600; color: var(--green); }
.experiment-history p { margin: 10px 0 0; }
.invitation-board { position: relative; padding-top: 36px; background: var(--soft); border: 2px solid #c6b48f; }
.notice-pin { position: absolute; top: 12px; left: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; background: var(--clay); box-shadow: 0 2px 0 #7952393d; pointer-events: none; }
.invitation-parts { display: grid; gap: 10px; }
.invitation-part { display: block; width: 100%; min-height: 44px; padding: 16px 18px; border: 1px solid #c7d0be; border-radius: 8px; background: var(--panel); text-align: left; white-space: normal; }
.repair-options { display: grid; gap: 10px; margin-top: 22px; }
.repair-options legend { margin-bottom: 14px; }
.repair-card { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 15px; border: 1px solid #c7d0be; border-radius: 9px; background: var(--panel); cursor: pointer; overflow-wrap: anywhere; }
.repair-card input { width: 19px; height: 19px; flex: 0 0 19px; margin: 5px 0 0; accent-color: var(--green); }
.repair-card b { min-width: 0; font-weight: 600; }
.repair-card:has(input:checked) { background: #e5ecd9; border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.repair-card:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; }
.mural-success { padding: 20px; margin: 20px 0; border: 1px solid #c6d5b7; border-radius: 10px; background: #eef2e8; overflow-wrap: anywhere; }
.mural-success small { display: block; font-size: 13px; line-height: 1.5; color: #50604f; margin-bottom: 8px; }
.mural-success b { display: block; font-family: 'Vila Serif', Georgia, serif; font-size: 24px; font-weight: 400; line-height: 1.3; }
.mural-success p { margin: 10px 0 0; }
.choice-card:has(input:checked) small,
.prompt-preview > .eyebrow,
#experiment-status,
.invitation-board > .eyebrow { color: #50604f; }
@media (max-width: 680px) {
  .clue-grid, .experiment-grid { grid-template-columns: minmax(0, 1fr); }
  .clue-board, .experiment-board, .invitation-board { padding: 15px; }
  .invitation-board { padding-top: 34px; }
  .clue-question { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; }
  .clue-icon { grid-row: 1 / 3; align-self: center; }
  .clue-question small { grid-column: 2; margin-top: 0; }
  .clue-answer { padding: 15px; }
  .invitation-part { padding: 14px; }
}
@media (max-width: 560px) {
  .narration-panel { padding: 14px; }
  .audio-controls { gap: 5px 13px; }
  .audio-controls .secondary { flex: 1 0 100%; }
  .audio-settings label { min-width: 0; flex-basis: 100%; }
}
