.episode-detail{background:#fadfe8;color:#2e355b}.episode-detail main{overflow:hidden}.episode-detail .reading-width{width:min(960px,calc(100% - 48px));margin-inline:auto;position:relative;z-index:1}.episode-hero{position:relative;aspect-ratio:2/1;width:100%}.episode-hero img{width:100%;height:100%;object-fit:cover;object-position:46% 50%;display:block}.episode-hero:after{content:'';position:absolute;bottom:-1px;left:0;width:100%;height:45px;background:#fadfe8;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30C170 0 310 60 510 32S790 5 1020 31s285 5 420-14V60H0Z'/%3E%3C/svg%3E") center/100% 100%}.episode-intro{text-align:center;padding:44px 0 58px}.episode-intro .eyebrow{color:#9b3775;font-weight:900}.episode-intro h1{color:#bc4e93;font-size:clamp(36px,4.3vw,64px);line-height:1.13;margin:16px 0}.episode-subtitle{font-size:22px;line-height:1.7;max-width:780px;margin:auto}.story-chapter{position:relative;padding:58px 0;background:var(--chapter-bg);isolation:isolate}.chapter-1{--chapter-bg:#fff8e7;--chapter-ink:#ac5d13}.chapter-2{--chapter-bg:#fce7ef;--chapter-ink:#a94089}.chapter-3{--chapter-bg:#e8f7f8;--chapter-ink:#087b85}.chapter-4{--chapter-bg:#f0eaff;--chapter-ink:#7950bf}.chapter-5{--chapter-bg:#fff0e9;--chapter-ink:#b14b78}.story-chapter h2{font-size:clamp(29px,3vw,38px);line-height:1.25;color:var(--chapter-ink);margin:0 0 30px;max-width:760px}.story-chapter p{font-size:20px;line-height:1.8;margin:0 0 18px;max-width:760px}.story-chapter .reading-width{padding:0 72px}.story-chapter .story-dialogue{font-weight:700;border-left:3px solid var(--chapter-ink);padding:8px 18px;background:#ffffff70;border-radius:0 12px 12px 0}.story-chapter .story-moment{font-family:'Baloo 2',sans-serif;color:var(--chapter-ink);font-size:34px;font-weight:700;margin:30px 0;line-height:1.3}.story-chapter .story-home{font:700 60px/1.3 'Baloo 2',sans-serif;color:var(--chapter-ink);margin:36px 0 20px;text-align:center}.story-chapter:last-of-type p:last-child{font-style:italic}.story-cloud{position:absolute;left:-80px;top:25%;width:300px;height:auto;opacity:.4;z-index:0;pointer-events:none}.chapter-3 .story-cloud{left:auto;right:-80px;top:65%}.chapter-5 .story-cloud{top:55%}.episode-actions{padding:45px 0 65px}.episode-youtube{text-align:center;margin-bottom:35px}.episode-youtube p{font-size:22px;font-weight:700}.episode-detail .episode-youtube .hp-btn{background:#ef3340;color:white;margin-top:12px}.episode-links{display:grid;grid-template-columns:1fr 1.25fr;gap:24px}.episode-links a{display:flex;flex-direction:column;justify-content:center;gap:6px;padding:24px;border-radius:24px;background:#fff;color:#9b3775;font-size:20px;font-weight:700;box-shadow:0 5px 15px #593c6810}.episode-links .next-adventure{background:#a94089;color:#fff}.episode-links strong{font:700 25px/1.3 'Baloo 2',sans-serif}.episode-links a:hover{transform:translateY(-3px)}.episode-detail :is(a,button):focus-visible{outline:3px solid #7950bf;outline-offset:5px}.episode-detail .hp-footer{margin:0}
@media(max-width:1200px){.story-cloud{width:220px;opacity:.2;left:-135px}.chapter-3 .story-cloud{right:-135px}}
@media(max-width:700px){.episode-hero{aspect-ratio:1.55/1}.episode-hero:after{height:25px}.episode-detail .reading-width{width:calc(100% - 40px)}.episode-intro{padding:28px 0 36px}.episode-subtitle{font-size:18px}.story-chapter{padding:38px 0}.story-chapter .reading-width{padding:0}.story-chapter p{font-size:18px;line-height:1.8}.story-chapter h2{font-size:29px}.story-chapter .story-moment{font-size:29px}.story-cloud{display:none}.episode-links{grid-template-columns:1fr}.episode-links a{padding:22px}.episode-actions{padding:32px 0 48px}}
@media(prefers-reduced-motion:reduce){.episode-links a:hover{transform:none}}
/* New cinematic banners retain their wider composition. */
.episode-detail .episode-hero{aspect-ratio:3/1}
.episode-detail .episode-hero img{object-position:var(--banner-position,46% 50%)}
.story-chapter .story-closing{font-family:'Baloo 2',sans-serif;font-size:30px;font-weight:700;line-height:1.4;color:var(--chapter-ink);text-align:center;margin:35px 0 0}
.story-kelo{position:absolute;right:25px;top:40%;width:120px;height:auto;pointer-events:none;opacity:.85}
@media(max-width:1200px){.story-kelo{display:none}}
@media(max-width:700px){.episode-detail .episode-hero{aspect-ratio:1.65/1}.story-chapter .story-closing{font-size:26px}}
/* Keep the fixed navigation clear of faces in both new banners. */
.episode-detail .episode-hero{margin-top:104px}
@media(max-width:700px){.episode-detail .episode-hero{margin-top:88px}}

/* Episode 3: small learning summary, scoped to preserve existing stories. */
:is(.episode-1,.episode-2,.episode-3,.episode-6,.episode-7) .episode-discovery{background:#ddf5ea;border-radius:26px;padding:32px 40px;margin-block:40px;text-align:center;box-shadow:0 5px 15px #593c6810}
:is(.episode-1,.episode-2,.episode-3,.episode-6,.episode-7) .episode-discovery h2{color:#21745d;font-size:28px;margin:0 0 15px}
:is(.episode-1,.episode-2,.episode-3,.episode-6,.episode-7) .episode-discovery p{font-size:20px;line-height:1.8;margin:10px 0}
@media(max-width:700px){:is(.episode-1,.episode-2,.episode-3,.episode-6,.episode-7) .episode-discovery{padding:26px 20px}:is(.episode-1,.episode-2,.episode-3,.episode-6,.episode-7) .episode-discovery h2{font-size:25px}:is(.episode-1,.episode-2,.episode-3,.episode-6,.episode-7) .episode-discovery p{font-size:18px}}

/* Episode 4: warm evening to soft bedtime; earlier episodes unaffected. */
.episode-4 .episode-discovery{background:#ddf5ea;border-radius:26px;padding:32px 40px;margin-block:40px;text-align:center;box-shadow:0 5px 15px #593c6810}
.episode-4 .episode-discovery h2{color:#21745d;font-size:28px;margin:0 0 15px}
.episode-4 .episode-discovery p{font-size:20px;line-height:1.8;margin:10px 0}
@media(max-width:700px){.episode-4 .episode-discovery{padding:26px 20px}.episode-4 .episode-discovery h2{font-size:25px}.episode-4 .episode-discovery p{font-size:18px}}

.episode-4 .chapter-1{--chapter-bg:#fff8e7;--chapter-ink:#995710}
.episode-4 .chapter-2{--chapter-bg:#fff1da;--chapter-ink:#a65716}
.episode-4 .chapter-3{--chapter-bg:#fff6e8;--chapter-ink:#a65716}
.episode-4 .chapter-4{--chapter-bg:#ffeadc;--chapter-ink:#a14e17}
.episode-4 .chapter-5{--chapter-bg:#fff8df;--chapter-ink:#886016}
.episode-4 .chapter-6{--chapter-bg:#e8f7f8;--chapter-ink:#087b85}
.episode-4 .chapter-7{--chapter-bg:#f0eaff;--chapter-ink:#7950bf}
.episode-4 .chapter-8{--chapter-bg:#e9edf9;--chapter-ink:#47527e}
.episode-4 .episode-discovery{background:#eee9fa}
.episode-4 .episode-discovery h2{color:#655190}
.episode-4 .routine-words{list-style:none;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:12px 24px;font-size:19px}
.episode-4 .routine-strip{list-style:none;padding:22px 0 0;display:flex;flex-wrap:wrap;justify-content:center;gap:12px;font-weight:800}
.episode-4 .routine-strip li{background:#fff8e7;padding:9px 13px;border-radius:16px}
.episode-4 .routine-strip li:not(:last-child):after{content:' →';color:#7950bf}
.episode-4 .all-adventures{display:table;margin:26px auto 0;padding:12px 24px;border-radius:22px;background:white;color:#9b3775;font-weight:800;min-height:44px}

.episode-4 .routine-words li{background:#ffffff90;border-radius:12px;padding:6px 12px}.episode-4 .episode-discovery h2 .ui-icon{width:24px;height:24px;margin-right:8px;vertical-align:middle}

/* Episode 5 reuses the learning card with sunny chapter colours. */
.episode-5 .episode-discovery{background:#ddf5ea;border-radius:26px;padding:32px 40px;margin-block:40px;text-align:center;box-shadow:0 5px 15px #593c6810}
.episode-5 .episode-discovery h2{color:#21745d;font-size:28px;margin:0 0 15px}
.episode-5 .episode-discovery p{font-size:20px;line-height:1.8;margin:10px 0}
@media(max-width:700px){.episode-5 .episode-discovery{padding:26px 20px}.episode-5 .episode-discovery h2{font-size:25px}.episode-5 .episode-discovery p{font-size:18px}}

.episode-5 .chapter-1{--chapter-bg:#fff8e7;--chapter-ink:#995710}
.episode-5 .chapter-2{--chapter-bg:#fff1da;--chapter-ink:#a65716}
.episode-5 .chapter-3{--chapter-bg:#fff6e8;--chapter-ink:#a65716}
.episode-5 .chapter-4{--chapter-bg:#ffeadc;--chapter-ink:#a14e17}
.episode-5 .chapter-5{--chapter-bg:#fff8df;--chapter-ink:#886016}
.episode-5 .chapter-6{--chapter-bg:#e8f7f8;--chapter-ink:#087b85}
.episode-5 .chapter-7{--chapter-bg:#f0eaff;--chapter-ink:#7950bf}
.episode-5 .chapter-8{--chapter-bg:#e9edf9;--chapter-ink:#47527e}
.episode-5 .episode-discovery{background:#eee9fa}
.episode-5 .episode-discovery h2{color:#655190}
.episode-5 .routine-words{list-style:none;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:12px 24px;font-size:19px}
.episode-5 .routine-strip{list-style:none;padding:22px 0 0;display:flex;flex-wrap:wrap;justify-content:center;gap:12px;font-weight:800}
.episode-5 .routine-strip li{background:#fff8e7;padding:9px 13px;border-radius:16px}
.episode-5 .routine-strip li:not(:last-child):after{content:' →';color:#7950bf}
.episode-5 .all-adventures{display:table;margin:26px auto 0;padding:12px 24px;border-radius:22px;background:white;color:#9b3775;font-weight:800;min-height:44px}

.episode-5 .routine-words li{background:#ffffff90;border-radius:12px;padding:6px 12px}.episode-5 .episode-discovery h2 .ui-icon{width:24px;height:24px;margin-right:8px;vertical-align:middle}

.episode-5 .chapter-1{--chapter-bg:#fff8df;--chapter-ink:#886016}
.episode-5 .chapter-2{--chapter-bg:#eaf6fc;--chapter-ink:#286d92}
.episode-5 .chapter-3{--chapter-bg:#fff1da;--chapter-ink:#a65716}
.episode-5 .chapter-4{--chapter-bg:#e8f5e8;--chapter-ink:#387449}
.episode-5 .chapter-5{--chapter-bg:#f0eaff;--chapter-ink:#7950bf}
.episode-5 .chapter-6{--chapter-bg:#fff8df;--chapter-ink:#886016}
.episode-5 .chapter-7{--chapter-bg:#fff0e9;--chapter-ink:#a65716}
.episode-5 .episode-discovery{background:#fff3bf}.episode-5 .episode-discovery h2{color:#886016}
