.reto {
  background: #fdfbf1;
  border: 1px solid var(--line);
  border-radius: .8rem;
  padding: clamp(.85rem, 3vw, 2rem);
}

.reto-stack {
  display: grid;
  gap: 1rem;
}

.reto-enhanced .reto-stack {
  gap: 0;
}

.reto-enhanced .reto-scene {
  grid-area: 1 / 1;
}

.reto-enhanced [data-inactive] {
  visibility: hidden;
}

.reto-top, .reto-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.reto-top {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 750;
}

.reto-top progress {
  width: min(34%, 10rem);
  height: .7rem;
  accent-color: var(--green);
}

.reto-scene {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(.8rem, 2.7vw, 2.1rem);
}

.reto-scene > img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: .6rem;
  background: #e4e7d4;
}

.reto-content h3 {
  font-size: clamp(1.65rem, 3.1vw, 2.7rem);
  margin-bottom: .65rem;
}

.reto-question {
  color: var(--muted);
}

.reto-choices {
  display: grid;
  gap: .35rem;
  margin-block: .85rem;
}

.reto-choices button {
  min-height: 2.8rem;
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  border-inline-start-width: .24rem;
  border-radius: .4rem;
  background: #fffef8;
  color: var(--ink);
  font-size: .91rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: start;
}

.reto-choices button:not([aria-disabled="true"]):hover {
  border-color: #768667;
  background: #f1f2e6;
}

.reto-choices button[aria-disabled="true"] {
  cursor: default;
}

.reto-choices button[data-selected] {
  background: #f7ead4;
  border-color: #ad7b39;
}

.reto-scene[data-answered] button[data-correct] {
  background: #e8ecdb;
  border-color: #6c835b;
}

.reto-answer {
  margin-top: .75rem;
  padding: .65rem .85rem;
  border-inline-start: .24rem solid #8a9561;
  border-radius: .25rem;
  background: #edf0df;
  color: var(--ink);
  font-size: .88rem;
}

.reto-answer strong {
  display: block;
  min-height: 1.6em;
}

.reto-enhanced .reto-scene:not([data-answered]) .reto-answer {
  visibility: hidden;
}

.reto-score {
  margin-bottom: .65rem;
  font-weight: 750;
  color: var(--green);
}

.reto-actions {
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}

.reto-actions .button {
  min-width: min(8.2rem, 100%);
  min-height: 2.75rem;
  padding: .55rem .85rem;
}

.reto-actions button:disabled {
  cursor: default;
}

.reto-announcer {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 680px) {
  .reto-scene {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .reto-scene > img {
    aspect-ratio: 16 / 8;
  }
}
