* {
  box-sizing: border-box;
}
:root {
  --ink: #28455e;
  --leaf: #3d5a2a;
  --sky: #8fd4f5;
  --orange: #ffb03a;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background: #f7f7ed;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 4px solid #285bb7;
  outline-offset: 5px;
}
button:disabled {
  cursor: default;
}
.shell {
  max-width: 1120px;
  margin: auto;
  padding: 24px clamp(18px, 4vw, 48px) 36px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.brand {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
}
.brand span {
  color: #b55629;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 12px 20px;
  background: white;
  border: 2px solid #dbe6dc;
  border-radius: 22px;
  font-weight: 800;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 900;
  color: #557150;
}
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background: #d9eef1;
  padding: 40px;
  min-height: 265px;
  display: flex;
  align-items: center;
  gap: 25px;
}
.hero:after {
  content: "";
  position: absolute;
  background: #b9d99b;
  border-radius: 50%;
  width: 70%;
  height: 140px;
  bottom: -105px;
  right: -10px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 610px;
}
h1 {
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.06;
  letter-spacing: -2.5px;
  margin: 14px 0 18px;
}
p {
  line-height: 1.65;
}
.hero p {
  max-width: 450px;
  font-size: 17px;
}
.mascot {
  font-size: 110px;
  filter: drop-shadow(0 12px 0 #accbd655);
  margin: auto;
  animation: sway 5s ease-in-out infinite;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 30px 0 18px;
  gap: 12px;
}
.section-heading h2 {
  font-size: 26px;
  margin: 0;
  letter-spacing: -0.7px;
}
.section-heading small {
  color: #52655e;
}
.worlds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.world {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 150px;
  padding: 24px;
  border: 2px solid #ffffff;
  border-radius: 26px;
  background: var(--tint, #fff);
  box-shadow: 0 5px 0 #28455e12;
  transition: transform 0.18s;
}
.world:hover {
  transform: translateY(-4px);
}
.world:active {
  transform: translateY(2px);
}
.world .art {
  font-size: 52px;
  min-width: 64px;
  text-align: center;
}
.world h3 {
  font-size: 22px;
  margin: 0 0 8px;
}
.world p {
  font-size: 13px;
  margin: 0;
  color: #435b5a;
}
.world .arrow {
  margin-left: auto;
  font-size: 23px;
}
.bubble-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #e2effa;
  border: 2px solid white;
  border-radius: 28px;
  padding: 24px;
  margin-top: 25px;
}
.bubble-banner .art {
  font-size: 60px;
}
.bubble-banner h2 {
  margin: 0 0 6px;
  font-size: 24px;
}
.bubble-banner p {
  margin: 0;
}
.bubble-banner .pill {
  margin-left: auto;
  background: #ffcd77;
  border-color: #ffcd77;
  white-space: nowrap;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  font-size: 13px;
  color: #52655e;
}
details {
  max-width: 650px;
}
summary {
  cursor: pointer;
  min-height: 44px;
}
details p {
  margin-top: 0;
}
.lesson-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lesson-head h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 0;
}
.lesson {
  margin-top: 22px;
  background: #e3f0dc;
  border-radius: 36px;
  padding: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lesson[data-world="colors"] {
  background: #fce6df;
}
.lesson[data-world="letters"] {
  background: #e9e5f7;
}
.lesson[data-world="animals"] {
  background: #fcf0ca;
}
.lesson[data-world="shapes"] {
  background: #dceef7;
}
.lesson[data-world="objects"] {
  background: #f7e3ed;
}
.progress {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
}
.lesson h2 {
  font-size: clamp(26px, 5vw, 42px);
  margin: 22px 0 10px;
  letter-spacing: -1px;
}
.prompt-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}
.prompt-row button {
  flex-shrink: 0;
}
.scene {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 25px 0;
}
.scene .big {
  font-size: 90px;
  line-height: 1.1;
}
.count-animal {
  border: 0;
  border-radius: 28px;
  background: #ffffffa8;
  font-size: 65px;
  width: 110px;
  min-height: 110px;
  position: relative;
}
.count-animal.counted {
  background: #d1eab7;
  box-shadow: inset 0 0 0 3px #6d934b;
}
.count-animal small {
  position: absolute;
  bottom: 4px;
  right: 8px;
  background: white;
  border-radius: 50%;
  font-size: 19px;
  width: 27px;
  height: 27px;
}
.choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 740px;
  margin: 0 auto;
}
.choice {
  min-height: 145px;
  background: white;
  border: 3px solid transparent;
  border-radius: 28px;
  box-shadow: 0 6px 0 #28455e15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
}
.choice .symbol {
  font-size: 60px;
  line-height: 1.1;
}
.choice .label {
  font-size: 19px;
  font-weight: 800;
}
.choice.correct {
  border-color: #548532;
  background: #f2ffe6;
  animation: hop 0.5s ease;
}
.choice.retry {
  border-color: #b6804a;
}
.shape {
  display: block;
  width: 70px;
  height: 70px;
  background: #568bc6;
}
.shape.circle {
  border-radius: 50%;
}
.shape.triangle {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.shape.star {
  clip-path: polygon(
    50% 0,
    61% 35%,
    98% 35%,
    68% 57%,
    80% 95%,
    50% 73%,
    20% 95%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}
.shape.heart {
  clip-path: polygon(
    50% 95%,
    3% 43%,
    4% 20%,
    22% 4%,
    40% 6%,
    50% 20%,
    60% 6%,
    78% 4%,
    96% 20%,
    97% 43%
  );
}
.shape.rectangle {
  width: 90px;
  height: 55px;
}
.swatch {
  display: block;
  border-radius: 50% 50% 46% 46%;
  width: 65px;
  height: 75px;
  box-shadow: inset -7px -7px 0 #00000010;
}
.feedback {
  min-height: 45px;
  margin: 24px 0 8px;
  font-size: 21px;
  font-weight: 800;
}
.next {
  background: #ffcc75;
  border: 0;
  box-shadow: 0 4px 0 #d99c40;
  min-width: 185px;
}
.next:disabled {
  visibility: hidden;
}
.lesson-footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.lesson-footer p {
  margin: 0;
  font-size: 13px;
}
.celebration {
  font-size: 85px;
  margin: 30px 0;
}
.complete-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.audio-note {
  font-size: 13px;
  max-width: 650px;
  margin: 12px auto;
  text-align: center;
}
.bounce {
  animation: hop 0.45s ease;
}
.choice.hint {
  border: 3px dashed #548532;
}
#repeat {
  min-width: 56px;
}
.shape {
  max-width: 100%;
}
@keyframes hop {
  50% {
    transform: translateY(-12px) rotate(-4deg);
  }
}
@keyframes sway {
  50% {
    transform: translateY(-8px) rotate(3deg);
  }
}
@media (max-width: 760px) {
  .worlds {
    grid-template-columns: repeat(2, 1fr);
  }
  .world {
    padding: 18px;
    gap: 10px;
  }
  .world .arrow {
    display: none;
  }
  .hero {
    padding: 28px;
  }
  .mascot {
    font-size: 80px;
  }
  .bubble-banner {
    flex-wrap: wrap;
  }
  .bubble-banner .pill {
    margin-left: 0;
  }
  .lesson {
    padding: 20px 14px;
  }
  .choices {
    gap: 10px;
  }
  .choice {
    min-height: 125px;
    padding: 12px 5px;
  }
  .choice .symbol {
    font-size: 48px;
  }
  .lesson-head h1 {
    font-size: 23px;
  }
  .count-animal {
    width: 85px;
    min-height: 90px;
    font-size: 52px;
  }
}
@media (max-width: 480px) {
  .shell {
    padding: 18px 16px;
  }
  .brand {
    font-size: 21px;
  }
  .hero {
    padding: 26px 26px 95px;
    min-height: 300px;
    align-items: flex-start;
  }
  .hero-copy {
    max-width: 230px;
  }
  .hero p {
    font-size: 15px;
  }
  .mascot {
    position: absolute;
    right: 15px;
    bottom: 18px;
    font-size: 65px;
  }
  .world {
    flex-direction: column;
    align-items: flex-start;
    min-height: 165px;
    padding: 18px;
  }
  .world .art {
    font-size: 43px;
    text-align: left;
  }
  .world h3 {
    font-size: 20px;
  }
  .section-heading small {
    display: none;
  }
  .pill {
    padding: 12px 15px;
  }
  .scene {
    min-height: 165px;
    gap: 10px;
  }
  .choice .label {
    font-size: 16px;
  }
  footer {
    flex-direction: column;
    gap: 5px;
  }
  .lesson-head {
    flex-wrap: wrap;
  }
  .lesson-head h1 {
    order: -1;
    width: 100%;
    text-align: center;
  }
  .prompt-row {
    gap: 8px;
  }
  .prompt-row .pill {
    padding: 12px;
  }
  .lesson-footer {
    align-items: flex-start;
  }
  .shape {
    width: 55px;
    height: 55px;
  }
  .shape.rectangle {
    width: 70px;
    height: 45px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
.voice-settings {
  margin: 24px auto 0;
  padding: 16px 20px;
  border: 2px solid #dbe6dc;
  border-radius: 22px;
  background: #ffffffb3;
}
.voice-settings summary {
  display: flex;
  align-items: center;
  font-weight: 800;
}
.voice-settings label {
  display: block;
  margin: 18px 0 8px;
  font-weight: 800;
}
.voice-settings select {
  font: inherit;
  color: inherit;
  background: white;
  border: 2px solid #b8c9c5;
  border-radius: 14px;
  min-height: 52px;
  padding: 10px;
  width: 100%;
}
.voice-settings button {
  margin-top: 20px;
}
.voice-settings select:focus-visible {
  outline: 4px solid #285bb7;
  outline-offset: 3px;
}
