/* Lesson 2 only. Shared components keep their existing implementation. */
.lesson-two-page { color: #252525; font-weight: 700; }
.lesson-two-page em { color: #ff4967; font-style: normal; }
/* Keep scenery independent of content height, using the opening page's scale. */
.lesson-two-page .lower-lesson-stage {
  --lesson-two-scenery-height: max(1240px, 50vw);
  background-color: #ffdf9a;
  background-image: linear-gradient(to bottom, transparent calc(var(--lesson-two-scenery-height) - 100px), #ffdf9a var(--lesson-two-scenery-height)), url("../images/learning/lower/bg.png");
  background-size: 100% 100%, auto var(--lesson-two-scenery-height);
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: scroll;
}
@media (max-width: 1200px) {
  .lesson-two-page .lower-lesson-stage { --lesson-two-scenery-height: 2010px; }
}
@media (max-width: 767px) {
  .lesson-two-page .lower-lesson-stage { --lesson-two-scenery-height: 2742px; }
}
.lesson-two-page .lower-story-stage { min-height: 0; }
.lesson-two-page .lower-story-stage__inner { width: min(calc(100% - 64px), 1260px); }
.lesson-two-page .lower-lesson-progress-header__steps li.is-current { background: #079746; border-color: #079746; }
.lesson-two-page .lower-lesson-progress-header { font-weight: 400; }
/* Preserve the ribbon width after shortening the title by two characters. */
.lesson-two-page .lower-lesson-progress-header__title span { padding-inline-end: 2ic; }
.lesson-two-page .lower-lesson-progress-header__steps { --progress-inset: 18px; width: 620px; gap: 12px; background: transparent; box-shadow: none; }
.lesson-two-page .lower-lesson-progress-header__steps > strong { position: relative; background: #079746; border-radius: 999px; }
.lesson-two-page .lower-lesson-progress-header__steps > strong::after { content: ''; position: absolute; top: 50%; right: -10px; width: 20px; height: 14px; background: #079746; clip-path: polygon(0 0, 100% 50%, 0 100%); transform: translateY(-50%); }
.lesson-two-page .lower-lesson-progress-header__steps ol { position: relative; align-self: stretch; background: rgb(255 255 255 / 92%); border-radius: 999px; box-shadow: 0 3px 8px rgb(25 40 151 / 10%); }
.lesson-two-page .lower-lesson-progress-header__steps ol::before { content: ''; position: absolute; top: 50%; left: calc(var(--progress-inset) + (100% - 2 * var(--progress-inset)) / 14); right: calc(var(--progress-inset) + (100% - 2 * var(--progress-inset)) / 14); height: 4px; background: #e4e2db; transform: translateY(-50%); }
.lesson-two-page .lower-lesson-progress-header__steps li:not(:last-child)::after { display: none; }
@media (max-width: 767px) {
  .lesson-two-page .lower-lesson-progress-header__steps { --progress-inset: 7px; }
  .lesson-two-page .lower-lesson-progress-header__steps ol::before { height: 3px; }
}
/* Reserve the previous header height so the completion artwork stays in place. */
.lesson-two-complete-progress { height: 42px; }
@media (max-width: 1200px) {
  .lesson-two-complete-progress { height: 100.59375px; }
}
@media (max-width: 767px) {
  .lesson-two-complete-progress { height: 90.1875px; }
}
@media (min-width: 1201px) {
  .lesson-two-page .lower-lesson-progress-header { grid-template-columns: max-content auto minmax(0, 1fr); column-gap: 38px; }
  .lesson-two-page .lower-lesson-progress-header__title { max-width: none; }
}
@media (max-width: 767px) {
  .lesson-two-page .lesson-two-overview-progress { width: min(calc(100% - 12px), 480px); }
  .lesson-two-page .lower-lesson-progress-header { display: block; }
  .lesson-two-page .lower-lesson-progress-header__title { display: none; }
  .lesson-two-page .lower-lesson-progress-header__steps { width: 100%; min-height: 42px; }
  .lesson-two-page .lower-lesson-progress-header__steps > strong { padding-inline: 16px; font-size: .875rem; }
  .lesson-two-page .lower-lesson-progress-header__steps ol { padding-inline: 7px; }
  .lesson-two-page .lower-lesson-progress-header__steps li { width: 29px; height: 29px; font-size: .875rem; }
  .lesson-two-page .lower-lesson-progress-header__steps li:not(:last-child)::after { width: calc(100% + 8px); height: 3px; }
}
.lesson-two-page .lower-story-hero { grid-template-columns: minmax(0, 1fr) 230px; min-height: 210px; margin-top: 26px; gap: 0; }
.lesson-two-page .lower-story-hero__copy { grid-column: 1; padding: 26px 68px 24px; }
.lesson-two-page .lower-story-hero__copy.lower-story-hero__copy--illustrated { aspect-ratio: auto; }
.lesson-two-page .lower-story-hero__copy h1 { font-size: clamp(30px, 2.78vw, 42px); line-height: 1.2; margin-bottom: 8px; }
.lesson-two-page .lower-story-hero__copy p { font-size: clamp(16px, 1.39vw, 21px); text-align: left; line-height: 1.4; }
.lesson-two-page .lower-story-hero__copy--illustrated .lower-story-hero__description > p { width: 80%; }
/* Size the story cloud independently of the copy and guide layout. */
@media (min-width: 1201px) {
  .lesson-two-page .lesson-two-hero { --lesson-two-guide-height: 245px; }
  .lesson-two-page--1 .lesson-two-hero { --lesson-two-guide-height: 270px; }
}
@media (max-width: 1200px) {
}
@media (max-width: 767px) {
  .lesson-two-page .lesson-two-hero .lower-story-hero__copy h1 { max-width: 97.5%; margin-inline: auto; white-space: pre-line; }
  .lesson-two-page .lesson-two-hero .lower-story-hero__description > p { width: 100%; }
}
.lesson-two-page .lesson-two-hero .lower-story-hero__copy > span { display: grid; place-items: center; width: 170px; height: 85px; padding: 0 0 .625em; left: 0; top: -13px; border-radius: 0; background: transparent; font-size: 24px; transform: rotate(-14deg); }
.lesson-two-page .lesson-two-hero .lower-story-hero__copy > span::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('../images/learning/lower/ribbon-blank.png') center / contain no-repeat; transform: rotate(14deg); }
@media (min-width: 1201px) {
  /* Match the cloud's bottom anchor; percentage margins use the copy width. */
  .lesson-two-page .lesson-two-hero .lower-story-hero__copy > span { top: auto; bottom: calc((100% - var(--lesson-two-guide-height)) / 2 - 8px); margin-bottom: calc((100% - 40px) * 623 / 2170 - 105px); }
}
@media (min-width: 768px) and (max-width: 1200px) {
  .lesson-two-page .lesson-two-hero .lower-story-hero__copy > span { top: -41px; }
}
.lesson-two-page .lower-story-hero__decoration--left { left: -48px; width: 80px; }
.lesson-two-page .lower-story-hero__decoration--right { right: -42px; width: 76px; }
.lesson-two-page .lower-story-hero__guide { position: relative; display: flex; align-items: flex-end; justify-content: flex-end; }
.lesson-two-page .lower-story-hero__guide > img { width: 185px; max-height: 245px; }
.lesson-two-page .lower-story-hero__guide > p { position: absolute; top: 5px; right: 144px; width: 162px; margin: 0; padding: 22px 10px; font-size: 15px; line-height: 1.65; border: 1px solid #b0c8d5; }
/* Preserve the guide's flow space so hiding its speech never moves the phone. */
.lesson-two-page--2 .lesson-two-hero .lower-story-hero__guide > p,
.lesson-two-page--3 .lesson-two-hero .lower-story-hero__guide > p,
.lesson-two-page--4 .lesson-two-hero .lower-story-hero__guide > p { visibility: hidden; }
@media (max-width: 1024px) {
  /* Hidden dialogue must not reserve space above the phones on STEPs 2–4. */
  :is(.lesson-two-page--2, .lesson-two-page--3, .lesson-two-page--4) .lesson-two-hero .lower-story-hero__guide > p { display: none; }
}
.lesson-two-page--5 .lesson-two-hero .lower-story-hero__guide > img { position: relative; top: 24px; left: 12px; z-index: 2; }
.lesson-two-page--5 .lesson-two-hero .lower-story-hero__guide > p { width: 182px; height: 145px; padding: 37px 14px; line-height: 1.5; white-space: nowrap; }
@media (min-width: 768px) and (max-width: 1200px) {
  .lesson-two-page--5 .lesson-two-hero .lower-story-hero__guide > img { top: 16px; left: 4px; }
}
@media (min-width: 768px) and (max-width: 1000px) {
  .lesson-two-page--5 .lesson-two-hero .lower-story-hero__guide > p { position: relative; top: 0; left: -10px; width: 140px; height: calc(26px + 4lh); padding: 22px 4px; line-height: 1.65; }
}
.lesson-two-page--1 .lower-story-hero__guide > img { width: 190px; max-height: 270px; }
/* Opening-page dialogue: one continuous outline keeps the tail seam-free. */
.lesson-two-page--1 .lesson-two-hero .lower-story-hero__guide > p { top: 46px; right: 165px; width: 218px; height: 142px; padding: 33px 20px; border: 0; border-radius: 0; background: transparent; white-space: nowrap; }
.lesson-two-page--1 .lesson-two-hero .lower-story-hero__guide > p::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 232 138'%3E%3Cpath d='M197 122 L216 126 L207 112 C222 100 230 82 230 68 C230 31 179 1 116 1 C53 1 2 31 2 68 C2 105 53 135 116 135 C148 135 177 130 197 122 Z' fill='white' stroke='%23c9cdd1' stroke-width='1.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat; filter: drop-shadow(0 1px 1px rgb(0 0 0 / 10%)); }
@media (min-width: 768px) and (max-width: 1000px) {
  .lesson-two-page--1 .lesson-two-hero .lower-story-hero__guide > p { position: relative; top: 0; right: 0; left: -20px; width: 160px; height: calc(26px + 4lh); padding: 22px 8px; font-size: 14px; }
}
.lesson-two-page--1 .lower-story-hero__decoration--right { display: none; }
/* Correct the source artwork's tilt without replacing its positioning transform. */
.lesson-two-page .lesson-two-hero .lower-story-hero__decoration--left { rotate: 7deg; }
/* Balance the larger text inside the story cloud without scaling the hero. */
.lesson-two-page .lesson-two-hero .lower-story-hero__copy h1 { position: relative; }
.lesson-two-page .lesson-two-hero .lower-story-hero__copy h1::before,
.lesson-two-page .lesson-two-hero .lower-story-hero__copy h1::after { top: 50%; width: 20px; height: 28px; transform: translateY(-50%); }
.lesson-two-page .lesson-two-hero .lower-story-hero__copy h1::before { left: -30px; }
.lesson-two-page .lesson-two-hero .lower-story-hero__copy h1::after { right: -30px; }
.lesson-two-page:not(.lesson-two-page--1) .lesson-two-hero .lower-story-hero__description > p { text-align: center; }
@media (min-width: 1201px) {
  .lesson-two-page .lesson-two-hero .lower-story-hero__copy { padding: 25px 68px 23px; }
  .lesson-two-page .lesson-two-hero .lower-story-hero__copy h1 { width: fit-content; max-width: 100%; margin-inline: auto; translate: 0 -18px; }
  .lesson-two-page .lesson-two-hero .lower-story-hero__description { translate: 0 -18px; }
  .lesson-two-page .lesson-two-hero .lower-story-hero__decoration--left { width: 110px; left: -32px; translate: 0 20px; }
  .lesson-two-page .lesson-two-hero .lower-story-hero__decoration--right { width: 100px; right: -4px; top: calc(50% + 32px); translate: 0 -24px; }
}
@media (min-width: 768px) and (max-width: 1200px) {
  .lesson-two-page .lesson-two-hero .lower-story-hero__copy h1 { width: fit-content; max-width: 100%; margin-inline: auto; font-size: 28px; line-height: 33.8px; }
  .lesson-two-page .lesson-two-hero .lower-story-hero__description > p { font-size: 16px; line-height: 21.75px; width: 85.333333%; }
  .lesson-two-page .lesson-two-hero .lower-story-hero__decoration--left { width: 70px; left: -33px; top: calc(50% - 6px); }
  .lesson-two-page .lesson-two-hero .lower-story-hero__decoration--right { width: 60px; right: -18px; top: calc(50% - 2px); }
  .lesson-two-page .lesson-two-hero .lower-story-hero__copy h1::before,
  .lesson-two-page .lesson-two-hero .lower-story-hero__copy h1::after { width: 16px; height: 24px; }
  .lesson-two-page .lesson-two-hero .lower-story-hero__copy h1::before { left: -24px; }
  .lesson-two-page .lesson-two-hero .lower-story-hero__copy h1::after { right: -24px; }
}
@media (max-width: 767px) {
  .lesson-two-page .lesson-two-hero .lower-story-hero__copy h1::before,
  .lesson-two-page .lesson-two-hero .lower-story-hero__copy h1::after { display: block; width: 10px; height: 15px; }
  .lesson-two-page .lesson-two-hero .lower-story-hero__copy h1::before { left: 4px; }
  .lesson-two-page .lesson-two-hero .lower-story-hero__copy h1::after { right: 4px; }
}
.lesson-two-board { background: #fff; border-radius: 26px; padding: 22px 30px 26px; }
.lesson-two-band { width: fit-content; max-width: 100%; margin: -12px auto 18px; padding: 8px 34px; background: #064da8; color: #fff; font-size: 25px; line-height: 1.4; text-align: center; clip-path: polygon(0 0,100% 0,98% 50%,100% 100%,0 100%,2% 50%); }
.lesson-two-band--purple { background: #614093; margin: 16px auto; }
.lesson-two-lead { margin: -8px 0 16px; font-size: 14px; line-height: 1.6; text-align: center; }
.lesson-two-grid { display: grid; gap: 14px; }
.lesson-two-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lesson-two-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lesson-two-grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lesson-two-card { --card-color: #643996; min-width: 0; padding: 14px 12px 12px; border: 2px solid #e3dbf4; border-radius: 19px; background: #f9f7fc; text-align: center; }
.lesson-two-card:nth-child(2) { --card-color: #078148; background: #f8faf5; border-color: #e4eedc; }
.lesson-two-card:nth-child(3) { --card-color: #b85d08; background: #fffbf3; border-color: #ffe7c2; }
.lesson-two-card:nth-child(4), .lesson-two-card--pink { --card-color: #ff5079; background: #fff5f5; border-color: #ffdcd9; }
.lesson-two-card h3 { color: var(--card-color); font-size: 19px; line-height: 1.5; margin: 0 0 8px; }
.lesson-two-card h3 b { display: inline-grid; width: 28px; height: 28px; margin-right: 8px; color: #fff; background: var(--card-color); border-radius: 50%; place-items: center; line-height: 1; }
.lesson-two-card > img { display: block; width: 150px; max-width: 100%; height: 130px; margin: 0 auto 7px; object-fit: contain; }
.lesson-two-card p { margin: 4px 0 0; font-size: 14px; line-height: 1.7; }
.lesson-two-grid--bedtime { max-width: 900px; margin: auto; grid-template-columns: 1fr 1fr 1.12fr; align-items: stretch; }
.lesson-two-grid--bedtime .lesson-two-card { padding: 8px 12px; }
.lesson-two-grid--bedtime .lesson-two-card h3 { font-size: 16px; }
.lesson-two-grid--bedtime .lesson-two-card > img { height: 100px; }
.lesson-two-page .lesson-two-time-point { border-color: #87c9a4; padding: 22px 16px 14px; }
.lesson-two-page .lesson-two-time-point h2 { position: static; color: #088449; background: none; padding: 0; font-size: 21px; }
.lesson-two-page .lesson-two-time-point ul { font-size: 15px; }
.lesson-two-page .lesson-two-time-point li::before { content: none; }
.lesson-two-page .lesson-two-time-point li strong { color: #088449; }
.lesson-two-flow > img { width: 215px; height: 140px; }
.lesson-two-flow h3 { font-size: 21px; }
.lesson-two-flow ol { margin: 0; padding: 0; list-style: none; }
.lesson-two-flow li { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 14px; padding: 5px 8px; border: 2px solid color-mix(in srgb, var(--card-color) 25%, white); border-radius: 14px; background: rgb(255 255 255 / 70%); font-size: 16px; line-height: 1.5; }
.lesson-two-flow li:first-child { margin-top: 0; }
.lesson-two-flow li + li::before { content: ''; position: absolute; top: -15px; left: calc(50% - 7px); width: 14px; height: 14px; background: var(--card-color); clip-path: polygon(30% 0,70% 0,70% 48%,100% 48%,50% 100%,0 48%,30% 48%); }
.lesson-two-flow li:last-child { min-height: 80px; color: var(--card-color); font-size: 20px; }
.lesson-two-flow li img { width: 60px; height: 75px; object-fit: contain; flex-shrink: 0; margin-right: 8px; }
.lesson-two-flow__body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.lesson-two-flow__body > img { width: 100%; height: auto; object-fit: contain; }
.lesson-two-flow--side li { font-size: 14px; min-height: 74px; padding: 4px; }
.lesson-two-flow--side li:last-child { font-size: 14px; }
.lesson-two-flow--side li img { width: 44px; height: 65px; margin-right: 3px; }
.lesson-two-sequence { background: #f9f7fe; border: 2px solid #e8dff8; border-radius: 22px; gap: 0; }
.lesson-two-sequence .lesson-two-card { background: none; border: 0; padding: 16px 8px 12px; }
.lesson-two-sequence .lesson-two-card h3 { color: #6137a0; font-size: 21px; }
.lesson-two-sequence .lesson-two-card > img { width: 190px; height: 220px; }
.lesson-two-solutions { display: grid; grid-template-columns: 95px minmax(0, 1fr); margin-top: 22px; gap: 10px; padding-right: 250px; }
.lesson-two-solutions > h2 { color: #fff; background: #ff6482; border-radius: 50%; padding: 25px 10px; margin: 60px -10px auto -25px; font-size: 25px; text-align: center; }
.lesson-two-solutions .lesson-two-card { background: #fffaf8; border-color: #ffe2e3; padding: 12px; }
.lesson-two-solutions .lesson-two-card h3 { color: #ff5b77; font-size: 19px; }
.lesson-two-solutions .lesson-two-card > img { height: 120px; width: 170px; }
.lesson-two-solutions .lesson-two-card p { font-size: 14px; text-align: left; }
.lesson-two-page--5 .lesson-two-footer { margin-top: -180px; min-height: 180px; pointer-events: none; }
.lesson-two-page--5 .lesson-two-footer > * { pointer-events: auto; }
.lesson-two-page--5 .lesson-two-footer .lesson-two-guide { margin-left: auto; max-width: 250px; }
.lesson-two-summary { padding-top: 14px; }
.lesson-two-summary > h2 { color: #2a38b0; text-align: center; font-size: 23px; margin: 0 0 8px; }
.lesson-two-summary > .lesson-two-grid--five { border: 2px solid #8ad8ff; border-radius: 28px; padding: 12px 4px; gap: 0; }
.lesson-two-summary .lesson-two-card { background: none; border: 0; border-radius: 0; padding: 0 7px; }
.lesson-two-summary .lesson-two-card + .lesson-two-card { border-left: 2px solid #efedfc; }
.lesson-two-summary .lesson-two-card h3 { font-size: 22px; }
.lesson-two-summary .lesson-two-card > img { height: 80px; width: 95px; margin-bottom: 2px; }
.lesson-two-summary .lesson-two-card p { font-size: 14px; }
.lesson-two-summary > .lesson-two-pink-heading { color: #fb5977; margin: 10px 0; }
.lesson-two-promises { gap: 6px; }
.lesson-two-promise { display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: #fffcfa; border: 2px solid #e9e4fa; border-radius: 14px; }
.lesson-two-promise > img { width: 75px; height: 85px; object-fit: contain; flex-shrink: 0; }
.lesson-two-promise > div { flex: 1; text-align: center; }
.lesson-two-promise h3 { color: #3547c1; font-size: 15px; margin: 0 0 5px; line-height: 1.4; }
.lesson-two-promise p { font-size: 14px; margin: 0; line-height: 1.5; }
.lesson-two-footer { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; min-height: 130px; padding-bottom: 45px; }
.lesson-two-footer > .lower-story-point { width: 59%; border-color: #64c9ff; padding: 25px 24px 16px; }
.lesson-two-page .lesson-two-footer-point h2 { position: static; background: none; padding: 0; margin: -10px 0 8px; color: #075a9e; font-size: 23px; }
.lesson-two-page .lesson-two-footer-point li { font-size: 16px; }
.lesson-two-page .lesson-two-footer-point li::before { content: none; }
.lesson-two-page--4 .lesson-two-footer-point { padding-right: 180px; }
.lesson-two-rest { position: absolute; width: 155px; height: auto; left: calc(59% - 165px); top: 20px; }
.lesson-two-guide { display: flex; align-items: center; min-width: 0; gap: 8px; }
.lesson-two-guide > img { width: 110px; max-height: 155px; object-fit: contain; }
.lesson-two-guide > p { margin: 0; padding: 18px 24px; background: #fff; border: 2px solid #a9d8f2; border-radius: 50%; text-align: center; line-height: 1.6; font-size: 17px; }
.lesson-two-guide--overview > p { border-radius: 20px; border-color: #ffe0a0; font-size: 16px; padding: 16px 20px; overflow-wrap: anywhere; }
.lesson-two-next { display: flex; align-items: center; justify-content: center;}
.lesson-two-next > span { display: grid; place-items: center; flex-shrink: 0;}
.lesson-two-footer > .lesson-two-next { position: absolute; bottom: 0; right: 0;}
.lesson-two-family { display: flex; align-items: center; gap: 18px; width: 46%; background: #fffaf0; border-radius: 20px; padding: 8px 12px; }
.lesson-two-family > img { width: 42%; height: auto; }
.lesson-two-family h2, .lesson-two-rule h2 { color: #283ecc; margin: 0 0 7px; font-size: 19px; line-height: 1.45; }
.lesson-two-family p, .lesson-two-rule p { margin: 0; font-size: 14px; line-height: 1.6; text-align: center; }
.lesson-two-rule { position: relative; width: 24%; padding: 16px 70px 16px 12px; background: #f1f9ff; border: 1px solid #a3d7ff; border-radius: 18px; }
.lesson-two-rule h2 { font-size: 15px; white-space: nowrap; }
.lesson-two-rule > img { position: absolute; right: 8px; bottom: 10px; width: 58px; height: auto; }
.lesson-two-page--6 .lesson-two-footer { gap: 10px; padding-bottom: 15px; }
.lesson-two-page--6 .lesson-two-guide { flex: 1; align-self: flex-start; }
.lesson-two-page--6 .lesson-two-guide > img { width: 90px; }
.lesson-two-page--6 .lesson-two-guide > p { font-size: 12px; padding: 12px 10px; }
/* On PC the single scene image stays intact, with static HTML explanations. */
.lesson-two-scenes { position: relative; }
.lesson-two-scenes__overview { display: block; width: 100%; height: auto; }
.lesson-two-page--1 .lesson-two-scenes__overview { aspect-ratio: 3 / 1; object-fit: cover; object-position: top; }
.lesson-two-scene__crop { display: none; }
.lesson-two-scene { position: absolute; width: 10.5%; font-size: clamp(10px, .81vw, 12px); }
.lesson-two-scene--1 { left: 29%; top: 24%; }
.lesson-two-scene--2 { left: 54%; top: 24%; width: 13.5%; }
.lesson-two-scene--3 { right: 1.5%; top: 24%; }
.lesson-two-scene--4 { left: 24%; top: 66%; }
.lesson-two-scene--5 { left: 55%; top: 66%; width: 12.5%; }
.lesson-two-scene__explanation { background: #fffdfa; border: 2px solid #ff796c; border-radius: 9px; padding: 5px 6px; box-shadow: 0 2px 2px rgb(0 0 0 / 8%); }
.lesson-two-scene.is-good .lesson-two-scene__explanation { border-color: #38a878; }
.lesson-two-scene h3 { display: flex; align-items: center; gap: 4px; color: #ff413d; font-size: inherit; line-height: 1.4; margin: 0; }
.lesson-two-scene.is-good h3 { color: #008c55; }
.lesson-two-scene h3 b { font-size: 27px; line-height: 1; }
.lesson-two-scene p { margin: 3px 0 0; line-height: 1.45; }
/* Completion keeps its own static layout; no reveal or scoring hooks. */
.lesson-two-page .lesson-two-complete { min-height: 0; }
.lesson-two-clear { position: relative; z-index: 1; isolation: isolate; width: 68%; margin: 18px auto 0; padding: 35px 40px 60px; text-align: center; }
.lesson-two-clear::before { content: ''; position: absolute; z-index: -1; pointer-events: none; top: -20px; left: -7.5%; width: 115%; aspect-ratio: 2 / 1; background: url('../images/learning/lower/cloud-background-complete.png') center / contain no-repeat; }
.lesson-two-clear h1 { margin: 0; line-height: 1.35; }
.lesson-two-clear h1 > span { display: block; margin: -20px 0 20px; padding: 10px 20px; color: #fff; background: #fa253d; border-radius: 35% 35% 10px 10px / 50% 50% 10px 10px; font-size: 46px; text-shadow: 2px 3px #d9112b; }
.lesson-two-clear h1 > strong { display: block; color: #fa233c; font-size: clamp(80px, 6.4vw, 92px); line-height: 86.4px; text-shadow: 2px 4px #ffc1c7; }
.lesson-two-clear > p { margin: 15px 0 0; color: #111; font-size: 34px; line-height: 37.5px; }
.lesson-two-clear h1 > strong { translate: 0 12px; }
.lesson-two-clear > p { translate: 0 4px; }
.lesson-two-clear-stars { position: absolute; inset: 0; pointer-events: none; }
.lesson-two-clear-stars i { position: absolute; width: 24px; height: 36px; background: #ffd21e; clip-path: polygon(50% 0,65% 35%,100% 50%,65% 65%,50% 100%,35% 65%,0 50%,35% 35%); }
.lesson-two-clear-stars i:nth-child(1) { left: -4%; top: 40%; }
.lesson-two-clear-stars i:nth-child(2) { left: -2%; top: 52%; width: 42px; height: 66px; }
.lesson-two-clear-stars i:nth-child(3) { left: -5%; top: 70%; }
.lesson-two-clear-stars i:nth-child(4) { right: -4%; top: 42%; }
.lesson-two-clear-stars i:nth-child(5) { right: -2%; top: 58%; width: 42px; height: 66px; }
.lesson-two-clear-stars i:nth-child(6) { right: -5%; top: 77%; }
@media (max-width: 1200px) {
  .lesson-two-clear-stars i { width: 16px; height: 24px; }
  .lesson-two-clear-stars i:nth-child(2), .lesson-two-clear-stars i:nth-child(5) { width: 26px; height: 42px; }
}
@media (max-width: 767px) {
  .lesson-two-clear h1 > strong { translate: 0 4px; }
  .lesson-two-clear > p { translate: 0 2px; }
  .lesson-two-clear-stars i { width: 9px; height: 14px; }
  .lesson-two-clear-stars i:nth-child(2), .lesson-two-clear-stars i:nth-child(5) { width: 12px; height: 20px; }
  .lesson-two-clear-stars i:nth-child(-n+3) { left: 2%; }
  .lesson-two-clear-stars i:nth-child(n+4) { right: 2%; }
}
.lesson-two-complete-bottom { position: relative; display: grid; grid-template-columns: 31% 34% 35%; align-items: end; margin-top: -90px; min-height: 390px; }
.lesson-two-clear-boy { position: relative; z-index: 2; width: 100%; height: auto; }
.lesson-two-complete-guide { position: relative; padding-top: 230px; padding-bottom: calc(120px * 153 / 155); }
.lesson-two-complete-guide > img:first-child { width: 45%; height: auto; }
.lesson-two-complete-message { position: absolute; z-index: 2; top: 190px; left: 45%; right: 0; }
.lesson-two-complete-message > p { margin: 0; padding: 22px; background: #fff; border: 5px solid #c6e6a5; border-radius: 50%; font-size: 27px; line-height: 1.35; text-align: center; }
.lesson-two-clear-stamp { width: 120px; height: auto; margin-left: 8px; }
.lesson-two-complete-message > .lesson-two-clear-stamp { margin-top: -5px; }
.lesson-two-complete-next { position: relative; z-index: 3; }
.lesson-two-complete-next > img { width: 100%; height: auto; }
.lesson-two-complete-next .lesson-two-next { margin-top: 12px;}
@media (max-width: 1200px) {
  .lesson-two-page .lower-story-stage__inner { width: calc(100% - 32px); }
  .lesson-two-page .lower-story-hero { grid-template-columns: minmax(0, 1fr) 160px; }
  .lesson-two-page .lower-story-hero__copy { padding: 30px 45px 24px; }
  .lesson-two-page .lower-story-hero__guide > img { width: 140px; }
  .lesson-two-page .lower-story-hero__guide > p { right: 85px; width: 140px; font-size: 14px; }
  .lesson-two-page .lower-story-hero__decoration--left { left: -28px; width: 55px; }
  .lesson-two-page .lower-story-hero__decoration--right { right: -32px; width: 50px; }
  .lesson-two-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson-two-grid--five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lesson-two-promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson-two-board { padding-inline: 18px; }
  .lesson-two-flow--side .lesson-two-flow__body { grid-template-columns: 1fr; }
  .lesson-two-flow__body > img { max-height: 150px; }
  .lesson-two-solutions { padding-right: 0; }
  .lesson-two-solutions > h2 { margin-left: 0; }
  .lesson-two-page--5 .lesson-two-footer { margin-top: 18px; pointer-events: auto; }
  .lesson-two-family { width: 60%; }
  .lesson-two-rule { width: calc(40% - 10px); }
  .lesson-two-page--6 .lesson-two-footer { padding-bottom: 55px; }
  .lesson-two-clear { width: 85%; }
  .lesson-two-clear h1 > span { font-size: 34px; }
  .lesson-two-clear h1 > strong { font-size: clamp(60px, 8.3vw, 68px); line-height: 62.1px; }
  .lesson-two-clear > p { font-size: clamp(24px, 3.3vw, 27px); line-height: 30px; }
  .lesson-two-complete-message { top: 165px; }
  .lesson-two-complete-message > p { font-size: 20px; padding: 15px; }
}
@media (max-width: 1000px) {
  .lesson-two-page .lower-story-hero { grid-template-columns: minmax(0, 1fr) 120px; }
  .lesson-two-page .lower-story-hero__copy h1 { font-size: 26px; }
  .lesson-two-page .lower-story-hero__guide > p { position: static; width: auto; padding: 12px 6px; font-size: 14px; }
  .lesson-two-page .lower-story-hero__guide { flex-direction: column; align-items: center; }
  .lesson-two-page .lower-story-hero__guide > img { width: 110px; max-height: 155px; }
  .lesson-two-grid--three { grid-template-columns: 1fr; }
  .lesson-two-solutions .lesson-two-grid,
.lesson-two-flows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lesson-two-flow h3 { font-size: 17px; }
  .lesson-two-flow li, .lesson-two-flow li:last-child { font-size: 14px; }
  .lesson-two-flow li:last-child { flex-wrap: wrap; }
  .lesson-two-grid--bedtime { grid-template-columns: 1fr 1fr; }
  .lesson-two-time-point { grid-column: 1 / -1; }
  .lesson-two-footer > .lower-story-point { width: 100%; }
  .lesson-two-page--4 .lesson-two-rest { left: auto; right: 20px; }
}
@media (max-width: 1100px) {
  /* Reuse the full source image inside five viewports; never distort it. */
  .lesson-two-scenes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .lesson-two-scenes__overview { display: none; }
  .lesson-two-scene { position: static; width: auto; font-size: 16px; background: #fff; border: 1px solid #d0e3ed; border-radius: 14px; overflow: hidden; }
  .lesson-two-scene--2, .lesson-two-scene--5 { width: auto; }
  .lesson-two-scene__crop { position: relative; display: block; width: 100%; overflow: hidden; aspect-ratio: 794 / 345; }
  .lesson-two-scene__crop > img { position: absolute; max-width: none; height: auto; width: 255.9194%; left: -1.0076%; top: -3.4783%; }
  .lesson-two-scene--2 .lesson-two-scene__crop { aspect-ratio: 556 / 345; }
  .lesson-two-scene--2 .lesson-two-scene__crop > img { width: 365.4676%; left: -146.0432%; top: -3.4783%; }
  .lesson-two-scene--3 .lesson-two-scene__crop { aspect-ratio: 644 / 656; }
  .lesson-two-scene--3 .lesson-two-scene__crop > img { width: 315.5280%; left: -214.2857%; top: -1.8293%; }
  .lesson-two-scene--4 .lesson-two-scene__crop { aspect-ratio: 734 / 301; }
  .lesson-two-scene--4 .lesson-two-scene__crop > img { width: 276.8392%; left: -1.0899%; top: -121.9269%; }
  .lesson-two-scene--5 .lesson-two-scene__crop { aspect-ratio: 616 / 301; }
  .lesson-two-scene--5 .lesson-two-scene__crop > img { width: 329.8701%; left: -122.0779%; top: -121.9269%; }
  .lesson-two-scene__explanation { border-width: 0; border-top-width: 2px; border-radius: 0; padding: 12px 16px; box-shadow: none; }
  .lesson-two-scene p br { display: none; }
}
/* Two-column scenes: cover equal 3:2 frames using regions of the 2032x774 source. */
@media (min-width: 768px) and (max-width: 1100px) {
  .lesson-two-page--1 .lesson-two-scene__crop {
    --scene-view-width: 517.5;
    --scene-view-height: 345;
    --scene-center-x: 405;
    --scene-top: 12;
    aspect-ratio: 3 / 2;
  }
  .lesson-two-page--1 .lesson-two-scene__crop > img {
    width: calc(100% * 2032 / var(--scene-view-width));
    left: calc(50% - 100% * var(--scene-center-x) / var(--scene-view-width));
    top: calc(-100% * var(--scene-top) / var(--scene-view-height));
  }
  .lesson-two-page--1 .lesson-two-scene--2 .lesson-two-scene__crop { --scene-center-x: 1090; }
  .lesson-two-page--1 .lesson-two-scene--3 .lesson-two-scene__crop {
    --scene-view-width: 644;
    --scene-view-height: 429.333333;
    --scene-center-x: 1702;
    --scene-top: 122;
  }
  .lesson-two-page--1 .lesson-two-scene--4 .lesson-two-scene__crop {
    --scene-view-width: 451.5;
    --scene-view-height: 301;
    --scene-center-x: 375;
    --scene-top: 367;
  }
  .lesson-two-page--1 .lesson-two-scene--5 .lesson-two-scene__crop {
    --scene-view-width: 451.5;
    --scene-view-height: 301;
    --scene-center-x: 1060;
    --scene-top: 367;
  }
}
@media (max-width: 767px) {
  .lesson-two-page .lower-story-stage__inner { width: calc(100% - 24px); }
  .lesson-two-page .lower-story-hero { grid-template-columns: minmax(0, 1fr); margin-top: 24px; gap: 10px; }
  .lesson-two-page .lower-story-hero__copy { padding: 35px 18px 18px; }
  .lesson-two-page .lesson-two-hero .lower-story-hero__copy > span { width: 122px; height: 61px; font-size: 18px; top: -9px; }
  .lesson-two-page .lower-story-hero__copy h1 { font-size: 26px; line-height: 34.8px; margin-bottom: 12px; }
  .lesson-two-page .lower-story-hero__copy h1::before, .lesson-two-page .lower-story-hero__copy h1::after { display: none; }
  .lesson-two-page .lower-story-hero__copy--illustrated .lower-story-hero__description { position: static; padding-bottom: 45px; }
  .lesson-two-page .lower-story-hero__copy--illustrated .lower-story-hero__description > p { width: 100%; font-size: 16.5px; line-height: 26.4px; letter-spacing: -.5px; }
  .lesson-two-page .lower-story-hero__copy p br { display: none; }
  .lesson-two-page .lower-story-hero__decoration { width: 44px; left: 24%; right: auto; bottom: 18px; }
  .lesson-two-page .lower-story-hero__decoration--left { bottom: 26px; }
  .lesson-two-page .lower-story-hero__decoration--right { left: auto; right: 24%; }
  .lesson-two-page--1 .lesson-two-hero .lower-story-hero__decoration--right { display: block; }
  .lesson-two-page .lower-story-hero__guide { grid-column: 1; flex-direction: row-reverse; justify-content: center; align-items: center; gap: 12px; padding-bottom: 12px; }
  .lesson-two-page .lower-story-hero__guide > p { display: block; font-size: 15px; padding: 13px 22px; }
  .lesson-two-page .lower-story-hero__guide > img { width: 85px; max-height: 130px; }
  .lesson-two-page--5 .lesson-two-hero .lower-story-hero__guide > img { top: 20px; left: calc(min(195px, 100vw - 145px) + 12px); }
  .lesson-two-page--5 .lesson-two-hero .lower-story-hero__guide > p { position: relative; top: -12px; left: -97px; width: min(195px, 100vw - 145px); height: auto; padding: 13px 18px; line-height: 1.65; }
  .lesson-two-page--1 .lower-story-hero__guide > img { width: 85px; max-height: 130px; }
  .lesson-two-page--1 .lesson-two-hero .lower-story-hero__guide > p { position: relative; top: 0; right: auto; left: auto; width: 199px; height: 126px; padding: 26px 14px; font-size: 15px; }
  .lesson-two-page--1 .lesson-two-hero .lower-story-hero__guide > p::before { transform: scaleX(-1); }
  .lesson-two-board { padding: 20px 12px; border-radius: 20px; }
  .lesson-two-band { font-size: 19px; padding-inline: 20px; margin-top: -8px; }
  .lesson-two-lead { font-size: 16px; text-align: left; }
  .lesson-two-scenes, .lesson-two-grid--three, .lesson-two-grid--four, .lesson-two-grid--five, .lesson-two-grid--bedtime, .lesson-two-promises { grid-template-columns: 1fr; }
  .lesson-two-scene--3 .lesson-two-scene__crop { max-height: none; }
  .lesson-two-scene h3 { font-size: 17px; }
  .lesson-two-card h3, .lesson-two-flow h3 { font-size: 20px; }
  .lesson-two-card p, .lesson-two-grid--bedtime .lesson-two-card p { font-size: 16px; }
  .lesson-two-card > img { width: 160px; height: 145px; }
  .lesson-two-flow > img { height: 160px; width: 240px; }
  .lesson-two-flow li, .lesson-two-flow li:last-child { font-size: 17px; }
  .lesson-two-flow--side .lesson-two-flow__body { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
  .lesson-two-flow--side li, .lesson-two-flow--side li:last-child { font-size: 15px; }
  .lesson-two-sequence .lesson-two-card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .lesson-two-page--5 .lesson-two-sequence .lesson-two-card + .lesson-two-card { position: relative; margin-top: 36px; border-top: 0; }
  .lesson-two-page--5 .lesson-two-sequence .lesson-two-card + .lesson-two-card::before {
    content: '';
    position: absolute;
    top: -34px;
    left: 50%;
    width: 32px;
    height: 32px;
    background: url('../images/learning/lower/lesson2/lesson2-5/lesson2-5_arrow_downward.svg') center / contain no-repeat;
    transform: translateX(-50%);
    pointer-events: none;
  }
  .lesson-two-sequence .lesson-two-card > img { height: 170px; }
  .lesson-two-solutions,
.lesson-two-solutions .lesson-two-grid { grid-template-columns: 1fr; }
  .lesson-two-solutions > h2 { width: fit-content; margin: 0 auto; padding: 8px 25px; font-size: 22px; }
  .lesson-two-solutions .lesson-two-card h3 { font-size: 20px; }
  .lesson-two-solutions .lesson-two-card p { font-size: 16px; text-align: center; }
  .lesson-two-summary .lesson-two-card { padding: 12px; }
  .lesson-two-summary .lesson-two-card + .lesson-two-card { border-left: 0; border-top: 2px solid #efedfc; }
  .lesson-two-summary .lesson-two-card p { font-size: 16px; }
  .lesson-two-promise h3 { font-size: 17px; }
  .lesson-two-promise p { font-size: 16px; }
  .lesson-two-footer { display: flex; flex-direction: column; align-items: stretch; padding-bottom: 0; }
  .lesson-two-footer > .lower-story-point { width: 100%; padding: 20px 16px; }
  .lesson-two-page .lesson-two-footer-point h2 { font-size: 21px; }
  .lesson-two-page .lesson-two-footer-point li { font-size: 16px; }
  .lesson-two-page--4 .lesson-two-footer { display: grid; grid-template-columns: minmax(0, 1fr); }
  .lesson-two-page--4 .lesson-two-footer-point { grid-row: 1; grid-column: 1; padding-right: 16px; padding-bottom: 135px; }
  .lesson-two-page--4 .lesson-two-rest { position: relative; inset: auto; z-index: 1; grid-row: 1; grid-column: 1; justify-self: end; align-self: end; width: 155px; margin: 0 16px 14px; }
  .lesson-two-guide { justify-content: center; }
  .lesson-two-guide > img { width: 90px; max-height: 130px; }
  .lesson-two-guide > p { padding: 15px; font-size: 16px; }
  .lesson-two-guide--overview > p { padding: 15px; font-size: 14px; }
  .lesson-two-footer > .lesson-two-next { position: static; margin: 10px auto 0;}
  .lesson-two-page--5 .lesson-two-footer { min-height: 0; }
  .lesson-two-page--5 .lesson-two-footer .lesson-two-guide { margin: auto; max-width: none; }
  .lesson-two-family, .lesson-two-rule { width: 100%; }
  .lesson-two-family { gap: 10px; padding: 14px 10px; }
  .lesson-two-family h2 { font-size: 16px; }
  .lesson-two-family p { font-size: 15px; }
  .lesson-two-rule h2 { font-size: 18px; white-space: normal; }
  .lesson-two-rule p { font-size: 16px; }
  .lesson-two-page--6 .lesson-two-footer { padding-bottom: 0; }
  .lesson-two-page--6 .lesson-two-guide > p { font-size: 15px; }
  .lesson-two-clear { width: 100%; margin-top: 24px; padding: 25px 18px 35px; }
  .lesson-two-clear::before { top: 25px; bottom: 0; left: 0; width: 100%; aspect-ratio: auto; background-size: cover; }
  .lesson-two-clear h1 > span { font-size: 25px; padding: 10px 5px; margin: -5px 0 15px; }
  .lesson-two-clear h1 > strong { font-size: 37px; line-height: 44.55px; }
  .lesson-two-clear > p { font-size: 19px; line-height: 28.9px; }
  .lesson-two-clear > p br { display: none; }
  .lesson-two-complete-bottom { grid-template-columns: 1fr; margin-top: 0; min-height: 0; gap: 18px; }
  .lesson-two-clear-boy { width: 210px; margin: auto; }
  .lesson-two-complete-guide { padding-top: 0; padding-bottom: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
  .lesson-two-complete-guide > img:first-child { width: 95px; }
  .lesson-two-complete-message { position: static; width: calc(100% - 103px); }
  .lesson-two-complete-message > p { font-size: 21px; padding: 15px 18px; }
  .lesson-two-clear-stamp { width: 75px; margin: 0; }
  .lesson-two-complete-next { max-width: 430px; margin: auto; }
}

/* Mobile cloud marks only: use side space when the unchanged text leaves room. */
@media (min-width: 672px) and (max-width: 767px) {
  .lesson-two-page:not(.lesson-two-page--2) .lesson-two-hero .lower-story-hero__decoration {
    top: 82px;
    bottom: auto;
    width: 48px;
  }
  .lesson-two-page:not(.lesson-two-page--2) .lesson-two-hero .lower-story-hero__decoration--left {
    left: 14%;
    transform: translate(-50%, -50%);
  }
  .lesson-two-page:not(.lesson-two-page--2) .lesson-two-hero .lower-story-hero__decoration--right {
    right: 14%;
    transform: translate(50%, -50%);
  }
  /* Page 3 leaves side space beside its short final line. */
  .lesson-two-page.lesson-two-page--3 .lesson-two-hero .lower-story-hero__decoration { top: calc(100% - 63px); }
}
/* Page 2's longer final line needs a wider cloud before its marks can move to the sides. */
@media (min-width: 736px) and (max-width: 767px) {
  .lesson-two-page.lesson-two-page--2 .lesson-two-hero .lower-story-hero__decoration { top: calc(100% - 63px); bottom: auto; width: 48px; }
  .lesson-two-page.lesson-two-page--2 .lesson-two-hero .lower-story-hero__decoration--left { left: 14%; transform: translate(-50%, -50%); }
  .lesson-two-page.lesson-two-page--2 .lesson-two-hero .lower-story-hero__decoration--right { right: 14%; transform: translate(50%, -50%); }
}

/* Page 5 explanation cards and the adjacent next-page guide only. */
.lesson-two-page--5 .lesson-two-solutions { grid-template-columns: 65px minmax(0, 1fr); gap: 8px; padding-right: 320px; }
.lesson-two-page--5 .lesson-two-solutions > h2 { position: relative; isolation: isolate; width: 110px; height: 80px; display: grid; place-items: center; margin: 45px -25px 0 -30px; padding: 0; background: transparent; border-radius: 0; font-size: 24px; }
.lesson-two-page--5 .lesson-two-solutions > h2::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 90'%3E%3Cpath d='M15 25 C10 0 40 -3 52 12 C70 -9 94 0 96 15 C120 14 125 45 105 60 C108 79 80 91 65 77 C40 95 8 80 12 60 C-5 51 -2 33 15 25Z' fill='%23ff6482'/%3E%3C/svg%3E") center / contain no-repeat; }
.lesson-two-page--5 .lesson-two-solutions .lesson-two-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lesson-two-page--5 .lesson-two-solutions .lesson-two-card { padding: 12px 10px; border-radius: 14px; }
.lesson-two-page--5 .lesson-two-solutions .lesson-two-card h3 { min-height: 57px; margin-bottom: 5px; text-align: center; }
.lesson-two-page--5 .lesson-two-solutions .lesson-two-card > img { width: 170px; height: 110px; }
.lesson-two-page--5 .lesson-two-solutions .lesson-two-card p { text-align: left; line-height: 1.6; }
.lesson-two-page--5 .lesson-two-limit-card__visual { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: center; gap: 8px; min-height: 117px; max-width: 400px; margin-inline: auto; }
.lesson-two-page--5 .lesson-two-limit-card__visual > img { width: 100%; height: 105px; object-fit: contain; }
.lesson-two-page--5 .lesson-two-solutions .lesson-two-card .lesson-two-limit-card__bubble { position: relative; margin: 0; padding: 8px 5px; border: 1px solid #b6def6; border-radius: 18px; background: #fff; text-align: center; font-size: 12px; line-height: 1.5; }
.lesson-two-page--5 .lesson-two-limit-card__bubble::before { content: ''; position: absolute; top: 45%; left: -14px; border: 7px solid transparent; border-right-color: #b6def6; }
.lesson-two-page--5 .lesson-two-limit-card__bubble::after { content: ''; position: absolute; top: 45%; left: -12px; border: 7px solid transparent; border-right-color: #fff; }
.lesson-two-page--5 .lesson-two-footer .lesson-two-guide { flex-direction: row-reverse; max-width: none; width: 100%; margin: 0; gap: 8px; }
.lesson-two-page--5 .lesson-two-footer .lesson-two-guide > img { flex: 0 0 auto; width: 110px; max-height: 155px; }
.lesson-two-page--5 .lesson-two-footer .lesson-two-guide > p { position: relative; flex: 0 0 auto; width: 180px; margin: 0; padding: 20px 12px; isolation: isolate; background: transparent; border-color: transparent; font-size: 17px; line-height: 1.6; white-space: nowrap; }
.lesson-two-page--5 .lesson-two-footer .lesson-two-guide > p::before { content: ''; position: absolute; inset: -2px; z-index: -1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 126'%3E%3Cpath d='M178 63 C178 23 139 2 90 2 C41 2 2 23 2 63 C2 103 41 124 90 124 C116 124 139 118 155 108 L174 116 L166 98 C174 88 178 76 178 63Z' fill='white' stroke='%23a9d8f2' stroke-width='2'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.lesson-two-page--5 .lesson-two-footer .lesson-two-guide > p::after { content: none; }
.lesson-two-page--5 .lesson-two-footer > .lesson-two-next { position: static; margin: 0;}
@media (min-width: 1201px) {
  .lesson-two-page--5 .lower-story-stage__inner { position: relative; }
  .lesson-two-page--5 .lesson-two-footer { position: absolute; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 310px; min-height: 0; margin: 0; padding: 0; }
}
@media (max-width: 1200px) {
  .lesson-two-page--5 .lesson-two-solutions { padding-right: 0; }
  .lesson-two-page--5 .lesson-two-solutions > h2 { margin-left: 0; }
  .lesson-two-page--5 .lesson-two-footer { margin-top: 18px; min-height: 0; padding: 0; flex-direction: column; }
  .lesson-two-page--5 .lesson-two-footer .lesson-two-guide { width: 310px; margin-inline: auto; }
}
@media (max-width: 1000px) {
  .lesson-two-page--5 .lesson-two-solutions { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .lesson-two-page--5 .lesson-two-solutions > h2 { width: 100px; height: 70px; margin: 0 0 -25px; z-index: 1; }
  .lesson-two-page--5 .lesson-two-solutions .lesson-two-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .lesson-two-page--5 .lesson-two-solutions .lesson-two-card h3 { min-height: 0; margin-bottom: 8px; }
  .lesson-two-page--5 .lesson-two-solutions .lesson-two-card:first-child { padding-top: 24px; }
  .lesson-two-page--5 .lesson-two-solutions .lesson-two-card > img { height: 120px; }
  .lesson-two-page--5 .lesson-two-solutions .lesson-two-card .lesson-two-limit-card__bubble { font-size: 14px; }
}
@media (max-width: 767px) {
  .lesson-two-page--5 .lesson-two-solutions .lesson-two-card > p { text-align: center; }
  .lesson-two-page--5 .lesson-two-footer .lesson-two-guide { max-width: 100%; }
  .lesson-two-page--5 .lesson-two-footer .lesson-two-guide > img { width: 95px; max-height: 135px; }
  .lesson-two-page--5 .lesson-two-footer .lesson-two-guide > p { width: 180px; padding: 18px 10px; font-size: 16px; }
  .lesson-two-page--5 .lesson-two-footer > .lesson-two-next { margin: 0;}
}

/* Opening-page answers and hit areas retain the existing scene artwork/layout. */
.lesson-two-page--1 .lesson-two-scene__explanation[hidden] { display: none; }
.lesson-two-page--1 .lesson-two-scene-targets { position: absolute; inset: 0; z-index: 1; }
.lesson-two-page--1 .lesson-two-scene-target { position: absolute; display: block; border: 0; border-radius: 12px; padding: 0; background: transparent; box-shadow: none; cursor: pointer; }
.lesson-two-page--1 .lesson-two-scene-target--1 { left: 0.3937%; top: 1.7717%; width: 39.0748%; height: 50.9350%; }
.lesson-two-page--1 .lesson-two-scene-target--2 { left: 39.9606%; top: 1.7717%; width: 27.3622%; height: 50.9350%; }
.lesson-two-page--1 .lesson-two-scene-target--3 { left: 67.9134%; top: 1.7717%; width: 31.6929%; height: 96.8504%; }
.lesson-two-page--1 .lesson-two-scene-target--4 { left: 0.3937%; top: 54.1831%; width: 36.1220%; height: 44.4390%; }
.lesson-two-page--1 .lesson-two-scene-target--5 { left: 37.0079%; top: 54.1831%; width: 30.3150%; height: 44.4390%; }
.lesson-two-page--1 .lesson-two-scene__crop { padding: 0; border: 0; background: transparent; box-shadow: none; cursor: pointer; }
.lesson-two-page--1 .lesson-two-scene-target:focus-visible, .lesson-two-page--1 .lesson-two-scene__crop:focus-visible { outline: 3px solid #0065de; outline-offset: -3px; }
@media (min-width: 1101px) {
  .lesson-two-page--1 .lesson-two-scenes .lesson-two-scene { z-index: 2; pointer-events: none; }
}
@media (max-width: 1100px) {
  .lesson-two-page--1 .lesson-two-scene-targets { display: none; }
}

/* Reuse the matching completion artwork; retain HTML text and its flow height. */
.lesson-two-page--complete .lesson-two-clear::before { top: -75px; aspect-ratio: 910 / 574; background-image: url('../images/learning/lower/lesson2/lesson2-7/lesson2-7_hero.png'); background-size: contain; clip-path: inset(12% 0 0 0); }
.lesson-two-page--complete .lesson-two-clear > h1, .lesson-two-page--complete .lesson-two-clear > p { opacity: 0; pointer-events: none; }
.lesson-two-page--complete .lesson-two-clear-stars { display: none; }
@media (max-width: 767px) {
  .lesson-two-page--complete .lesson-two-clear::before { top: 0; bottom: auto; height: auto; aspect-ratio: 910 / 574; }
}

/* Keep the viewport width stable when the completion reveal locks scrolling. */
html:has(.lesson-two-page--complete) { scrollbar-gutter: stable; }

/* Page 6 family-to-rule invitation only; retain the adjacent guide and button. */
.lesson-two-page--6 .lesson-two-rule-invitation { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); align-items: stretch; gap: 4px; width: 76%; }
.lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-family { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; min-height: 200px; padding: 8px 48px 8px 8px; border: 2px solid #fff0c9; border-radius: 22px; background: #fffaf0; }
.lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-family > img { width: 100%; height: auto; object-fit: contain; }
.lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-family > div { min-width: 0; text-align: center; }
.lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-family h2 { margin: 0 0 8px; padding-bottom: 7px; border-bottom: 2px dotted #a3d7ff; font-size: 22px; line-height: 1.45; text-align: center; }
.lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-family p { font-size: 17px; line-height: 1.65; }
.lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-family::before { content: ''; position: absolute; right: 48px; top: calc(50% - 12px); width: 1px; height: 24px; background: #1748d9; box-shadow: 3px 0 #1748d9, 6px 0 #1748d9; pointer-events: none; }
.lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-family::after { content: ''; position: absolute; right: 1px; top: calc(50% - 24px); width: 48px; height: 48px; background: #1748d9; clip-path: polygon(20% 25%, 62% 25%, 62% 0, 100% 50%, 62% 100%, 62% 75%, 20% 75%); pointer-events: none; }
.lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-rule { display: grid; grid-template-columns: minmax(0, 1fr) 100px; grid-template-rows: auto 1fr; align-items: center; column-gap: 8px; row-gap: 8px; width: 100%; padding: 12px 10px; border: 2px solid #a3d7ff; border-radius: 22px; background: #f1f9ff; }
.lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-rule h2 { grid-column: 1 / -1; margin: 0; font-size: 18px; line-height: 1.5; text-align: center; white-space: normal; }
.lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-rule p { font-size: 15px; line-height: 1.75; text-align: left; }
.lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-rule > img { position: static; width: 100%; height: auto; object-fit: contain; }
@media (min-width: 1280px) {
  /* Add 32px to the left panel while retaining the right panel's original width. */
  .lesson-two-page--6 .lesson-two-rule-invitation { width: calc(76% + 32px); grid-template-columns: minmax(0, 1fr) minmax(0, calc((100% - 36px) / 3.15)); }
  .lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-family { padding-right: 80px; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .lesson-two-page--6 .lesson-two-rule-invitation { width: 100%; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
  .lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-family { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-family h2 { font-size: 18px; }
  .lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-family p { font-size: 15px; }
  .lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-rule { grid-template-columns: minmax(0, 1fr) 75px; }
  .lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-rule h2 { font-size: 16px; }
  .lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-rule p { font-size: 14px; }
}
@media (max-width: 767px) {
  .lesson-two-page--6 .lesson-two-rule-invitation { width: 100%; grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-family { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 12px; }
  .lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-family > img { width: min(280px, 100%); margin-inline: auto; }
  .lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-family h2 { font-size: 20px; }
  .lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-family::before { top: auto; bottom: -1px; left: calc(50% - 10px); right: auto; width: 20px; height: 1px; box-shadow: 0 3px #1748d9, 0 6px #1748d9; }
  .lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-family::after { top: auto; bottom: -40px; right: calc(50% - 20px); width: 40px; height: 40px; transform: rotate(90deg); }
  .lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-rule { grid-template-columns: minmax(0, 1fr) 100px; padding: 14px 12px; }
  .lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-rule h2 { font-size: 20px; }
  .lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-rule p { font-size: 16px; }
}

/* Completion characters reuse Lesson 3's shared motion and timing. */
.lesson-two-page--complete .lesson-two-clear-boy {
  transform-origin: 50% 100%;
  animation: lesson-complete-character-bounce 2.65s ease-in-out 2.4s infinite reverse;
}
.lesson-two-page--complete .lesson-two-complete-guide > img:first-child {
  transform-origin: 50% 100%;
  animation: lesson-complete-phone-sway 2.15s ease-in-out 2.3s infinite;
}
@media (prefers-reduced-motion: reduce) {
  .lesson-two-page--complete .lesson-two-clear-boy,
  .lesson-two-page--complete .lesson-two-complete-guide > img:first-child { animation: none; }
}

/* Completion only: reserve the cloud artwork's height before the mobile characters. */
@media (max-width: 1000px) {
  .lesson-two-page--complete .lesson-two-clear {
    width: 100%;
    max-width: 760px;
    margin: 24px auto 0;
    padding: 0;
    aspect-ratio: 910 / 505;
  }
  .lesson-two-page--complete .lesson-two-clear::before {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 910 / 574;
    background-size: contain;
  }
  .lesson-two-page--complete .lesson-two-clear > h1,
  .lesson-two-page--complete .lesson-two-clear > p {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
  }
  .lesson-two-page--complete .lesson-two-complete-bottom {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 20px;
    min-height: 0;
    gap: 24px;
  }
  .lesson-two-page--complete .lesson-two-clear-boy {
    width: min(62%, 280px);
    height: auto;
    margin: 0 auto;
  }
  .lesson-two-page--complete .lesson-two-complete-guide {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 10px 12px;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    padding: 0;
  }
  .lesson-two-page--complete .lesson-two-complete-guide > img:first-child {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: auto;
    align-self: end;
  }
  .lesson-two-page--complete .lesson-two-complete-message { display: contents; }
  .lesson-two-page--complete .lesson-two-complete-message > p {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    margin: 0;
    padding: 12px 10px;
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    line-height: 1.45;
  }
  .lesson-two-page--complete .lesson-two-complete-message > .lesson-two-clear-stamp {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    width: 75px;
    height: auto;
    margin: 0;
  }
  .lesson-two-page--complete .lesson-two-complete-next {
    width: 100%;
    max-width: 430px;
    min-width: 0;
    margin: 0 auto;
  }
  .lesson-two-page--complete .lesson-two-complete-next > img { display: block; width: 100%; height: auto; }
}

/* Mobile completion follows Lesson 3: child on the left, message/phone on the right. */
@media (max-width: 767px) {
  .lesson-two-page--complete .lesson-two-complete-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }
  .lesson-two-page--complete .lesson-two-clear-boy {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    margin: 0;
  }
  .lesson-two-page--complete .lesson-two-complete-guide {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    max-width: none;
    margin: 0;
  }
  .lesson-two-page--complete .lesson-two-complete-guide > img:first-child {
    grid-column: 1;
    grid-row: 2;
    width: 85%;
    justify-self: start;
    margin-left: 3%;
  }
  .lesson-two-page--complete .lesson-two-complete-message > p {
    grid-column: 1;
    grid-row: 1;
    padding: 8px 6px;
    border-width: 3px;
    font-size: clamp(.8125rem, 2.4vw, 1.125rem);
    text-wrap: balance;
  }
  .lesson-two-page--complete .lesson-two-complete-message > p > br { display: none; }
  .lesson-two-page--complete .lesson-two-complete-message > .lesson-two-clear-stamp {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    justify-self: end;
    width: clamp(32px, 10vw, 70px);
  }
  .lesson-two-page--complete .lesson-two-complete-next {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 88%;
    max-width: 640px;
  }
}

/* The guide now follows the STEP5 cards, so its old reserved column is unnecessary. */
.lesson-two-page--5 .lesson-two-solutions { padding-right: 0; }
.lesson-two-page--5 .lower-lesson-actions-flow .lesson-two-guide { justify-content: center; }

/* STEP6 recap: section / card / body hierarchy, with room for each illustration. */
.lesson-two-page--6 .lesson-two-summary > h2 { font-size: 24px; line-height: 1.4; margin-block: 8px 20px; }
.lesson-two-page--6 .lesson-two-summary > .lesson-two-pink-heading { margin-top: 32px; }
.lesson-two-page--6 .lesson-two-summary .lesson-two-card h3 { font-size: 20px; line-height: 1.45; margin-bottom: 12px; }
.lesson-two-page--6 .lesson-two-summary .lesson-two-card p { font-size: 18px; line-height: 1.7; }
.lesson-two-page--6 .lesson-two-summary > .lesson-two-grid--five { gap: 16px; padding: 20px 16px; }
.lesson-two-page--6 .lesson-two-promises { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lesson-two-page--6 .lesson-two-promise { align-items: center; padding: 18px; gap: 16px; }
.lesson-two-page--6 .lesson-two-promise > div { min-width: 0; text-align: left; }
.lesson-two-page--6 .lesson-two-promise h3 { font-size: 20px; line-height: 1.5; margin-bottom: 10px; }
.lesson-two-page--6 .lesson-two-promise p { font-size: 18px; line-height: 1.75; }
.lesson-two-page--6 .lesson-two-rule-invitation { gap: 24px; margin-top: 24px; }
.lesson-two-page--6 .lesson-two-family h2,
.lesson-two-page--6 .lesson-two-rule h2 { font-size: 22px; line-height: 1.5; margin-bottom: 14px; white-space: normal; }
.lesson-two-page--6 .lesson-two-family p,
.lesson-two-page--6 .lesson-two-rule p { font-size: 18px; line-height: 1.75; }
@media (max-width: 1000px) {
  .lesson-two-page--6 .lesson-two-summary > .lesson-two-grid--five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .lesson-two-page--6 .lesson-two-summary > h2 { font-size: 22px; }
  .lesson-two-page--6 .lesson-two-summary > .lesson-two-grid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson-two-page--6 .lesson-two-summary .lesson-two-card { border-left: 0; padding: 8px; }
  .lesson-two-page--6 .lesson-two-summary .lesson-two-card h3,
  .lesson-two-page--6 .lesson-two-promise h3 { font-size: 18px; }
  .lesson-two-page--6 .lesson-two-promises { grid-template-columns: minmax(0, 1fr); }
  .lesson-two-page--6 .lesson-two-summary .lesson-two-card p,
  .lesson-two-page--6 .lesson-two-promise p,
  .lesson-two-page--6 .lesson-two-family p,
  .lesson-two-page--6 .lesson-two-rule p { font-size: 16px; }
}

/* Invitation text has more specific legacy rules than the recap cards. */
.lesson-two-page--6 .lower-story-hero__copy h1 { font-size: 32px; line-height: 1.4; }
.lesson-two-page--6 .lower-story-hero__description > p { font-size: 18px; line-height: 1.75; }
.lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-family h2,
.lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-rule h2 { font-size: 22px; line-height: 1.5; margin-bottom: 14px; }
.lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-family p,
.lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-rule p { font-size: 18px; line-height: 1.75; }
.lesson-two-page--6 .lesson-two-footer > .lesson-two-guide p { font-size: 16px; line-height: 1.6; }
@media (max-width: 1200px) {
  .lesson-two-page--6 .lesson-two-rule-invitation { width: 100%; }
  .lesson-two-page--6 .lesson-two-footer > .lesson-two-guide { justify-content: center; }
}
@media (max-width: 767px) {
  .lesson-two-page--6 .lower-story-hero__copy h1 { font-size: 26px; }
  .lesson-two-page--6 .lower-story-hero__description > p,
  .lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-family p,
  .lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-rule p { font-size: 16px; }
  .lesson-two-page--6 .lesson-two-rule-invitation { gap: 48px; }
  .lesson-two-page--6 .lesson-two-footer > .lesson-two-guide p { font-size: 14px; }
}

/* Give the invitation illustration its own track rather than squeezing the prose beside it. */
.lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-rule { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; padding: 20px; }
.lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-rule > h2,
.lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-rule > p,
.lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-rule > img { grid-column: 1; grid-row: auto; }
.lesson-two-page--6 .lesson-two-rule-invitation .lesson-two-rule > img { width: 100px; justify-self: end; }
@media (max-width: 767px) {
  .lesson-two-page--6 .lesson-two-summary > .lesson-two-grid--five > .lesson-two-card:last-child { grid-column: 1 / -1; }
}
/* Opening Hero: use the shared reading and speech styles without legacy artwork. */
.lower-lesson-page.lesson-two-page--1 .lesson-two-hero .lower-story-hero__decoration--left { display: none; }
.lower-lesson-page.lesson-two-page--1 .lower-lesson-stage .lesson-two-hero.lower-story-hero--balanced .lower-story-hero__description > p {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
  font-size: var(--lower-reading-body);
  line-height: var(--lower-reading-leading);
}
.lower-lesson-page.lesson-two-page--1 .lesson-two-hero .lower-story-hero__description br { display: initial; }
.lower-lesson-page.lesson-two-page--1 .lower-lesson-stage .lesson-two-hero.lower-story-hero--balanced .lower-story-hero__guide {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.lower-lesson-page.lesson-two-page--1 .lower-lesson-stage .lesson-two-hero.lower-story-hero--balanced .lower-story-hero__guide > p {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0;
  padding: 22px 18px;
  white-space: normal;
}
.lower-lesson-page.lesson-two-page--1 .lesson-two-hero .lower-story-hero__guide > p::before { content: none; }
@media (max-width: 1024px) {
  .lower-lesson-page.lesson-two-page--1 .lower-lesson-stage .lesson-two-hero.lower-story-hero--balanced {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'copy' 'guide';
    gap: 18px;
  }
  .lower-lesson-page.lesson-two-page--1 .lower-lesson-stage .lesson-two-hero.lower-story-hero--balanced .lower-story-hero__guide {
    grid-area: guide;
    width: min(100%, 240px);
    justify-self: center;
  }
  .lower-lesson-page.lesson-two-page--1 .lesson-two-hero .lower-story-hero__description { padding-bottom: 0; }
}
