/* Hub dos desafios do dia. Usa as classes base do site (.button, .page-head, .texto). */
.desafios {
  max-width: 760px;
  margin: 0 auto 32px;
  color-scheme: light;
}

.ds-topo {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-bottom: 18px;
}

.ds-data {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ds-progresso {
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e2e8f0;
  font-size: 14px;
  font-weight: 700;
}

.ds-progresso.tudo-feito {
  background: #dcfce7;
  color: #14532d;
}

.ds-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ds-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.ds-item.feito {
  border-color: #86efac;
  background: #f0fdf4;
}

.ds-texto h2 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.3;
}

.ds-texto p {
  margin: 0;
  font-size: 15px;
  opacity: 0.85;
}

.ds-selo {
  padding: 4px 10px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.ds-jogar {
  font-weight: 700;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid #12647a;
  color: #12647a;
  white-space: nowrap;
}

.ds-jogar:hover {
  background: #12647a;
  color: #fff;
}

.ds-item.feito .ds-jogar {
  border-color: #86efac;
  color: #14532d;
}

.ds-aviso {
  margin: 0 0 14px;
  min-height: 1.3em;
  font-size: 14px;
  font-weight: 600;
}

.ds-dica {
  margin: 16px 0 0;
  font-size: 15px;
  opacity: 0.85;
}

@media (max-width: 560px) {
  .ds-item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "texto texto"
      "selo jogar";
  }

  .ds-texto {
    grid-area: texto;
  }

  .ds-selo {
    grid-area: selo;
    justify-self: start;
  }

  .ds-jogar {
    grid-area: jogar;
    justify-self: end;
  }
}
