/* Seven fixed-attack plants and a continuous four-chapter adventure. */
.chapter-picker {
  margin-top: 12px;
  min-width: 0;
}
.chapter-picker > span {
  display: block;
  font-size: 11px;
  color: #7a886a;
  margin-bottom: 7px;
}
.chapters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.chapter-choice {
  background: #f5f1df;
  color: #71855e;
  border: 1.5px solid #d6dec3;
  border-radius: 10px;
  padding: 7px 4px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  min-height: 58px;
}
.chapter-choice.active {
  background: #e8efcd;
  border-color: #78994a;
  color: #3b6231;
}
.chapter-choice > span {
  font-size: 19px;
  line-height: 1;
}
.chapter-choice strong {
  font-size: 11px;
}
.chapter-choice small {
  font-size: 9px;
  white-space: nowrap;
}
.sun-counter strong {
  letter-spacing: 0;
  font-size: 17px;
}
.needs-tap {
  background: #f3df9b;
  border-radius: 10px;
  animation: music-invite 2s ease-in-out infinite;
}
.needs-tap > span {
  font-size: 10px;
}
.seed-card em {
  font-size: 9px;
}
.seed-card small {
  display: none;
}
.seed-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stage-banner {
  max-width: 90%;
  font-size: clamp(17px, 2.7vw, 30px);
}
@keyframes music-invite {
  50% {
    box-shadow: 0 0 0 5px #d7e6a34d;
  }
}
@media (orientation: landscape) and (min-width: 480px) and (min-height: 501px) {
  .seed-cards {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
  }
  .seed-card {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 4px;
    padding: 7px 4px;
    min-height: 70px;
  }
  .seed-card > img {
    width: 58px;
    height: 35px;
  }
  .seed-card strong {
    font-size: 11px;
  }
  .seed-card em {
    font-size: 8px;
    margin-top: 0;
  }
  .deploy-note {
    font-size: 10px;
  }
  .deployment-heading h2 {
    font-size: 14px;
  }
}
@media (orientation: landscape) and (min-width: 480px) and (max-height: 500px) {
  .course-picker > .chapter-picker {
    grid-area: 5/1/6/-1;
    margin-top: 6px;
  }
  .chapter-picker > span,
  .chapter-choice small {
    display: none;
  }
  .chapters {
    gap: 6px;
  }
  .chapter-choice {
    flex-direction: row;
    justify-content: center;
    min-height: 44px;
    padding: 6px;
    gap: 7px;
  }
  .chapter-choice > span {
    font-size: 17px;
  }
  .chapter-choice strong {
    font-size: 11px;
  }
  .setup-copy > .eyebrow {
    display: none;
  }
  .setup-note[data-ready="true"] {
    display: none;
  }
  .setup {
    padding-block: 8px;
  }
  .setup .step-label {
    margin: 4px 0;
  }
  .subject {
    min-height: 44px;
  }
  .level {
    min-height: 48px;
  }
  #start {
    margin-top: 7px;
  }
  .in-game .seed-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(50px, 1fr));
    gap: 5px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .seed-card {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-height: 50px;
    gap: 2px;
    padding: 3px;
  }
  .seed-card > img {
    width: 42px;
    height: 25px;
  }
  .seed-card strong {
    font-size: 10px;
    line-height: 1.2;
  }
  .seed-card em {
    display: none;
  }
  .deployment-heading h2 {
    font-size: 12px;
  }
  .sun-counter strong {
    font-size: 14px;
  }
  .stage-banner {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .needs-tap {
    animation: none;
  }
}
/* Card taps are the complete selection action; lawn slots are visual previews only. */
.seed-card {
  position: relative;
}
.seed-card > .seed-check {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #698b40;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.plant-slots .plant-slot {
  pointer-events: none;
}
