/* More town tasks stay a small, pictorial choice on each page. */
.library-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.compare-link {
  min-height: 44px;
  font-size: 13px;
  padding: 8px 14px;
}
.catalog-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 16px 0 4px;
}
.catalog-pager .button {
  min-height: 46px;
  min-width: 125px;
}
.catalog-pager > span {
  font-size: 14px;
  color: var(--muted);
  min-width: 55px;
  text-align: center;
}
.catalog-grid .course-choice {
  min-height: 200px;
  padding: 20px;
  gap: 18px;
}
.catalog-grid .course-art {
  width: 100px;
  height: 100px;
}
.catalog-grid .course-copy {
  gap: 7px;
}
.catalog-grid .course-copy > strong {
  font-size: 24px;
}
.catalog-grid .course-cta {
  min-height: 26px;
}
.library-heading {
  margin: 8px 0 18px;
}
.pair-preview {
  font: 48px/1.4 var(--book);
  white-space: nowrap;
  color: var(--green-dark);
}
.pair-letters {
  display: flex;
  justify-content: center;
  gap: 44px;
  align-items: center;
  margin: 8px 0 16px;
}
.compare-word {
  width: 240px;
  max-width: 42%;
  padding: 12px;
  border: 1px solid #ddd5bb;
  border-radius: 18px;
  background: #f4efde;
}
.compare-glyph {
  width: 100%;
  display: block;
  aspect-ratio: 1;
}
.compare-word > span {
  display: block;
  font-size: 17px;
  margin-top: 3px;
  min-height: 30px;
}
.comparison-text {
  max-width: 720px;
  margin: 15px auto 20px;
  text-align: center;
  font-size: 15px;
}
.compare-stage .button-row {
  justify-content: center;
}
.activity-scene {
  position: relative;
  height: 270px;
  max-width: 780px;
  margin: 0 auto;
  isolation: isolate;
}
.activity-word {
  position: absolute;
  left: 0;
  top: 0;
  font: 40px/1.1 var(--book);
  color: var(--green-dark);
  z-index: 2;
}
.ball-choice-row {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 28px;
  padding-bottom: 35px;
}
.scene-choice {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 16px;
  min-width: 88px;
  min-height: 64px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scene-choice:hover:not(:disabled) {
  background: #e4ead8;
  border-color: #c5d1b6;
}
.scene-choice:disabled {
  opacity: 1;
}
.play-ball {
  width: var(--ball-size);
  height: var(--ball-size);
  flex-shrink: 0;
}
.scene-ground {
  height: 4px;
  background: #d6ceb3;
  border-radius: 50%;
  position: absolute;
  bottom: 31px;
  left: 10%;
  right: 10%;
  z-index: -1;
}
.little-shelf {
  height: 100%;
  width: 280px;
  margin: auto;
  display: grid;
  grid-template-rows: 1fr 1fr;
  border-left: 7px solid #ab8d64;
  border-right: 7px solid #ab8d64;
  padding: 0 8px;
}
.shelf-basket {
  width: 100%;
  border-radius: 8px;
  border-bottom: 8px solid #ab8d64;
  padding: 3px 35px;
}
.shelf-basket > svg {
  height: 90px;
  max-width: 100%;
}
.door-scene {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 45px;
}
.interactive-door {
  width: 190px;
  height: 245px;
  background: none;
  padding: 5px;
  perspective: 500px;
}
.door-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 9px solid #7c9581;
  background: #4e685d;
  border-bottom: 6px solid #9c8a65;
  position: relative;
  border-radius: 8px 8px 0 0;
}
.door-leaf {
  position: absolute;
  inset: 0;
  display: block;
  background: #c8a16c;
  border: 3px solid #a38456;
  transform-origin: left;
  transition: transform 0.5s ease;
}
.door-leaf.is-open {
  transform: rotateY(-66deg);
}
.door-window {
  position: absolute;
  left: 15%;
  right: 15%;
  top: 10%;
  height: 35%;
  border: 4px solid #a7895b;
  background: #dae6d9;
  border-radius: 4px;
}
.door-handle {
  position: absolute;
  right: 7%;
  top: 57%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f4db93;
  border: 2px solid #a68a57;
}
.door-confirm {
  min-height: 50px;
}
.travel-anchors {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.travel-bear {
  width: 100px;
  height: 125px;
}
.travel-house {
  width: 95px;
  height: 110px;
}
.travel-scene[data-bear-side='right'] .travel-anchors {
  flex-direction: row-reverse;
}
.travel-roads {
  height: 100%;
  max-width: 430px;
  margin: auto;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 9px;
}
.travel-choice {
  border: 1px dashed #c9c6a9;
  background: #f2eddc;
  gap: 25px;
  position: relative;
  min-height: 80px;
}
.travel-arrow {
  width: 65px;
  height: 45px;
  color: #a77a40;
}
.travel-arrow.points-left {
  transform: rotate(180deg);
}
.road-car {
  width: 100px;
  height: 100px;
}
.travel-choice:after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 7%;
  right: 7%;
  border-bottom: 3px dashed #cfbf94;
}
@media (min-width: 900px) and (min-height: 600px) and (orientation: landscape) {
  .catalog-grid {
    gap: 15px;
    margin: 10px 0;
  }
  .catalog-grid .course-choice {
    min-height: clamp(140px, calc((100dvh - 460px) / 2), 225px);
    padding: 14px 18px;
    gap: 15px;
  }
  .catalog-grid .course-art {
    width: 90px;
    height: 90px;
  }
  .catalog-grid .course-copy {
    gap: 4px;
  }
  .catalog-grid .course-copy > strong {
    font-size: 23px;
  }
  .catalog-grid .course-cta {
    min-height: 22px;
    font-size: 14px;
  }
  .catalog-pager {
    margin-top: 12px;
    margin-bottom: 0;
  }
  .catalog-pager .button {
    min-height: 44px;
    padding: 9px 18px;
  }
  .library-heading {
    margin: 4px 0 12px;
  }
  .library-heading h1 {
    font-size: 28px;
  }
  .activity-scene {
    height: 245px;
  }
  .comparison-text {
    margin-top: 10px;
  }
  .pair-letters {
    gap: 30px;
  }
  .compare-word {
    width: 205px;
  }
  .compare-stage .lesson-heading {
    padding-bottom: 8px;
  }
}
@media (min-width: 900px) and (min-height: 600px) and (max-height: 950px) and (orientation: landscape) {
  .catalog-grid .course-description {
    display: none;
  }
  .catalog-grid .course-choice {
    padding: 12px 14px;
  }
  .catalog-grid .course-copy > strong {
    font-size: 22px;
  }
  .catalog-grid .course-letters {
    font-size: 23px;
  }
  .catalog-grid .course-art {
    width: 78px;
    height: 78px;
  }
  .activity-scene {
    height: 195px;
  }
  .interactive-door {
    height: 180px;
    width: 145px;
  }
  .road-car {
    height: 78px;
    width: 78px;
  }
  .travel-choice {
    min-height: 65px;
  }
  .travel-roads {
    max-width: 360px;
    gap: 5px;
  }
  .travel-bear {
    width: 82px;
    height: 100px;
  }
  .travel-house {
    width: 80px;
    height: 90px;
  }
  .shelf-basket > svg {
    height: 73px;
  }
  .little-shelf {
    width: 245px;
  }
  .compare-word {
    width: 170px;
  }
  .comparison-text {
    font-size: 13px;
    margin: 9px auto 14px;
  }
  .pair-letters {
    margin-bottom: 8px;
  }
}
@media (min-width: 900px) and (min-height: 600px) and (max-height: 720px) and (orientation: landscape) {
  .library-heading .eyebrow,
  .library-heading p {
    display: none;
  }
  .library-heading {
    margin: 2px 0 8px;
  }
  .library-heading h1 {
    font-size: 25px;
  }
  .catalog-grid .course-choice {
    min-height: 135px;
  }
  .catalog-grid .course-copy {
    gap: 3px;
  }
  .catalog-grid .course-copy > small {
    font-size: 11px;
  }
  .catalog-grid .course-copy > strong {
    font-size: 21px;
  }
  .catalog-grid .course-cta {
    min-height: 22px;
  }
  .catalog-grid .course-art {
    width: 72px;
    height: 72px;
  }
  .catalog-pager {
    margin-top: 9px;
  }
  .activity-scene {
    height: 155px;
  }
  .activity-word {
    font-size: 32px;
  }
  .ball-choice-row {
    padding-bottom: 20px;
  }
  .play-ball {
    max-width: 90px;
    max-height: 90px;
  }
  .scene-ground {
    bottom: 16px;
  }
  .shelf-basket > svg {
    height: 59px;
  }
  .little-shelf {
    width: 220px;
  }
  .shelf-basket {
    padding: 2px 34px;
    border-bottom-width: 5px;
  }
  .interactive-door {
    height: 150px;
    width: 120px;
  }
  .door-scene {
    gap: 35px;
  }
  .road-car {
    width: 65px;
    height: 65px;
  }
  .travel-choice {
    min-height: 55px;
    padding: 3px;
  }
  .travel-roads {
    gap: 3px;
    max-width: 330px;
  }
  .travel-bear {
    height: 83px;
    width: 75px;
  }
  .travel-house {
    height: 80px;
    width: 70px;
  }
  .travel-arrow {
    width: 54px;
    height: 32px;
  }
  .compare-word {
    width: 145px;
    padding: 8px;
  }
  .comparison-text {
    font-size: 12px;
    margin: 7px auto 12px;
  }
  .compare-word > span {
    font-size: 14px;
    min-height: 22px;
  }
  .pair-letters {
    gap: 25px;
    margin: 0;
  }
  .pair-preview {
    font-size: 40px;
  }
}
@media (max-width: 899px) {
  .catalog-grid .course-choice {
    min-height: 190px;
  }
  .catalog-grid .course-copy > strong {
    font-size: 23px;
  }
  .pair-choice {
    flex-direction: column;
  }
  .pair-letters {
    gap: 18px;
  }
  .compare-word {
    width: 220px;
  }
  .comparison-text {
    font-size: 14px;
  }
  .catalog-pager {
    gap: 12px;
  }
  .catalog-pager .button {
    min-width: 105px;
    font-size: 13px;
  }
}
@media (max-width: 600px) {
  .catalog-grid .course-choice {
    min-height: 175px;
    padding: 16px 13px;
    gap: 14px;
  }
  .catalog-grid .course-art {
    width: 80px;
    height: 80px;
  }
  .catalog-grid .course-description {
    display: none;
  }
  .library-tools {
    gap: 8px;
  }
  .compare-link {
    font-size: 11px;
    padding: 8px 9px;
    gap: 4px;
  }
  .compare-link .icon {
    width: 18px;
  }
  .library-heading h1 {
    font-size: 25px;
  }
  .catalog-pager {
    gap: 8px;
  }
  .catalog-pager > span {
    min-width: 40px;
  }
  .catalog-pager .button {
    font-size: 12px;
    min-width: 105px;
    padding: 9px 12px;
  }
  .activity-scene {
    height: 220px;
  }
  .activity-word {
    font-size: 30px;
  }
  .ball-choice-row {
    gap: 6px;
  }
  .scene-choice {
    min-width: 70px;
    padding: 7px;
  }
  .play-ball {
    max-width: 90px;
    max-height: 90px;
  }
  .door-scene {
    gap: 18px;
  }
  .interactive-door {
    width: 135px;
    height: 185px;
  }
  .door-confirm {
    font-size: 13px;
    padding: 10px 13px;
  }
  .travel-bear {
    width: 58px;
    height: 80px;
  }
  .travel-house {
    width: 54px;
    height: 70px;
  }
  .travel-roads {
    max-width: 210px;
    margin-left: 62px;
    margin-right: 62px;
  }
  .travel-choice {
    gap: 2px;
    min-width: 80px;
  }
  .road-car {
    height: 65px;
    width: 65px;
  }
  .travel-arrow {
    height: 30px;
    width: 40px;
  }
  .travel-roads {
    margin: auto;
    max-width: 200px;
  }
  .travel-choice {
    padding: 4px;
  }
  .compare-stage {
    padding: 19px 16px;
  }
  .compare-stage .lesson-heading h1 {
    font-size: 24px;
  }
  .pair-letters {
    gap: 12px;
  }
  .compare-word {
    max-width: 47%;
    padding: 6px;
  }
  .compare-word > span {
    font-size: 13px;
  }
  .comparison-text {
    font-size: 13px;
    text-align: left;
  }
  .pair-preview {
    font-size: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .door-leaf {
    transition: none;
  }
}
.course-grove {
  background: #e7eddc;
  border-color: #d0dbc0;
}
.course-grove:hover {
  background: #dfe7d0;
}
.course-workshop {
  background: #f0e4d2;
  border-color: #e0cfb4;
}
.course-workshop:hover {
  background: #eadcc4;
}
