/* Flashcards practice — home + study */
.practice-page--flashcards {
  --fc-primary: #15976b;
  --fc-primary-dark: #0f7a56;
  --fc-accent: #245de8;
  --fc-bg: #f5f7fb;
  --fc-card: #ffffff;
  --fc-text: #17233b;
  --fc-muted: #68758a;
  background: var(--fc-bg);
  padding-bottom: 48px;
}
.practice-page--flashcards {
  max-width: none;
  width: 100%;
}
.practice-page--flashcards .fc-app {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px 0;
  color: var(--fc-text);
  box-sizing: border-box;
}
[data-theme="dark"] .practice-page--flashcards {
  --fc-bg: #171c28;
  --fc-card: #222938;
  --fc-text: #e6eaf2;
  --fc-muted: #9aa5b8;
}
.fc-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--fc-muted);
  margin-bottom: 16px;
}
.fc-crumb a {
  color: var(--fc-muted);
  text-decoration: none;
  font-weight: 600;
}
.fc-crumb a:hover {
  color: var(--fc-primary);
}
.fc-crumb__sep {
  opacity: 0.5;
}
.fc-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 26px;
  padding: 28px 30px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #e7f6f1 45%, #e8f1ff 100%);
  border: 1px solid rgba(21, 151, 107, 0.15);
  box-shadow: 0 12px 40px rgba(23, 35, 59, 0.08);
}
[data-theme="dark"] .fc-hero-panel {
  background: linear-gradient(135deg, #222938 0%, #1a2e28 50%, #1e2840 100%);
}
.fc-hero-panel__eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fc-primary);
}
.fc-hero-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 40px);
  letter-spacing: -0.03em;
  color: var(--fc-text);
}
.fc-hero-panel__lead {
  margin: 0 0 18px;
  color: var(--fc-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 52ch;
}
.fc-hero-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.fc-hero-panel__art {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: block;
  border-radius: 18px;
}
.fc-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 22px;
  align-items: start;
}
.fc-home-main,
.fc-home-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.fc-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.fc-stat-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  background: var(--fc-card);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(23, 35, 59, 0.06);
}
.fc-stat-card__img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.fc-stat-card__icon {
  font-size: 20px;
  color: var(--fc-primary);
}
.fc-stat-card__value {
  display: block;
  font-size: 24px;
  font-weight: 800;
}
.fc-stat-card__label {
  font-size: 12px;
  color: var(--fc-muted);
}
.fc-setup-card,
.fc-info-card {
  background: var(--fc-card);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(23, 35, 59, 0.06);
}
.fc-setup-card {
  border-color: rgba(21, 151, 107, 0.22);
  box-shadow: 0 10px 32px rgba(21, 151, 107, 0.08);
}
.fc-setup-card__head {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}
.fc-setup-card__head h2 {
  margin: 0 0 4px;
  font-size: 20px;
  color: var(--fc-text);
}
.fc-setup-card__sub {
  margin: 0;
  font-size: 14px;
  color: var(--fc-muted);
}
.fc-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--fc-muted);
  margin-bottom: 8px;
}
.fc-select {
  width: 100%;
  font: inherit;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border, #dce3ee);
  background: var(--surface-2, var(--fc-bg));
  color: var(--fc-text);
}
.fc-deck-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.fc-deck-chip {
  appearance: none;
  border: 1px solid var(--border, #dce3ee);
  background: var(--fc-bg);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--fc-text);
}
.fc-deck-chip.is-active {
  background: rgba(21, 151, 107, 0.12);
  border-color: var(--fc-primary);
  color: var(--fc-primary);
}
.fc-inline-check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: var(--fc-muted);
  margin: 10px 0;
  cursor: pointer;
}
.fc-pool-note {
  margin: 8px 0 16px;
  font-size: 13px;
  color: var(--fc-muted);
}
.fc-btn-primary {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  justify-content: center;
  background: var(--fc-primary) !important;
  border-color: var(--fc-primary) !important;
  color: #fff !important;
  font-weight: 700;
}
.fc-info-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--fc-text);
}
.fc-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.fc-step h3 {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--fc-text);
}
.fc-step p {
  margin: 0;
  font-size: 13px;
  color: var(--fc-muted);
  line-height: 1.45;
}
.fc-deck-grid {
  display: grid;
  gap: 10px;
}
.fc-deck-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--fc-bg);
  border: 1px solid var(--border, #e8ecf2);
}
.fc-deck-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
}
.fc-deck-card p {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--fc-muted);
}
.fc-deck-card__btn {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  color: var(--fc-primary);
  cursor: pointer;
  padding: 0;
}
.fc-reset {
  align-self: flex-start;
}
.fc-footnote {
  margin: 24px auto 0;
  text-align: center;
  font-size: 12px;
  color: var(--fc-muted);
  max-width: 58ch;
}
/* Study */
.fc-study {
  width: 100%;
}
.fc-study__shell {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fc-study__header {
  background: var(--fc-card);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  padding: 16px 24px;
  box-shadow: 0 1px 3px rgba(23, 35, 59, 0.05);
}
.fc-study__header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.fc-study__label {
  font-weight: 800;
}
.fc-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(21, 151, 107, 0.12);
  color: var(--fc-primary);
}
.fc-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--border, #e2e8f0);
  overflow: hidden;
  margin-bottom: 10px;
}
.fc-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--fc-primary), #2db88a);
  border-radius: inherit;
}
.fc-study__meta {
  margin: 0;
  font-size: 13px;
  color: var(--fc-muted);
}
.fc-card {
  background: var(--fc-card);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 20px;
  padding: 28px 24px 24px;
  box-shadow: 0 16px 40px rgba(23, 35, 59, 0.08);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}
.fc-card.is-revealed {
  border-color: rgba(21, 151, 107, 0.35);
  box-shadow: 0 16px 40px rgba(21, 151, 107, 0.12);
}
.fc-card__badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fc-primary);
}
.fc-card__prompt {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--fc-text);
}
.fc-card__hint {
  margin: 0;
  color: var(--fc-muted);
  font-size: 15px;
}
.fc-card__answer {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--fc-bg);
  border: 1px solid var(--border, #e2e8f0);
}
.fc-card__answer-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fc-muted);
}
.fc-card__answer-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--fc-text);
}
.fc-card__rate-label {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--fc-muted);
}
.fc-rate-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.fc-rate-row .btn {
  width: 100%;
  justify-content: center;
}
.fc-card__actions {
  margin-top: auto;
  width: 100%;
}
.fc-card__source {
  margin: auto 0 0;
  font-size: 13px;
  color: var(--fc-muted);
}
.fc-card__source a {
  color: var(--fc-accent);
  font-weight: 700;
  text-decoration: none;
}
.fc-card__source a:hover {
  text-decoration: underline;
}
.fc-study__toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.fc-study__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  border: 1px solid var(--border, #dce3ee);
  border-radius: 12px;
  padding: 4px;
  background: var(--fc-bg);
  gap: 4px;
  box-sizing: border-box;
}
.fc-nav-btn {
  width: 100%;
  min-width: 0;
  border: 0 !important;
  border-radius: 9px !important;
  font-weight: 700;
  justify-content: center;
}
.fc-nav-btn--next:not(:disabled) {
  background: rgba(21, 151, 107, 0.14);
  color: var(--fc-primary);
}
.fc-study__exit {
  width: 100%;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}
@media (max-width: 960px) {
  .fc-hero-panel,
  .fc-home-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .fc-hero-panel__visual {
    order: -1;
  }
}
@media (max-width: 560px) {
  .fc-stat-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .fc-rate-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
