/* V0.6 — sunlit white, clear sky blue, restrained coral. */
:root{--paper:#f8fbfe;--ink:#263f53;--green:#337d96;--muted:#647a8b;--line:#dbe7ef;--red:#c17465;--gold:#e0aa66}
body{background:#f8fbfe;color:var(--ink);background-image:none}aside{background:#fff;border-color:#e2eaf1}.brand span{color:#ce806d}.brand b{color:#2a566e}.edition,.side-note{color:#6c8596}header{color:#728897;border-color:#e0ebf2}button,.file{background:white;border-color:#d8e4ec;color:#28495f}button:hover:not(:disabled){background:#edf6fb;border-color:#98c3d5}button.primary{background:#337d96;border-color:#337d96;color:#fff}button.primary:hover{background:#286b84}nav button.active{background:#e8f3fb;color:#24627d;box-shadow:inset 3px 0 #5398b5}nav button{color:#526d80}.badge{background:#edf6fb;color:#3a7793}.panel,.guided-lesson{background:#fff;border:1px solid #dce8f0}.feedback{background:#edf8fb;border-color:#7fabc0}.feedback.wrong{background:#fff1ec;border-color:#d98b77}.choices button{background:#f1f8fc}.muted{color:#6a8090}dialog{background:#fff}.journey-map button{background:#fff;border-color:#dbe7ef}.journey-map .current{background:#e5f3fc;border-color:#a1c8dc}.welcome-strip{color:#688498}
.travel-hero{background:#eaf5fc;border:1px solid #dfebf3}.travel-hero:before{background-image:linear-gradient(90deg,#f5fbfff5 0%,#f5fbffe0 35%,#eaf6ff28 76%),var(--culture-image,none);opacity:1}.hero-copy h1{color:#2a536b}.hero-copy .eyebrow{color:#b56c5d}.image-credit{background:#f8fcffd9;color:#638396}.hero-lesson{font-size:17px!important;max-width:360px!important;color:#476d83}.home-v6{min-height:360px}.home-v6 .hero-copy{max-width:520px}.hero-start{box-shadow:0 5px 15px #337d9615}.home-roadmap{margin:22px 0 32px;padding:20px 0;border-bottom:1px solid var(--line)}.roadmap-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.roadmap-heading h2{font-size:23px;margin:0}.roadmap-heading>span,.home-extra-heading>span{font-size:12px;color:#71899a}.home-roadmap ol{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;padding:0;margin:20px 0 12px}.home-roadmap li{display:flex;gap:10px;position:relative}.home-roadmap li>span{width:28px;height:28px;border-radius:50%;background:#e9f4fb;color:#3a7e9b;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:12px}.home-roadmap b{font-size:14px;font-weight:500}.home-roadmap li p{font-size:11px;margin:5px 0;color:#6b8190}.home-extra-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.home-extra-heading h2{font-size:24px;margin:0 0 14px}.choice-pair{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:28px}.choice-tile{text-align:left;padding:25px;background:#fff;min-height:175px;border-radius:14px}.choice-tile h3{margin:10px 0}.choice-tile p{font-size:12px;margin:8px 0}.choice-tile>span:last-child{font-size:12px;color:#3986a3}.culture-choice{background:#fff8f4;border-color:#efdcd3}.culture-choice>span:last-child{color:#b56c5d}
.lesson-page-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:10px 0 16px}.lesson-page-heading .eyebrow{margin:8px 0;color:#517e98}.lesson-page-heading p{margin:6px 0;font-size:13px}.lesson-page-heading button{font-size:12px}.guided-lesson{border-radius:18px;overflow:hidden;scroll-margin-top:15px}.lesson-context{background:#f0f8fe;padding:24px 30px 22px;border-bottom:1px solid #e0edf5}.lesson-context p{font-size:13px;margin:10px 0 5px;color:#68889d}.lesson-context strong{font-size:18px;font-weight:500}.lesson-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;margin:0;padding:18px 24px;gap:10px;border-bottom:1px solid #e5edf3;background:#fff}.lesson-progress li{min-width:0}.lesson-progress button{width:100%;display:grid;grid-template-columns:28px 1fr;text-align:left;align-items:center;column-gap:10px;row-gap:0;padding:10px;background:transparent;border:0;min-width:0}.lesson-progress button>span{grid-row:span 2;background:#f0f4f7;border-radius:50%;width:28px;height:28px;display:flex;align-items:center;justify-content:center;color:#829aaa;font-size:12px}.lesson-progress b{font-size:14px;font-weight:500}.lesson-progress small{font-size:10px;color:#6f8798}.lesson-progress .current button{background:#edf7ff;box-shadow:inset 0 -3px #599bb8}.lesson-progress .current button>span{background:#337d96;color:white}.lesson-progress .done button>span{background:#e1f0f7;color:#43829d}.lesson-progress button:disabled{opacity:.65}.step-content{padding:28px 35px 30px;min-height:420px}.step-content h1{font-size:clamp(25px,2.4vw,34px);margin:7px 0 12px;line-height:1.6;letter-spacing:0;font-weight:500}.step-number{font-size:11px;letter-spacing:1px;color:#aa7469;margin:0 0 8px}.step-instruction{font-size:14px;max-width:640px;color:#58758a;margin:10px 0 22px}.step-content h1:focus{outline:0}.lesson-next{display:block;width:100%;max-width:590px;margin-top:24px;padding:16px 24px;font-size:16px}.next-description{font-size:12px;color:#7e91a0;max-width:590px;text-align:center;margin:8px 0}.lesson-foot{display:flex;gap:10px;align-items:center;justify-content:space-between;border-top:1px solid #e0eaf2;padding:15px 28px;background:#fbfdff}.lesson-foot>span{font-size:11px;color:#7791a3}.lesson-foot button{font-size:12px;padding:10px 12px}.optional-zone{margin:20px 0;padding:18px 22px;border:1px solid #e0e9f0;border-radius:12px;background:#fff}.optional-zone>summary{font-size:13px;color:#57778e;line-height:1.8}.optional-zone[open]>summary{margin-bottom:18px}.optional-zone p{font-size:13px}.optional-zone .episode-list{margin-top:16px}.natural-player{background:#f3f9fd;border-color:#d8eaf5;padding:20px}.natural-player .source-links{font-size:10px}.natural-player strong{color:#416a82}.natural-player button.primary{font-size:14px}.target-expression,.speak-prompt{border-left:3px solid #9ac6db;padding:17px 22px;background:#f6fbff;margin:20px 0}.target-expression>.row{justify-content:space-between;font-size:12px;color:#728f9f}.target-expression button{font-size:11px;padding:7px 11px;min-height:40px}.target-expression .jp,.speak-prompt .jp{font-size:clamp(24px,2.5vw,32px);margin:10px 0;color:#315a72;line-height:1.8}.reading{font-size:13px;color:#638ca4;line-height:1.9}.speak-prompt{padding:25px 27px}.speaking-tools{border-top:1px solid #e4edf3;margin-top:24px;padding-top:18px}.speaking-tools summary{font-size:13px;color:#527c94}.speaking-tools p{font-size:13px}.service-note{background:#f4f8fb;border-radius:7px;padding:14px;color:#5a778b;font-size:12px}.meaning-target{font-size:26px;color:#447a97}.comprehension-options{margin:20px 0;gap:10px}.comprehension-options button{border-color:#d9e7f0;background:white;font-size:15px;display:flex;gap:14px;align-items:center;line-height:1.65}.comprehension-options button>span{font-size:12px;color:#91a4b0}.comprehension-options button.correct-option{background:#e6f4fa;border-color:#77b2cc;opacity:1}.comprehension-options button.wrong-option{background:#fff1ec;border-color:#ddb7a9}.inline-feedback{font-size:14px;color:#33758f}.inline-feedback:empty{display:none}.recall-question{font-size:20px;margin:28px 0;color:#46677d}.completion-mark{font-size:25px;display:inline-flex;width:50px;height:50px;align-items:center;justify-content:center;border-radius:50%;background:#e6f4fb;color:#418ba7}.completion-more{margin:20px 0}.completion-more button{font-size:12px}.source-entry{grid-template-columns:minmax(0,1fr) minmax(170px,.35fr)}.source-entry>div{min-width:0}.source-button{background:#f0f8fd!important;color:#337995}.episode-list button{background:white}.episode-list button.selected{background:#eaf6ff}.recording{color:#c57f6b}.jp{overflow-wrap:anywhere}audio{max-width:100%}#toast{background:#315f78}
@media(max-width:1050px) and (min-width:801px){.home-roadmap ol{gap:10px}.home-roadmap li{flex-direction:column}.lesson-progress{padding:14px 12px}.lesson-progress button{grid-template-columns:1fr;text-align:center;justify-items:center;gap:4px}.step-content{padding:25px}.hero-copy h1{font-size:35px}.home-v6{min-height:370px}}
@media(max-width:800px){body{background:#f8fbfe}aside{background:#fff}nav{background:#fff;border-color:#dce8f0}nav button.active{background:#e8f5fc;color:#287798}.travel-hero:before{background-image:linear-gradient(180deg,#f6fbfff2 0%,#f0f9ffe8 47%,#e5f4ff38 100%),var(--culture-image,none)}.home-v6{padding:25px 23px;min-height:385px}.home-v6 .hero-copy h1{font-size:30px}.hero-lesson{font-size:14px!important}.home-roadmap{margin-top:18px;padding:16px 0}.roadmap-heading h2{font-size:21px}.home-roadmap ol{grid-template-columns:1fr 1fr;gap:18px 14px}.home-roadmap li>span{width:26px;height:26px}.home-roadmap li p{font-size:10px}.home-roadmap b{font-size:13px}.home-extra-heading{align-items:flex-start;flex-direction:column;gap:0;margin-bottom:14px}.home-extra-heading h2{font-size:22px;margin-bottom:4px}.choice-pair{grid-template-columns:1fr;gap:12px}.choice-tile{min-height:145px;padding:21px}.optional-zone{padding:17px 18px}.lesson-page-heading{padding:4px 0 14px;align-items:flex-start}.lesson-page-heading p{font-size:11px}.lesson-page-heading button{font-size:10px;max-width:88px;padding:7px 9px}.lesson-context{padding:18px}.lesson-context strong{font-size:15px;line-height:1.8;display:block}.lesson-context p{font-size:12px}.lesson-context .badge{font-size:10px}.lesson-progress{padding:12px 7px;gap:4px}.lesson-progress button{grid-template-columns:1fr;justify-items:center;text-align:center;gap:5px;padding:8px 2px;border-radius:6px}.lesson-progress button>span{width:25px;height:25px;grid-row:auto}.lesson-progress b{font-size:12px}.lesson-progress small{font-size:9px}.step-content{padding:24px 18px;min-height:360px}.step-content h1{font-size:25px}.step-instruction{font-size:13px;line-height:1.9}.natural-player{padding:14px}.natural-player strong{font-size:13px}.natural-player .row{gap:8px}.step-number{font-size:10px}.target-expression,.speak-prompt{padding:16px;margin:18px 0}.target-expression>.row{font-size:10px}.target-expression .jp,.speak-prompt .jp{font-size:25px}.target-expression p,.speak-prompt p{font-size:13px}.lesson-next{font-size:14px;padding:15px 10px}.next-description{font-size:10px}.lesson-foot{padding:12px;flex-wrap:wrap;gap:6px}.lesson-foot button{font-size:10px;padding:8px;min-height:40px}.lesson-foot>span{font-size:9px}.source-entry{grid-template-columns:1fr}.comprehension-options button{font-size:14px;padding:14px}.meaning-target{font-size:24px}.completion-more button{width:100%}.speaking-tools summary{font-size:12px}.recall-question{font-size:17px}.episode-list{grid-template-columns:1fr}.guided-lesson{border-radius:13px}.natural-player .row label{min-width:90px}.natural-player .row button{flex:1}.image-credit{background:#f8fcffd9}}

.castle-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px;max-height:650px;overflow:auto;padding:4px}.castle-card{display:flex;flex-direction:column;gap:8px;text-align:left;padding:14px;background:white}.castle-card img{width:100%;height:110px;object-fit:cover;border-radius:9px}.castle-card strong{font-size:18px}.castle-card small{color:#71899a}.castle-unpictured{height:110px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(130deg,#f2faff,#e7f3fa);border-radius:9px;color:#46758e}.castle-unpictured small{font-size:11px;margin-top:9px}.castle-card>span:last-child{font-size:12px;color:#3986a3}@media(max-width:500px){.castle-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.castle-card{padding:10px}.castle-card strong{font-size:15px}}

.brand .brand-heading{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}.brand .brand-version{font-family:inherit;font-size:9px;font-weight:500;line-height:1.5;letter-spacing:0;color:#52748a;background:#edf6fc;border:1px solid #dbeaf3;border-radius:5px;padding:2px 4px;white-space:nowrap;flex-shrink:0}

@media(min-width:801px) and (max-width:1050px){.brand b{font-size:24px;letter-spacing:1px}}

.brand-heading>b{white-space:nowrap}.scene-switch{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;column-gap:18px;row-gap:10px;margin:16px 0 0;padding:16px 18px;background:#fff;border:1px solid #dce8f1;border-radius:12px;color:#54788e;font-size:12px}.scene-picker{min-width:0;margin:0;gap:8px}.scene-picker>span{font-weight:500;color:#426c83}.scene-picker select{width:100%;max-width:100%;min-width:0;min-height:44px;padding:10px 12px;background:#f5faff;border-color:#c8deeb;color:#2d566e;font-size:13px}.scene-actions{display:flex;gap:7px;flex-wrap:wrap}.scene-switch button{min-height:44px;white-space:nowrap;font-size:12px;padding:9px 12px;border-radius:8px;background:#fff}.scene-switch #sceneToday{background:#edf6fc;color:#387c99}.scene-selection{grid-column:1/-1;margin:0;font-size:12px;line-height:1.8;color:#52778d}.scene-selection small{display:block;font-size:11px;line-height:1.8;color:#7b919f}.hero-art-description{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}@media(max-width:1100px){.scene-switch{grid-template-columns:minmax(0,1fr)}.scene-actions{justify-content:flex-start}}@media(max-width:500px){.scene-switch{padding:14px 12px;gap:10px}.scene-picker select{font-size:12px;padding:10px 8px}.scene-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;width:100%}.scene-switch button{padding:9px 6px;font-size:11px}.scene-selection{font-size:11px}.scene-selection small{font-size:10px}}@media(min-width:801px) and (max-width:1050px){.brand b{font-size:23px}}

/* Fixed family foyer link; independent login and learning state stay in this origin. */
.house-return{display:flex;align-items:center;min-height:44px;width:fit-content;max-width:100%;margin:-16px 0 15px;padding:6px 0;color:#52748a;font-size:12px;line-height:1.5;text-decoration:none}.house-return:hover{color:#24627d;text-decoration:underline;text-underline-offset:4px}.house-return:focus-visible{outline:3px solid #7fabc0;outline-offset:4px;border-radius:3px}@media(max-width:800px){.house-return{margin:-8px 0 7px;font-size:12px}}
