.tiny-seed-storybook {
  overflow: hidden;
  padding: 82px clamp(18px, 6vw, 90px);
  background: linear-gradient(145deg, #d7ffe2, #fff6af 52%, #dff8ff);
  color: #174b35;
}

.tiny-seed-storybook .moonlight-heading h2 {
  color: #174b35;
}

.tiny-seed-storybook .moonlight-heading p:not(.eyebrow) {
  color: #285d48;
}

.tiny-seed-storybook .moonlight-heading a {
  background: #ffdd4c;
  color: #174b35;
  box-shadow: 0 6px 0 #d29c13;
}

.tiny-seed-shell {
  max-width: 1000px;
  padding: 26px;
  border: 4px solid #174b35;
  border-radius: 30px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 14px 0 #174b35;
}

.tiny-seed-sparkles {
  margin-bottom: 16px;
  text-align: center;
  font-size: 1.8rem;
}

.tiny-seed-flipbook {
  min-height: 720px;
}

.tiny-seed-page {
  width: min(100%, 820px);
  aspect-ratio: 792 / 612;
  background: #fff;
  box-shadow: 15px 16px 0 #174b35, 0 24px 48px rgba(23, 75, 53, .25);
}

.tiny-seed-art,
.tiny-seed-art img {
  width: 100%;
  height: 100%;
}

.tiny-seed-art img {
  object-fit: contain;
  background: #fff;
}

.tiny-seed-page.reading-page {
  display: flex;
  aspect-ratio: auto;
  flex-direction: column;
}

.tiny-seed-page.reading-page .tiny-seed-art {
  height: auto;
  overflow: hidden;
  aspect-ratio: 2 / 1;
}

.tiny-seed-page.reading-page .tiny-seed-art img {
  object-fit: cover;
  object-position: top center;
}

.tiny-seed-copy,
.tiny-seed-dialog-copy {
  box-sizing: border-box;
  width: 100%;
  padding: 20px 24px 22px;
  border-top: 3px solid #e0bd42;
  background: #f8fff9;
  color: #263343;
  text-align: left;
}

.tiny-seed-copy h3,
.tiny-seed-dialog-copy h3 {
  margin: 0 0 8px;
  color: #17684b;
  font: 800 1.55rem/1.15 'Baloo 2', sans-serif;
  letter-spacing: normal;
  word-spacing: normal;
}

.tiny-seed-copy p,
.tiny-seed-dialog-copy p {
  margin: 0 0 8px;
  font: 700 1rem/1.5 Nunito, sans-serif;
  letter-spacing: normal;
  overflow-wrap: break-word;
  word-spacing: normal;
}

.tiny-seed-copy .grow-note,
.tiny-seed-dialog-copy .grow-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff0a5;
  color: #54420d;
}

.tiny-seed-page.challenge-page .tiny-seed-art,
.tiny-seed-dialog.challenge-page .tiny-seed-dialog-art {
  display: none;
}

.tiny-seed-page.challenge-page .tiny-seed-copy {
  display: flex;
  min-height: 600px;
  flex-direction: column;
  justify-content: center;
  border-top: 0;
}

.tiny-seed-copy ol,
.tiny-seed-dialog-copy ol {
  margin: 8px 0 12px;
  padding-left: 26px;
  font: 700 1rem/1.75 Nunito, sans-serif;
}

.tiny-seed-enlarge {
  display: block;
  margin: 20px auto 4px;
  padding: 11px 17px;
  border: 2px solid #174b35;
  border-radius: 14px;
  background: #fff;
  color: #174b35;
  font-weight: 900;
}

.tiny-seed-storybook .storybook-controls > button {
  border-color: #174b35;
}

.tiny-seed-progress {
  background: #cce6d7;
}

.tiny-seed-progress span {
  background: linear-gradient(90deg, #2ca65d, #f0c62e, #ef7d3d);
}

.tiny-seed-dots button {
  border-color: #174b35;
}

.tiny-seed-dots button.active {
  border-color: #e83f7c;
  background: #e83f7c;
}

.tiny-seed-storybook .swipe-note {
  color: #285d48;
}

.tiny-seed-dialog {
  width: min(94vw, 1050px);
  max-height: 94vh;
  padding: 48px 12px 12px;
  overflow: auto;
  border: 4px solid #174b35;
  border-radius: 22px;
  background: #fff;
}

.tiny-seed-dialog::backdrop {
  background: rgba(10, 45, 32, .84);
}

.tiny-seed-dialog-art {
  overflow: hidden;
  aspect-ratio: 2 / 1;
}

.tiny-seed-dialog-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.tiny-seed-dialog.cover-page .tiny-seed-dialog-art {
  aspect-ratio: auto;
}

.tiny-seed-dialog.cover-page .tiny-seed-dialog-art img {
  height: auto;
  object-fit: contain;
}

.tiny-seed-dialog-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #174b35;
  color: #fff;
  font: 900 1.7rem/1 sans-serif;
}

@media (max-width: 760px) {
  .tiny-seed-storybook {
    padding: 58px 14px;
  }

  .tiny-seed-shell {
    padding: 16px 10px;
  }

  .tiny-seed-flipbook {
    min-height: auto;
  }

  .tiny-seed-sparkles {
    font-size: 1.2rem;
  }

  .tiny-seed-copy {
    padding: 16px;
  }

  .tiny-seed-copy h3 {
    font-size: 1.25rem;
  }

  .tiny-seed-copy p,
  .tiny-seed-copy ol {
    font-size: .94rem;
    line-height: 1.5;
  }

  .tiny-seed-page.challenge-page .tiny-seed-copy {
    min-height: 470px;
  }
}
