.kz-opp__stage {
  gap: 0.65rem;
  justify-content: center;
}

.kz-opp__prompt-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin: 0 auto;
  padding: 0.55rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 0 rgba(15, 23, 42, 0.06);
  max-width: 11rem;
}

.kz-opp__img {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
  display: block;
}

.kz-opp__label {
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: lowercase;
  color: #334155;
}

.kz-opp__choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(5.25rem, 1fr));
  gap: 0.55rem;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
}

.kz-opp__choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 6.5rem;
  padding: 0.5rem 0.4rem;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  font: inherit;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.kz-opp__choice:hover,
.kz-opp__choice:focus-visible {
  transform: translateY(-2px);
  border-color: #38bdf8;
  outline: none;
}

.kz-opp__choice.is-correct {
  border-color: #16a34a;
  background: #dcfce7;
}

.kz-opp__choice.is-wrong {
  border-color: #dc2626;
  background: #fee2e2;
  animation: kz-opp-shake 0.35s ease;
}

.kz-opp__win,
.kz-opp__lose,
.kz-opp__empty {
  margin: auto;
  text-align: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.kz-opp__again {
  display: block;
  margin: 0.75rem auto 0;
  padding: 0.45rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #0ea5e9;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

@keyframes kz-opp-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-4px);
  }
  60% {
    transform: translateX(4px);
  }
}

@media (max-width: 640px) {
  .kz-opp__choices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .kz-opp__img {
    width: 3.4rem;
    height: 3.4rem;
  }
}

/*
 * iPad / short hub stages: .kz-opp also carries .kz-match, which sets
 * height:100% + min-height:0 + overflow:hidden. On ≤900px hubs the body
 * height is auto and the stage fr-row can collapse, so the board clips to
 * zero or becomes untouchable. Prefer content min-height + overflow:auto.
 */
.kz-letter-hub__play .kz-opp-mount,
.kz-letter-hub__play .kz-opp,
.kz-letter-hub__play .kz-opp.kz-match {
  width: 100%;
  height: auto;
  max-height: 100%;
  min-height: 16rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kz-letter-hub__body--play .kz-letter-hub__play .kz-opp,
.kz-letter-hub__body--play .kz-letter-hub__play .kz-opp.kz-match {
  height: auto;
  min-height: 0;
  overflow: auto;
}

.kz-letter-hub__stage-inner:has(.kz-opp-mount),
.kz-letter-hub__stage-inner:has(.kz-opp) {
  align-items: center;
  justify-content: center;
  min-height: 16rem;
}

.kz-letter-hub__play:has(.kz-opp),
.kz-letter-hub__play:has(.kz-opp-mount) {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 16rem;
  height: auto;
  max-height: 100%;
}

/* Beat match-word hub 2-col grid — opposites is prompt-on-top, 3 choices below. */
.kz-letter-hub__play .kz-opp .kz-match__stage,
.kz-letter-hub__play .kz-opp__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  container-type: normal;
  grid-template-columns: none;
  grid-template-areas: none;
  flex: 0 1 auto;
  overflow: visible;
  min-height: 0;
  padding: 0.45rem 0.5rem;
}

.kz-letter-hub__play .kz-opp .kz-match__prompt {
  grid-area: auto;
  align-self: center;
  text-align: center;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  font-size: 1rem;
}

/* Concept / sheet arena when opposites-match is embedded */
.kz-sheet__play-arena:has(.kz-opp-mount),
.kz-sheet__play-arena:has(.kz-opp) {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
}

.kz-sheet__play-arena .kz-opp-mount,
.kz-sheet__play-arena .kz-opp,
.kz-sheet__play-arena .kz-opp.kz-match {
  width: 100%;
  height: auto;
  max-height: 100%;
  min-height: 16rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
