.explore-tabs, .explore-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 12px;
}
.explore-tabs a, .explore-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid #849bbc;
  border-radius: 12px;
  background: #fffdf6;
  color: #21395f;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.explore-tabs a { flex: 1 1 115px; }
.explore-tabs a[aria-current="page"], .explore-actions .explore-primary {
  background: #17385f;
  color: #fff7df;
}
.explore-actions button:disabled { opacity: .65; cursor: default; }
#explore-prompt { margin: 0 0 12px; font-size: clamp(1.25rem, 4vw, 1.65rem); }
.explore-visual { display: flex; flex-wrap: wrap; gap: 8px; }
.explore-visual span {
  display: grid;
  align-content: center;
  flex: 1 1 85px;
  min-height: 68px;
  padding: 8px;
  border: 1px solid #a7bad0;
  border-radius: 12px;
  background: #fffdf6;
  text-align: center;
}
.explore-visual span[data-beat] { flex: 0 1 48px; min-height: 48px; }
.explore-visual span[data-active] { outline: 3px solid currentColor; background: #ffe397; font-weight: 800; }
#explore-status { line-height: 1.5; min-height: 1.5em; margin-bottom: 0; }

.explore-visual.pretend-scene span {
  min-height: clamp(90px, 19vh, 170px);
  background: linear-gradient(#ccecfe, #e8f5c8);
  border-color: #83a68f;
  font-size: clamp(1.9rem, 7.5vw, 4rem);
  line-height: 1.2;
}

.pretend-scene ~ .explore-actions button { flex: 1 1 125px; }

.explore-visual.music-score {
  direction: ltr;
  background: #e4f4e6;
  border: 1px solid #83a68f;
  border-radius: 16px;
  padding: 8px;
}

.explore-visual.music-score span {
  flex: 0 1 48px;
  min-height: 46px;
  font-size: 1.4rem;
}

.music-score ~ .explore-actions button[data-answer-number] {
  flex: 1 1 100px;
  min-height: 56px;
}
.music-score ~ .explore-actions button[data-echo-active] {
  outline: 3px solid #17385f;
  outline-offset: 2px;
  background: #ffe397;
  color: #17385f;
}

.explore-visual.practice-picture span {
  min-height: 88px;
  background: #e8f3d8;
  font-size: clamp(2.5rem, 8vw, 4.4rem);
}

.explore-visual.practice-space {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  direction: ltr;
  max-inline-size: 300px;
  margin-inline: auto;
}

.explore-visual.practice-space span {
  min-height: clamp(34px, 8vh, 60px);
  padding: 0;
  font-size: clamp(1.45rem, 5vw, 2.2rem);
}

.explore-visual.practice-space span:nth-child(5) { background: #e4f4e6; }
.explore-visual.practice-space span:empty { background: #edf4fa; }

.practice-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.explore-actions button[data-correct]:disabled {
  background: #d5ebbe;
  border-color: #568036;
  opacity: 1;
}

.practice-shadow { filter: brightness(0); }
.explore-visual.practice-memory span { font-size: clamp(1rem, 3vw, 1.5rem); }

.explore-visual.practice-garden {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  padding: 8px;
  border: 1px solid #73a56b;
  border-radius: 14px;
  background: #d8edbf;
}

.practice-garden button {
  min-width: 0;
  min-height: 70px;
  border: 2px solid #8b6341;
  border-radius: 12px;
  background: #fff3d7;
  font-size: clamp(1.6rem, 6vw, 2.7rem);
  cursor: pointer;
}

.practice-garden button[aria-pressed="true"] {
  border-color: #1f4b37;
  box-shadow: inset 0 0 0 3px #1f4b37;
}

.explore-more { margin-block-start: 16px; }
.explore-more h2 { margin-block-end: 6px; }

.explore-visual.pizza-game {
  align-items: center;
  justify-content: center;
}

.pizza-game .pizza-recipe {
  flex: 0 0 100%;
  min-height: 44px;
  box-sizing: border-box;
  background: #fff8dc;
  font-size: clamp(1.35rem, 5vw, 2.1rem);
}

.pizza-plate {
  display: grid;
  place-content: center;
  box-sizing: border-box;
  width: clamp(104px, 26vh, 205px);
  aspect-ratio: 1;
  padding: 12px;
  border: 7px solid #a55b28;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe29b 63%, #e6a850 64%);
  font-size: clamp(1rem, 3.6vh, 1.85rem);
  line-height: 1.32;
  text-align: center;
}
