@font-face {
  font-family: Fredoka;
  src: url("fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fbfaf5;
  color: #293e35;
  font:
    16px "DM Sans",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  border: 0;
  border-radius: 13px;
  padding: 13px 19px;
  background: #edf1e6;
  color: inherit;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}
button:hover {
  translate: 0 -2px;
  filter: brightness(0.97);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #caa146;
  outline-offset: 3px;
}
header {
  height: 105px;
  padding: 0 5%;
  background: #fffdf8;
  border-bottom: 1px solid #e4e8dd;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#brand {
  font: 500 32px Fredoka;
  text-decoration: none;
  color: #293e35;
}
#brand > span {
  color: #6f9054;
}
small {
  display: block;
  font:
    700 10px "DM Sans",
    sans-serif;
  letter-spacing: 2px;
  color: #8d9785;
}
#brand small {
  font-size: 8px;
  margin: 5px 0 0 40px;
}
header > div {
  display: flex;
  gap: 12px;
  align-items: center;
}
#sound {
  font-size: 12px;
  background: transparent;
}
.star {
  font-size: 13px;
  background: #fff2cf;
  border: 1px solid #eddfb3;
  padding: 12px 17px;
  border-radius: 30px;
}
.layout {
  max-width: 1500px;
  margin: auto;
  display: grid;
  grid-template-columns: 225px 1fr;
}
aside {
  border-right: 1px solid #e4e8dd;
  padding: 42px 22px;
  min-height: calc(100vh - 105px);
}
aside > small {
  margin: 0 12px 25px;
}
nav {
  display: grid;
  gap: 8px;
}
nav button {
  background: transparent;
  text-align: left;
  font-size: 13px;
  padding: 15px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
nav button span {
  font-size: 22px;
}
nav button.active {
  background: #e7eddd;
  color: #507245;
}
.note {
  background: #f0f2e8;
  border: 1px solid #e1e6d8;
  border-radius: 18px;
  padding: 23px 18px;
  margin-top: 65px;
  font-size: 30px;
}
.note h3 {
  font-size: 14px;
  line-height: 1.7;
}
.note p {
  font-size: 12px;
  line-height: 1.7;
  color: #86907d;
}
main {
  padding: 36px 46px;
}
main > small {
  margin-bottom: 20px;
}
.hero {
  border-radius: 25px;
  border: 1px solid #e0e6d5;
  background: #edf1e4;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  min-height: 360px;
}
.hero > div:first-child {
  padding: 35px 0 35px 35px;
  z-index: 1;
}
.pill {
  font-size: 10px;
  background: #ffffffb0;
  padding: 8px 12px;
  border-radius: 25px;
}
h1 {
  font: 500 48px/1.13 Fredoka;
  margin: 23px 0 17px;
  letter-spacing: -1px;
}
h1 em {
  font-style: normal;
  color: #769354;
}
.hero p {
  font-size: 13px;
  line-height: 1.9;
  color: #808b75;
}
.primary {
  background: #557b5b;
  color: white;
  box-shadow: 0 4px 0 #3d6044;
  font-size: 13px;
  margin: 10px 0;
}
.scene {
  position: relative;
  overflow: hidden;
}
.sun {
  position: absolute;
  right: 35px;
  top: 30px;
  font-size: 65px;
  color: #dfb454;
  animation: spin 40s linear infinite;
}
.cloud {
  position: absolute;
  left: 20px;
  top: 20px;
  color: white;
  font-size: 90px;
}
.float {
  position: absolute;
  display: grid;
  place-items: center;
  width: 65px;
  height: 70px;
  border-radius: 17px;
  font: 500 45px Fredoka;
  animation: bob 4s infinite;
  box-shadow: 0 6px 0 #00000008;
}
.one {
  left: 5px;
  top: 145px;
  background: #f0d28c;
  color: #ac8346;
  rotate: -12deg;
}
.two {
  right: 45px;
  top: 119px;
  background: #c1d8e9;
  color: #6188a1;
  rotate: 10deg;
  animation-delay: 0.5s;
}
.three {
  right: 8px;
  bottom: 60px;
  background: #e8bbc5;
  color: #b47583;
  rotate: 12deg;
  animation-delay: 1s;
}
.bunny {
  position: absolute;
  width: 130px;
  height: 180px;
  bottom: 35px;
  left: calc(50% - 65px);
  animation: bob 3s infinite;
}
.ear {
  position: absolute;
  width: 30px;
  height: 92px;
  background: #fff8e9;
  border: 2px solid #dfd7c5;
  border-radius: 50%;
  top: -6px;
}
.ear:after {
  content: "";
  position: absolute;
  inset: 12px 9px;
  background: #edc8bf;
  border-radius: 50%;
}
.left {
  left: 31px;
  rotate: -12deg;
}
.right {
  right: 29px;
  rotate: 12deg;
}
.face {
  position: absolute;
  top: 56px;
  background: #fff8e9;
  border: 2px solid #dfd7c5;
  border-radius: 48%;
  height: 105px;
  width: 130px;
  z-index: 2;
  display: flex;
  gap: 32px;
  justify-content: center;
  padding-top: 38px;
}
.face i {
  width: 7px;
  height: 10px;
  border-radius: 50%;
  background: #364639;
  animation: blink 5s infinite;
}
.face span {
  position: absolute;
  top: 53px;
  font-size: 29px;
}
.body {
  position: absolute;
  bottom: -5px;
  left: 13px;
  width: 105px;
  height: 90px;
  border-radius: 50%;
  background: #fff8e9;
  border: 2px solid #dfd7c5;
}
.hill {
  position: absolute;
  bottom: -130px;
  width: 600px;
  height: 200px;
  left: -80px;
  background: #d7e0bf;
  border-radius: 50%;
}
.flower {
  position: absolute;
  bottom: 0;
  left: 20px;
  font-size: 65px;
  color: #d8ab68;
}
.other {
  left: auto;
  right: 50px;
  color: #fffcdf;
  font-size: 50px;
}
.hello {
  position: absolute;
  bottom: 16px;
  left: calc(50% - 65px);
  background: white;
  font-size: 10px;
  padding: 8px 13px;
  border-radius: 25px;
  z-index: 3;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0 18px;
}
.section-head h2 {
  font: 500 25px Fredoka;
  margin: 0;
}
.section-head p {
  font-size: 12px;
  color: #929a88;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.card {
  background: white;
  border: 1px solid #e3e7dc;
  padding: 23px;
  border-radius: 19px;
  text-align: left;
  min-height: 220px;
  position: relative;
}
.icon {
  display: grid;
  place-items: center;
  width: 53px;
  height: 53px;
  border-radius: 17px;
  background: var(--tint);
  font-size: 28px;
}
.card h3 {
  font: 500 21px Fredoka;
  margin: 20px 0 8px;
}
.card p {
  font-size: 12px;
  color: #88917e;
  line-height: 1.7;
  margin-bottom: 20px;
}
.tag {
  background: var(--tint);
  font-size: 10px;
  border-radius: 20px;
  padding: 6px 9px;
}
.arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
}
.banner {
  background: #f8f1e5;
  border: 1px solid #e8deca;
  border-radius: 17px;
  padding: 19px 23px;
  margin-top: 23px;
  display: flex;
  align-items: center;
  gap: 17px;
}
.banner > span {
  font-size: 34px;
}
.banner b {
  font: 500 18px Fredoka;
}
.banner p {
  font-size: 12px;
  color: #938b78;
  margin: 5px 0;
}
.banner button {
  margin-left: auto;
  background: #fffbf2;
  font-size: 12px;
  border: 1px solid #e5dbc7;
}
footer {
  text-align: center;
  color: #9ba28f;
  font-size: 11px;
  margin: 35px 0 0;
}
.panel {
  border: 1px solid #e3e7dc;
  background: white;
  border-radius: 20px;
  padding: 25px;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.controls label {
  font-size: 13px;
}
.controls input,
.controls select {
  border: 1px solid #dce3d4;
  border-radius: 9px;
  padding: 10px;
  background: #fafbf7;
}
.controls input {
  width: 78px;
}
.hundred {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 7px;
}
.number {
  background: #eff3e6;
  font: 500 20px Fredoka;
  padding: 12px 0;
  border-radius: 9px;
}
.number.selected {
  background: #779657;
  color: white;
}
.number:nth-child(10n) {
  background: #f3e3b7;
  color: #6c633d;
}
.big {
  font: 500 65px Fredoka;
  text-align: center;
  color: #6b8c52;
  margin: 20px;
}
.hint {
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: #829075;
}
.objects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 750px;
  margin: 25px auto;
}
.objects > span {
  font-size: 30px;
  animation: pop 0.3s;
}
.group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3px;
  max-width: 180px;
  padding: 10px;
  background: #f0f4e5;
  border: 1px solid #dce6cf;
  border-radius: 12px;
  font-size: 24px;
}
.equation {
  font: 500 44px Fredoka;
  text-align: center;
  margin: 30px 0;
}
.answers {
  max-width: 550px;
  margin: 25px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.answers button {
  padding: 22px;
  font: 500 28px Fredoka;
}
.feedback {
  min-height: 45px;
  text-align: center;
  color: #638248;
  font-weight: 600;
  line-height: 1.7;
}
.quiz-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #8b967e;
}
.progress {
  height: 8px;
  border-radius: 15px;
  background: #edf1e5;
  margin: 18px 0;
}
.progress div {
  height: 100%;
  background: #a0b876;
  border-radius: 15px;
}
.target {
  text-align: center;
  background: #f8edcf;
  border-radius: 15px;
  padding: 14px;
  font: 500 27px Fredoka;
}
.balloons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
}
.balloon {
  width: 80px;
  height: 95px;
  border-radius: 50% 50% 45% 45%;
  font: 500 30px Fredoka;
  background: #e9bec8;
  animation: bob 3s infinite;
}
.balloon:nth-child(even) {
  background: #c6dbe9;
}
.balloon:nth-child(3n) {
  background: #efdc9e;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  translate: -50% 0;
  z-index: 10;
  border-radius: 30px;
  background: #3d6044;
  color: white;
  padding: 16px 25px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#toast.show {
  opacity: 1;
}
@keyframes bob {
  50% {
    translate: 0 -10px;
  }
}
@keyframes spin {
  to {
    rotate: 360deg;
  }
}
@keyframes blink {
  48%,
  52% {
    scale: 1 1;
  }
  50% {
    scale: 1 0.1;
  }
}
@keyframes pop {
  from {
    scale: 0.2;
  }
  to {
    scale: 1;
  }
}
@media (min-width: 1450px) {
  h1 {
    font-size: 56px;
  }
  .hero {
    min-height: 400px;
  }
}
@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 185px 1fr;
  }
  aside {
    padding: 35px 12px;
  }
  main {
    padding: 30px 23px;
  }
  h1 {
    font-size: 39px;
  }
  .hero > div:first-child {
    padding-left: 24px;
  }
  .card {
    padding: 17px;
  }
  .cards {
    gap: 10px;
  }
  .two {
    right: 15px;
  }
}
@media (max-width: 700px) {
  header {
    height: 85px;
    padding: 0 15px;
  }
  #brand {
    font-size: 25px;
  }
  #sound {
    padding: 5px;
    font-size: 10px;
  }
  .star {
    padding: 9px;
    font-size: 11px;
  }
  header > div {
    gap: 5px;
  }
  .layout {
    display: block;
  }
  aside {
    min-height: 0;
    border: 0;
    padding: 12px;
  }
  aside > small,
  .note {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 3px;
  }
  nav button {
    white-space: nowrap;
    padding: 10px;
    font-size: 11px;
    gap: 5px;
  }
  nav button span {
    font-size: 18px;
  }
  main {
    padding: 15px;
  }
  .hero {
    min-height: 300px;
    grid-template-columns: 1.1fr 1fr;
  }
  .hero > div:first-child {
    padding: 25px 0 25px 18px;
  }
  h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 11px;
  }
  .pill {
    font-size: 9px;
  }
  .primary {
    font-size: 11px;
    padding: 12px;
  }
  .scene {
    min-height: 300px;
  }
  .bunny {
    scale: 0.8;
    bottom: 25px;
  }
  .float {
    scale: 0.7;
  }
  .one {
    left: -15px;
    top: 100px;
  }
  .two {
    right: -5px;
    top: 70px;
  }
  .three {
    right: -10px;
  }
  .sun {
    font-size: 45px;
    right: 15px;
  }
  .cloud {
    font-size: 65px;
    left: 0;
  }
  .flower {
    left: 0;
    font-size: 45px;
  }
  .other {
    left: auto;
    right: 10px;
  }
  .hello {
    font-size: 9px;
    left: calc(50% - 60px);
  }
  .section-head p {
    display: none;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card {
    min-height: 145px;
    padding: 20px 20px 20px 90px;
  }
  .icon {
    position: absolute;
    left: 18px;
    top: 25px;
  }
  .card h3 {
    margin-top: 0;
  }
  .banner {
    padding: 15px;
    gap: 10px;
  }
  .banner button {
    padding: 10px;
    font-size: 10px;
  }
  .panel {
    padding: 15px;
  }
  .hundred {
    gap: 4px;
  }
  .number {
    font-size: 15px;
    padding: 10px 0;
  }
  .controls select {
    max-width: 170px;
  }
  .equation {
    font-size: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
