:root{--rose:#ba7078;--rose-light:#f6e9e5;--forest:#285b49;--gold:#b79844;--paper:#fffdf7}a{color:#376454}header a:last-child{font-size:12px}.site-head{max-width:1060px}.atelier{max-width:1020px;margin-top:24px}.atelier-hero{display:grid;grid-template-columns:1.5fr 1fr;align-items:center;gap:30px;padding:20px 0 36px}.atelier-hero h1{font-size:clamp(38px,5vw,60px);letter-spacing:-.025em;line-height:1.5}.hero-tags{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.hero-tags span{font-size:11px;padding:7px 13px;border:1px solid #d8dfd0;border-radius:24px}.himari-scene{height:330px;position:relative;border-radius:50% 50% 40% 40%;background:radial-gradient(ellipse at 50% 40%,#fffdf5,#eeeadb);display:flex;justify-content:center;align-items:center}.solo-sprite{display:block;flex-shrink:0;width:96px;height:104px;background-image:url('/index.php?route=/characters/himari.png');background-size:800% 1100%;background-repeat:no-repeat;background-position:0 0}.himari-scene .solo-sprite{width:230px;height:249px;filter:drop-shadow(0 10px 9px #99846922)}.scene-label{position:absolute;bottom:17px;font-size:11px;color:#7e7163}.orbit{position:absolute;font-size:36px;color:#c3a664}.orbit-a{top:30px;right:27px}.orbit-b{left:12px;bottom:80px;color:#c88d91}.two-games{display:grid;grid-template-columns:1fr 1fr;gap:22px}.portal{border-radius:26px;display:block;padding:26px;text-decoration:none;border:1px solid #dddcc9;transition:transform .2s,box-shadow .2s}.portal:hover{transform:translateY(-4px);box-shadow:0 10px 25px #273e3510}.garden-portal{background:#edf1e3;color:#355343}.star-portal{background:#ececf6;color:#4e517a;border-color:#dadbed}.portal-top{display:flex;justify-content:space-between;font-size:10px;letter-spacing:.06em}.portal-top b{font-weight:500}.portal h2{font-size:24px;line-height:1.5;margin:15px 0}.portal p{font-size:14px;line-height:1.9;color:inherit;opacity:.8}.portal strong{display:block;margin-top:24px;font-size:15px}.portal-stat{font-size:11px;margin-top:20px;min-height:22px;opacity:.8}.portal-art{height:88px;display:flex;gap:18px;align-items:center;justify-content:center;margin:22px 0 0}.garden-art span{font-size:60px;color:#bc7e80;position:relative;line-height:1;transform:rotate(-12deg)}.garden-art span:nth-child(2){color:#c1a257;font-size:72px;transform:translateY(-8px)}.garden-art span:last-child{color:#8eab7d;transform:rotate(12deg)}.stars-art{gap:11px;position:relative}.stars-art:before{content:'';position:absolute;width:180px;height:2px;background:#bbb9d7;transform:rotate(-10deg)}.stars-art span{font-size:35px;color:#9891bf;z-index:1;background:#ececf6}.stars-art span:nth-child(2n){transform:translateY(-20px);font-size:25px}.stars-art span:nth-child(3){color:#bda25d;font-size:48px}.notebook-strip{padding:32px;margin:32px 0;border-radius:24px;background:#fffdf7;border:1px solid #e3e2d5}.notebook-strip h2{margin:12px 0;font-size:24px}.notebook-strip p{font-size:14px}.notebook-strip a{font-size:14px;font-weight:750}.scope-note{font-size:12px}.scope-note p{font-size:12px}.garden-main{max-width:850px}.garden-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.garden-heading h1{font-size:48px}.map-himari{width:170px;height:184px}.garden-summary{border-radius:20px;padding:20px 22px;background:#ebefdf;border:1px solid #d8dfce;margin:15px 0}.garden-summary>span{font-size:24px;font-weight:750}.garden-summary progress{margin:12px 0 0}.garden-summary p{font-size:11px;margin-bottom:0}.map-toolbar{display:flex;gap:8px;margin-top:26px;border-bottom:1px solid #dedfd3}.tab{border-radius:12px 12px 0 0;background:transparent;color:#758174;flex:1;font-size:14px}.tab.active{background:#e4ebdc;color:#355a43;font-weight:750}.garden-main input[type=search]{width:100%;font:inherit;font-size:15px;border-radius:12px;padding:15px 17px;background:#fffdf7;border:1px solid #d5ddcc;color:#344c3b}.chapter{padding-top:28px}.chapter-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.chapter h2{font-size:18px;margin:5px 0 10px}.chapter small{margin:0}.chapter-bed{display:flex;gap:17px;justify-content:center;background:linear-gradient(transparent 76%,#e4e9d8 76%);height:77px;margin-bottom:10px;border-radius:12px}.flower{display:inline-block;width:43px;height:68px;position:relative;flex-shrink:0;opacity:.6}.flower:before{content:'';position:absolute;width:3px;height:31px;background:#a7ba91;bottom:0;left:20px}.flower:after{content:'';position:absolute;width:15px;height:8px;border-radius:10px 0 10px 0;background:#a7ba91;bottom:13px;left:22px;transform:rotate(-20deg)}.flower i{position:absolute;width:15px;height:22px;background:#cbd5bd;border-radius:50%;left:14px;top:4px;transform-origin:50% 95%;transform:rotate(calc(var(--n)*72deg))}.flower i:nth-child(1){--n:0}.flower i:nth-child(2){--n:1}.flower i:nth-child(3){--n:2}.flower i:nth-child(4){--n:3}.flower i:nth-child(5){--n:4}.flower b{position:absolute;background:#dedfc7;width:12px;height:12px;border-radius:50%;left:16px;top:18px}.flower.bloom{opacity:1}.flower.bloom i{background:#cd9694}.flower.bloom b{background:#e1c37d}.chapter:nth-child(2n) .bloom i{background:#a3b98c}.chapter:nth-child(3n) .bloom i{background:#baa4c3}.lesson-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #e3e4d9}.lesson-number{font-size:12px;color:#a2aa96;font-weight:750;width:23px}.lesson-row .lesson-name{flex:1;line-height:1.6;font-size:14px;font-weight:650}.lesson-row button{font-size:11px;padding:8px 12px;min-height:40px;color:#5b705e;background:#edf0e7}.lesson-row .bloom-dot{color:#bd7c82}.lesson-path{display:flex;gap:8px;margin:20px 0}.lesson-path span{flex:1;border-radius:20px;background:#e6e9dd;padding:8px;text-align:center;font-size:11px;color:#8d9786}.lesson-path .active{background:#315d49;color:#fff}.lesson-path .passed{background:#dce8cf;color:#4d7141}.lesson-buddy{display:flex;align-items:center;gap:15px;border-radius:20px;background:#f3eae1;padding:15px 20px;margin:20px 0}.lesson-buddy .solo-sprite{width:64px;height:69.33px}.lesson-buddy p{font-size:13px;margin:0;color:#866552}.lesson-card{background:var(--paper);border:1px solid #dfdfd2;border-radius:24px;padding:28px;margin:18px 0;box-shadow:0 7px 20px #53614705}.lesson-card h2{font-size:27px;line-height:1.55;margin:12px 0 22px}.lesson-card p{color:#506453;font-size:15px;line-height:1.95}.story-scene{font-size:24px;line-height:1.8;padding:20px 0 30px;color:#4c5b46}.knowledge-points{padding-left:24px}.knowledge-points li{padding:8px 0 12px 4px;font-size:15px;line-height:1.95;color:#3e5444}.mini-label{display:block;font-size:11px;font-weight:750;letter-spacing:.12em;color:#9b8261}.worked-example,.trap-note,.memory-note{border-radius:16px;padding:18px 20px;margin:16px 0}.worked-example{background:#edf1e5}.trap-note{background:#f7ecde}.memory-note{background:#f6e8e7;font-weight:750;text-align:center}.worked-example p,.trap-note p,.memory-note p{margin:9px 0 0;font-size:14px}.lesson-card details{text-align:left;font-size:12px}.lesson-card details small{text-align:left}.lesson-card details a{font-size:12px}.study-link{display:block;margin:18px 0;padding:14px;border-radius:14px;background:#f5e5df;text-decoration:none;color:#865c53!important;font-size:13px!important;line-height:1.8;font-weight:700}.button-link{display:block;text-align:center;text-decoration:none;padding:17px;border-radius:12px;line-height:1.7}.learn-feedback{padding:22px;border-radius:18px;background:#e5eddb}.learn-feedback.wrong{background:#f6e8d8}.learn-feedback h3{font-size:21px}.learn-feedback p{font-size:14px;line-height:1.9}.learn-feedback .flower{display:block;margin:5px auto 15px;transform:scale(1.2)}.done-flowers{display:flex;justify-content:center;gap:26px;margin:40px 0}.done-flowers .flower{transform:scale(1.3)}#garden-done{text-align:center}.no-results{padding:24px;background:#fffdf7;border-radius:16px;font-size:14px}.quest-lesson-note{font-size:12px}.result-links{margin-top:18px}.result-links a{display:block;margin:10px 0;font-size:13px}@media(max-width:640px){.atelier-hero{grid-template-columns:1fr;gap:15px;padding:0 0 20px}.atelier-hero h1{font-size:42px}.himari-scene{height:210px;max-width:300px;width:100%;margin:auto}.himari-scene .solo-sprite{width:156px;height:169px}.two-games{grid-template-columns:1fr}.portal{padding:24px}.portal-art{margin-top:13px;height:64px}.garden-art span{font-size:46px}.garden-art span:nth-child(2){font-size:55px}.portal h2{font-size:24px}.notebook-strip{padding:24px}.garden-heading h1{font-size:38px}.map-himari{width:110px;height:119px}.garden-heading p{font-size:13px}.lesson-card{padding:22px 20px}.lesson-card h2{font-size:23px}.lesson-card p,.knowledge-points li{font-size:14px}.story-scene{font-size:20px}.lesson-row{gap:8px}.lesson-row button{padding:8px 10px}.lesson-row .lesson-name{font-size:13px}.chapter h2{font-size:17px}.chapter-bed{gap:14px}.site-head{gap:8px}.brand{font-size:15px}.site-head a:last-child{font-size:11px}}@media(prefers-reduced-motion:reduce){.portal{transition:none}.portal:hover{transform:none}.solo-sprite{background-position:0 0!important}}@media(prefers-reduced-motion:no-preference){.bloom{animation:flower-open .6s ease-out}@keyframes flower-open{from{transform:scale(.5);opacity:.3}to{transform:scale(1);opacity:1}}}
/* A short, app-like home menu: all primary actions fit a small phone viewport. */
.compact-home{min-height:100svh;display:flex;flex-direction:column;background:#f5f5ef}.menu-head{width:100%;max-width:560px;padding:15px 20px 5px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.menu-head .brand{font-size:14px}.menu-head button{background:transparent;color:#657b70;font-size:11px;padding:6px;min-height:36px}.menu-main{width:100%;max-width:560px;min-height:0;margin:0 auto;padding:8px 20px 10px;display:flex;flex-direction:column;gap:12px;flex:1}.menu-greeting{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 5px}.menu-greeting .eyebrow{font-size:10px;letter-spacing:.05em}.menu-greeting h1{font-size:32px;line-height:1.35;margin:8px 0 5px;letter-spacing:.02em}.menu-greeting p{font-size:12px;line-height:1.5;margin:0;color:#697b70}.menu-himari{width:104px;height:116px;background:#ede9d9;border-radius:40px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.menu-himari .solo-sprite{width:100px;height:108.33px}.track-switch{display:flex;padding:4px;background:#e6e9df;border-radius:14px;gap:4px}.track-switch button{flex:1;min-height:40px;padding:8px;font-size:14px;font-weight:750;background:transparent;color:#778275;border-radius:10px}.track-switch .active{background:#fffefa;color:#285b49;box-shadow:0 2px 6px #314e3810}.track-note{font-size:10px;text-align:center;line-height:1.4;margin:5px 0 0;color:#6c7b71}.menu-progress{display:flex;justify-content:space-around;align-items:center;background:#fffdf7;border:1px solid #e2e5d8;border-radius:16px;padding:12px 8px}.menu-progress>div{text-align:center;flex:1}.menu-progress b{font-size:21px;color:#355f4a}.menu-progress b span{font-size:11px;font-weight:500;color:#879282}.menu-progress small{font-size:10px;margin:3px 0 0;line-height:1.2;color:#849080}.progress-divider{height:28px;width:1px;background:#e5e6dc}.menu-games{display:grid;gap:10px}.menu-game{display:flex;align-items:center;gap:16px;text-decoration:none;padding:18px 20px;border-radius:22px;border:1px solid #dce3d0;position:relative;min-height:119px}.menu-learn{background:#e8efdd;color:#3f6048}.menu-quest{background:#e9e9f4;border-color:#dbdced;color:#53527e}.menu-icon{font-size:52px;line-height:1;width:53px;text-align:center;color:#9eaf7d;flex-shrink:0}.menu-quest .menu-icon{color:#9c94bf}.menu-game h2{font-size:23px;line-height:1.35;margin:3px 0 5px;color:inherit}.menu-kicker{font-size:10px;letter-spacing:.06em;opacity:.75}.menu-game p{font-size:12px;line-height:1.5;margin:0;color:inherit;opacity:.8}.menu-game small{font-size:10px;text-align:left;margin:7px 0 0;line-height:1.3;color:inherit;opacity:.7}.menu-arrow{margin-left:auto;font-size:22px;font-weight:400}.menu-shortcuts{display:flex;justify-content:space-between;gap:8px;margin-top:auto;padding:10px 0 0}.menu-shortcuts a{display:flex;flex:1;flex-direction:column;gap:4px;align-items:center;justify-content:center;text-decoration:none;font-size:11px;line-height:1.4;color:#617565;min-height:48px}.menu-shortcuts a>span:first-child{font-size:20px;color:#8d9e83}.menu-footer{border:0;width:100%;max-width:560px;padding:2px 20px calc(9px + env(safe-area-inset-bottom));margin:0 auto;justify-content:center;font-size:10px;line-height:1.3;color:#929c8a}.compact-home #hub-notice:empty{display:none}.compact-home #hub-notice{font-size:11px;line-height:1.4;color:#93563e}.about-dialog{max-width:520px;width:calc(100% - 36px);max-height:85svh;border:1px solid #d9dfcf;border-radius:24px;padding:24px;color:#355342;background:#fffdf7}.about-dialog::backdrop{background:#203b3455}.about-dialog h2{font-size:21px;margin:12px 0}.about-dialog p{font-size:13px;line-height:1.9}.about-dialog a{font-size:12px;line-height:2.1}.dialog-close{display:block;margin-left:auto;background:#eaf0e0;color:#496147;font-size:12px;min-height:38px;padding:9px 14px}.case-table{width:100%;border-collapse:collapse;font-size:14px;margin:22px 0;background:#fffdf8;border:1px solid #dce3d2}.case-table caption{text-align:left;padding:10px 0;font-size:12px;color:#6d7d6d;font-weight:750}.case-table th,.case-table td{padding:12px;border:1px solid #dde3d4;text-align:left;line-height:1.6}.case-table th{background:#edf1e7;width:48%;font-weight:600}.original-page{display:block;color:#547458;text-decoration:none;margin:20px 0}.original-page img{display:block;width:100%;height:auto;border:1px solid #d5ddcf;border-radius:8px;background:white}.original-page span{display:block;font-size:11px;line-height:1.6;margin:8px 0}#case-materials:empty{display:none}@media(max-width:380px){.menu-main{padding-left:16px;padding-right:16px;gap:10px}.menu-head{padding-left:16px;padding-right:16px}.menu-greeting h1{font-size:28px}.menu-greeting .eyebrow{font-size:9px}.menu-himari{width:86px;height:102px}.menu-himari .solo-sprite{width:84px;height:91px}.menu-game{padding:15px;gap:12px;min-height:109px}.menu-game h2{font-size:21px}.menu-game p{font-size:11px}.menu-icon{width:44px;font-size:43px}.case-table{font-size:12px}.case-table th,.case-table td{padding:10px}}@media(max-height:670px){.menu-head{padding-top:8px;padding-bottom:0}.menu-main{gap:9px;padding-top:4px;padding-bottom:4px}.menu-greeting h1{font-size:27px;margin:4px 0}.menu-greeting p{font-size:11px}.menu-himari{height:90px;width:82px}.menu-himari .solo-sprite{width:80px;height:86.67px}.menu-progress{padding:9px 8px}.menu-progress b{font-size:19px}.menu-game{padding:13px 15px;min-height:103px}.menu-game h2{font-size:21px}.menu-game small{margin-top:5px}.menu-shortcuts{padding-top:4px}.menu-shortcuts a{min-height:43px}.menu-footer{padding-bottom:5px}.track-switch button{min-height:36px}.track-note{font-size:9px}}@media(max-height:570px){.menu-greeting h1{font-size:23px;line-height:1.3}.menu-himari{height:74px;width:70px}.menu-himari .solo-sprite{width:68px;height:73.67px}.menu-main{gap:7px}.menu-greeting p{font-size:10px}.menu-progress{padding:7px}.menu-game{min-height:91px;padding:10px 13px}.menu-game h2{font-size:19px}.menu-game p{font-size:10px}.menu-game small{font-size:9px;margin-top:4px}.menu-icon{font-size:40px;width:40px}.menu-shortcuts a{font-size:10px;min-height:38px}.menu-footer{font-size:9px;padding-bottom:3px}.menu-head{padding-top:5px}.track-switch button{min-height:32px;padding:5px}} 
@media(max-height:570px){.menu-main{gap:5px}.menu-progress{padding:6px}.menu-footer{padding-bottom:2px}}

/* Reading is a sequence of cards, with controls kept close to the content. */
.reader-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0 0}.reader-nav button{min-height:42px;padding:8px 18px;background:#e8eddf;color:#355c46;font-size:13px}.reader-nav span{font-size:12px;color:#697967}.reader-nav button:disabled{opacity:.4;cursor:default}.reader-body{min-width:0;overflow-wrap:anywhere}.reader-body> :first-child{margin-top:0}.reader-body> :last-child{margin-bottom:0}.answer-view #question,.answer-view #case-materials,.answer-view #choices,.answer-view #provenance,.answer-view #tag,.answer-view #answer-toggle{display:none}.quest-app:not(.answer-view) #explanation:not([hidden]){display:none}.quest-app:not(.answer-view) #answer-toggle~#next{display:none}
@media(max-width:640px){
.learn-app header,.quest-app header{padding:12px 18px}.learn-app main,.quest-app main{margin:0 auto 12px;padding:0 16px;min-height:0}.learn-app footer,.quest-app footer{display:none}.garden-heading h1{font-size:26px;margin:6px 0}.garden-heading p{display:none}.garden-heading .map-himari{width:64px;height:70px}.garden-summary{padding:10px 14px;margin:8px 0}.garden-summary>span{font-size:18px}.garden-summary progress{margin:5px 0}.garden-summary p{display:none}.map-toolbar{margin-top:10px}.garden-main label{margin:8px 0 4px}.garden-main input[type=search]{padding:9px 12px}.chapter{padding-top:8px}.chapter h2{font-size:14px;margin:2px 0}.chapter h2 .eyebrow{display:none}.chapter-bed{display:none}.lesson-row{padding:7px 0;gap:8px}.lesson-row .lesson-name{font-size:13px;line-height:1.5}.lesson-row button{min-height:36px}.scope-note{margin-top:10px}#daily-learn{min-height:42px;padding:9px;margin-top:6px}.map-toolbar button{min-height:38px;padding:8px}.garden-summary~#garden-resume:empty{display:none}#garden-resume .secondary{min-height:36px;padding:7px;margin-top:3px}.playtop .quiet{min-height:36px;padding:6px 0}.lesson-path{margin:4px 0}.lesson-path span{padding:6px;font-size:10px}.lesson-buddy{margin:6px 0;padding:7px 12px;gap:8px}.lesson-buddy .solo-sprite{width:35px;height:38px}.lesson-buddy p{font-size:11px}.lesson-card{padding:16px;margin:8px 0;border-radius:18px}.lesson-card h2{font-size:19px;line-height:1.5;margin:6px 0 12px}.lesson-card p,.knowledge-points li{font-size:14px;line-height:1.8}.knowledge-points{margin:8px 0;padding-left:20px}.knowledge-points li{padding:2px 0}.worked-example,.trap-note,.memory-note{padding:12px;margin:9px 0}.story-scene{font-size:18px;padding:10px 0}.learn-feedback{padding:14px}.learn-feedback .flower{display:none}#lesson-next{margin-top:4px;padding:12px;min-height:44px;font-size:13px}#lesson-view .choice{margin:7px 0;padding:10px;min-height:44px;font-size:14px}.lesson-card details{margin-top:12px}.lesson-card .reader-nav{margin-top:10px}
.quest-app #home h1{font-size:27px;margin:6px 0}.quest-app #home .intro,.quest-app #home .cast-home,.quest-app #home .cast-welcome{display:none}.quest-app #home .journey{padding:10px 14px;margin:10px 0}.quest-app #home label{margin:9px 0 4px}.quest-app #home select{padding:11px}.quest-app #home .primary,.quest-app #home .secondary{min-height:44px;padding:10px;margin-top:9px}.quest-app #home>small{margin:6px 0}.quest-app #home details{margin-top:10px}.quest-app #play progress{margin:5px 0}.questpath{font-size:19px;margin:0 5px 5px}.quest-app .buddy{padding:5px 10px;min-height:40px}.quest-app .buddy .character-pair{--pet-size:32px!important}.quest-app .buddy figcaption,.quest-app .buddy .speaker{display:none}.quest-app .provenance{margin:8px 0;padding:8px 10px;font-size:10px}.quest-app .provenance p,.quest-app .provenance a{display:none}.quest-app #tag{font-size:10px}.quest-app #question{font-size:16px;line-height:1.7;margin:8px 0 12px}.quest-app .choice{margin:7px 0;padding:10px 12px;min-height:44px;font-size:14px;gap:9px}.quest-app .choice .key{padding:3px 8px}.quest-app #explanation{padding:16px;margin:8px 0}.quest-app #explanation h3{font-size:18px}.quest-app #explanation p{font-size:14px;line-height:1.8}.quest-app #explanation small{margin:8px 0}.quest-app #next{margin-top:8px;padding:12px;min-height:44px}.quest-app #result{padding-top:5px}.quest-app #result h1{font-size:26px;margin:8px 0}.quest-app #result .cast-result{--pet-size:68px!important}.quest-app #result p{font-size:13px;margin:8px 0}.quest-app #result #score{font-size:20px}.quest-app #garden-done h1{font-size:28px}.original-page img{max-height:35svh;object-fit:contain}.case-table{font-size:12px}.case-table th,.case-table td{padding:6px}
}

@media(max-width:640px){.garden-heading{gap:8px}.garden-heading h1{font-size:22px;line-height:1.4;margin:4px 0}.garden-heading h1 br{display:none}.garden-heading .eyebrow{font-size:10px;letter-spacing:0}.garden-heading .map-himari{width:46px;height:50px}.garden-summary{display:grid;grid-template-columns:95px 1fr;align-items:center;gap:10px;padding:9px 12px}.garden-summary progress{margin:0;height:5px}.garden-summary>span{font-size:17px}.scope-note summary{font-size:11px}}

@media(max-width:640px){#garden-resume:has(button){display:inline-block;width:49%;vertical-align:top}#garden-resume .secondary{font-size:11px;padding:7px 3px;min-height:42px;margin-top:6px}#garden-map:has(#garden-resume button) #daily-learn{width:49%;margin-left:2%;font-size:11px;padding:7px 3px}.quest-app #home>.eyebrow:first-child,.quest-app #home .journey{display:none}.quest-app #home h1{font-size:22px;line-height:1.5;margin:8px 0}.quest-app #home h1 br{display:none}.quest-app #track-heading{font-size:10px;letter-spacing:0}}
