/* Approved variant 2: white cards and realistic miniature road illustrations. */
.hardest-topic-card {
  container-type: inline-size;
  display: flex;
  min-width: 0;
  height: 100%;
  padding: 1.25rem;
  border: 1px solid #dce8e0;
  background: #fff;
  color: #0b491b;
  text-decoration: none;
  flex-direction: column;
  box-shadow: 0 2px 5px rgba(11, 48, 23, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

a.hardest-topic-card:hover,
a.hardest-topic-card:focus-visible {
  color: #0b491b;
  box-shadow: 0 .75rem 1.75rem rgba(11, 48, 23, .12);
  transform: translateY(-3px);
}

a.hardest-topic-card:focus-visible {
  outline: 3px solid #0b491b;
  outline-offset: 4px;
}

.hardest-topic-card__head {
  min-height: 11.5rem;
}

.hardest-topic-card__title-row {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.hardest-topic-card h3 {
  min-width: 0;
  margin: 0;
  color: #0b491b;
  font-size: 1.35rem;
  font-size: clamp(1.1rem, 6cqw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.hardest-topic-card__count {
  display: flex;
  flex: 0 0 auto;
  color: #0b491b;
  text-align: right;
  flex-direction: column;
}

.hardest-topic-card__count strong {
  font-size: 4rem;
  font-size: clamp(3.2rem, 18cqw, 4.5rem);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .85;
}

.hardest-topic-card__count small {
  margin-top: .45rem;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.2;
}

.hardest-topic-card__description {
  margin: .75rem 0 0;
  color: #62706a;
  font-size: .92rem;
  line-height: 1.5;
}

.hardest-topic-card__art {
  margin: .25rem 0 .85rem;
  aspect-ratio: 4 / 3;
  background: #fff;
}

.hardest-topic-card__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hardest-topic-card__stats {
  display: grid;
  margin-top: auto;
  padding: 1rem .5rem;
  border-radius: 1rem;
  background: #edf5f0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hardest-topic-card__stats > div {
  display: flex;
  min-width: 0;
  padding: 0 .35rem;
  text-align: center;
  flex-direction: column;
}

.hardest-topic-card__stats > div + div {
  border-left: 1px solid #d2e5da;
}

.hardest-topic-card__stats strong {
  color: #0b491b;
  font-size: 1.7rem;
  font-size: clamp(1.3rem, 8cqw, 2.15rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.15;
  white-space: nowrap;
}

.hardest-topic-card__stats span {
  margin-top: .5rem;
  color: #62706a;
  font-size: .76rem;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.hardest-topic-card__pending {
  display: flex;
  min-height: 7rem;
  margin-top: auto;
  padding: 1rem;
  border-radius: 1rem;
  background: #f5f7f4;
  color: #62706a;
  font-size: .9rem;
  align-items: center;
}

.hardest-topic-card__action {
  display: flex;
  min-height: 48px;
  margin-top: 1rem;
  padding: .7rem .75rem;
  border: 1px solid #0b491b;
  border-radius: 1rem;
  color: #0b491b;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  transition: color .2s ease, background-color .2s ease;
}

a.hardest-topic-card:hover .hardest-topic-card__action,
a.hardest-topic-card:focus-visible .hardest-topic-card__action {
  background: #0b491b;
  color: #fff;
}

.hardest-topic-card--preview .hardest-topic-card__action {
  border-color: #d6e1da;
  color: #62706a;
  font-size: .85rem;
}

@media (prefers-reduced-motion: reduce) {
  .hardest-topic-card,
  .hardest-topic-card__action {
    transition: none;
  }

  a.hardest-topic-card:hover,
  a.hardest-topic-card:focus-visible {
    transform: none;
  }
}
