/* Flashcards */
.flashcard-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
}

.flashcard-stage {
  width: min(1000px, 100%);
  height: calc(100dvh - 91px);
  margin: 0 auto;
  border: 0;
  background: transparent;
  padding: clamp(20px, 4vh, 42px) 20px 24px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 112px auto;
  place-items: center;
  gap: clamp(12px, 2.5vh, 24px);
  cursor: pointer;
}

.flashcard-stage:hover .flashcard-flag {
  box-shadow:
    0 0 0 3px rgba(36, 93, 69, 0.16),
    0 18px 48px rgba(24, 35, 29, 0.18);
}

.flashcard-flag {
  width: min(720px, 82vw, 77vh);
  max-width: 100%;
  align-self: center;
  box-shadow: 0 16px 42px rgba(24, 35, 29, 0.15);
  transition: box-shadow 180ms ease;
}

.flashcard-stage:focus-visible {
  outline: none;
}

.flashcard-stage:focus-visible .flashcard-flag {
  box-shadow:
    0 0 0 4px rgba(36, 93, 69, 0.48),
    0 18px 48px rgba(24, 35, 29, 0.18);
}

.flashcard-answer {
  width: 100%;
  height: 112px;
  display: grid;
  align-content: center;
  gap: 5px;
  text-align: center;
}

.flashcard-answer strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.flashcard-answer span {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
}

.flashcard-instruction {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.flashcard-complete {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 110px 0 70px;
  text-align: center;
}

.flashcard-complete h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.flashcard-complete > p:not(.kicker) {
  margin: 22px auto 34px;
  color: var(--muted);
  font-size: 18px;
}

.flashcard-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.secondary-button {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  padding: 0 24px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.secondary-button:hover {
  border-color: var(--green);
}

