/* ========== DesiDialect Flashcards (Ghost-native) ========== */

.flashcards-page main#main { padding-top: 0; }
.fc-shell {
  background: var(--bg);
  color: var(--text);
  min-height: 100svh;
  padding-top: 90px;
}

/* ---------- Header bar ---------- */
.fc-header {
  position: sticky;
  top: 72px;
  z-index: 4;
  background: rgba(11, 10, 7, .85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.fc-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 16px;
}
.fc-header__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0 auto 0 10px;
  letter-spacing: -.01em;
}
.fc-header__member { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.fc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-size: .92rem;
}
.fc-back:hover { color: var(--amber); }
.fc-back--inline {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  margin-bottom: 24px;
}

.fc-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font: 700 .68rem/1 var(--font-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text-soft);
}
.fc-chip--member { color: var(--amber); border-color: rgba(217, 119, 6, .4); }
.fc-chip--streak { color: #fb923c; border-color: rgba(251, 146, 60, .4); }
.fc-chip--xp     { color: #fbbf24; border-color: rgba(251, 191, 36, .4); }
.fc-chip--sync   { color: #6ee7b7; border-color: rgba(110, 231, 183, .35); }
.fc-chip--local  { color: var(--text-muted); border-color: var(--line); cursor: help; }
.fc-chip--strength-0 { color: var(--text-faint); }
.fc-chip--strength-1,
.fc-chip--strength-2 { color: #fbbf24; }
.fc-chip--strength-3 { color: #34d399; }
.fc-chip--strength-4 { color: #10b981; }
.fc-header__stats { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Fade-in for view transitions */
.fc-fade-in {
  animation: fcFadeIn 280ms cubic-bezier(.2, .7, .3, 1) both;
}
@keyframes fcFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Main + hero ---------- */
.fc-main { padding: 32px var(--pad-x) 80px; }
.fc-loading { text-align: center; padding: 60px 0; color: var(--text-muted); }

.fc-hero {
  max-width: var(--maxw);
  margin: 0 auto 40px;
  padding: 36px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.fc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 85% 15%, rgba(217, 119, 6, .2) 0%, transparent 60%);
  pointer-events: none;
}
.fc-hero__inner { position: relative; }
.fc-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 500;
  margin: 10px 0 24px;
  line-height: 1.2;
}
.fc-hero__title strong {
  color: var(--amber);
  font-size: 1.3em;
  font-weight: 500;
  margin-right: 6px;
}
.fc-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.fc-strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.fc-strength div { margin: 0; }
.fc-strength dt {
  font: 600 .68rem/1 var(--font-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 6px;
}
.fc-strength dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--text);
}

/* ---------- Home stat tiles (streak / xp / due / queue / seen / mastered) ---------- */
.fc-home-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
}
@media (max-width: 560px) {
  .fc-home-tiles { grid-template-columns: repeat(2, 1fr); }
}
.fc-home-tile {
  background: rgba(245, 228, 192, .04);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  margin: 0;
  min-width: 0;
}
.fc-home-tile dt {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--amber);
  line-height: 1.1;
  margin: 0 0 4px;
}
.fc-home-tile dd {
  margin: 0;
  font: 600 .72rem/1.2 var(--font-sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Browse-decks CTA (bottom of home) ---------- */
.fc-browse-cta {
  max-width: var(--maxw);
  margin: 48px auto 0;
}
.fc-browse-cta__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  background:
    linear-gradient(180deg, rgba(217, 119, 6, .06), rgba(217, 119, 6, .02)),
    var(--bg-card, rgba(245, 241, 234, .04));
  border: 1px solid rgba(217, 119, 6, .22);
  border-radius: var(--radius);
}
.fc-browse-cta__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--text);
}
.fc-browse-cta__body {
  margin: 0;
  color: var(--text-muted);
  font-size: .95rem;
}

/* ---------- Decks view (browser) header ---------- */
.fc-decks-head {
  max-width: var(--maxw);
  margin: 0 auto 32px;
}
.fc-decks-head__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  margin: 12px 0 8px;
  letter-spacing: -.01em;
}
.fc-decks-head__note {
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

/* ---------- Section / deck list ---------- */
.fc-section {
  max-width: var(--maxw);
  margin: 0 auto;
}
.fc-section + .fc-section { margin-top: 56px; }
.fc-section__head { margin-bottom: 20px; }
.fc-section__head .eyebrow {
  color: var(--amber, #d97706);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 6px;
  font-weight: 700;
}
.fc-section__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 6px;
}
.fc-section__note {
  color: var(--text-muted);
  margin: 0;
  font-size: .95rem;
  max-width: 60ch;
}
.fc-deck__subtitle {
  color: var(--text-muted);
  font-size: .88rem;
  margin: 0 0 10px;
  line-height: 1.45;
}

.fc-deck-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fc-deck__btn {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  color: inherit;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
button.fc-deck__btn { cursor: pointer; }
button.fc-deck__btn:hover { border-color: rgba(217, 119, 6, .45); transform: translateY(-1px); }

.fc-deck__icon { font-size: 1.7rem; }
.fc-deck__body { min-width: 0; }
.fc-deck__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.fc-deck__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0;
}
.fc-deck__due {
  font: 700 .72rem/1 var(--font-sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
}
.fc-deck__bar {
  height: 4px;
  background: rgba(255, 255, 255, .05);
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0;
}
.fc-deck__bar span {
  display: block;
  height: 100%;
  background: var(--amber);
  border-radius: 999px;
  transition: width .4s var(--ease);
}
.fc-deck__meta { color: var(--text-muted); font-size: .85rem; margin: 0; }
.fc-deck__chev { color: var(--text-faint); font-size: 1.2rem; }

/* ---------- Paywall ---------- */
.fc-paywall {
  min-height: 70vh;
  padding: 140px var(--pad-x) 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(60% 70% at 80% 20%, rgba(217, 119, 6, .18) 0%, transparent 70%),
    var(--bg);
}
.fc-paywall__inner {
  max-width: 620px;
  text-align: center;
}
.fc-paywall__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  margin: 12px 0 20px;
  line-height: 1.15;
}
.fc-paywall__body {
  color: var(--text-soft);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 28px;
}
.fc-paywall__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Deck detail ---------- */
.fc-deck-view { max-width: var(--maxw); margin: 0 auto; }
.fc-deck-view__head { text-align: center; margin-bottom: 28px; }
.fc-deck-view__icon { font-size: 2.4rem; display: block; margin-bottom: 12px; }
.fc-deck-view__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  margin: 0 0 8px;
}
.fc-deck-view__meta { color: var(--text-muted); margin: 0; }

.fc-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
@media (max-width: 760px) { .fc-mode-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .fc-mode-grid { grid-template-columns: 1fr; } }
.fc-mode {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
  color: inherit;
}
.fc-mode:hover { border-color: rgba(217, 119, 6, .55); transform: translateY(-2px); }
.fc-mode__icon { font-size: 1.6rem; margin-bottom: 6px; }
.fc-mode__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
}
.fc-mode__desc { color: var(--text-muted); font-size: .9rem; }

.fc-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fc-card-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.fc-card-row:last-child { border-bottom: 0; }
.fc-card-row.is-added { background: rgba(217, 119, 6, .05); }
.fc-card-row__text { display: grid; gap: 2px; min-width: 0; }

/* Add/remove toggle next to speaker */
.fc-toggle {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  color: var(--text);
  font: 700 1.05rem/1 var(--font-sans);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease);
  flex-shrink: 0;
}
.fc-toggle:hover { transform: scale(1.06); }
.fc-toggle--off { color: var(--amber); border-color: rgba(217, 119, 6, .4); }
.fc-toggle--off:hover { background: rgba(217, 119, 6, .12); border-color: var(--amber); }
.fc-toggle--on {
  color: #1a0d01;
  background: var(--amber);
  border-color: var(--amber);
}
.fc-toggle--on:hover { background: var(--amber-hi, #f59e0b); }

/* Card row: fit the extra toggle column */
.fc-card-row { grid-template-columns: auto 1fr auto auto; }

/* Deck view bulk button + hint */
.fc-deck-view__bulk { margin-top: 18px; display: flex; justify-content: center; }
.fc-bulk { display: inline-flex; align-items: center; gap: 6px; }
.fc-deck-view__hint {
  color: var(--text-muted);
  font-size: .9rem;
  text-align: center;
  margin: -14px 0 24px;
}
.fc-mode.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Empty-state hero body + muted title */
.fc-hero__title-muted {
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
}
.fc-hero__body {
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 0 24px;
}
.fc-hindi {
  font-family: var(--font-deva);
  font-weight: 600;
  color: var(--amber);
  font-size: 1.1rem;
}
.fc-hindi--lg { font-size: 3rem; line-height: 1.1; }
.fc-roman { color: var(--text-soft); font-size: .92rem; font-style: italic; }
.fc-english { color: var(--text); }

.fc-strength-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
}
.fc-strength-dot--1 { background: #78350f; border-color: #92400e; }
.fc-strength-dot--2 { background: #b45309; border-color: #d97706; }
.fc-strength-dot--3 { background: #059669; border-color: #10b981; }
.fc-strength-dot--4 { background: #10b981; border-color: #34d399; box-shadow: 0 0 0 2px rgba(16, 185, 129, .25); }

.fc-speaker {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.fc-speaker:hover { background: var(--bg-card-raise); transform: scale(1.06); }
.fc-speaker--lg { width: 56px; height: 56px; font-size: 1.3rem; margin: 16px auto 0; }
.fc-speaker--xl {
  width: 96px; height: 96px;
  font-size: 2.2rem;
  background: rgba(217, 119, 6, .15);
  border-color: rgba(217, 119, 6, .5);
  color: var(--amber);
  margin: 0 auto 20px;
}
.fc-speaker--xl:hover { background: rgba(217, 119, 6, .25); transform: scale(1.04); }

.fc-listen__prompt {
  text-align: center;
  padding: 32px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.fc-roman--hint {
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: .02em;
}

/* ---------- Study session ---------- */
.fc-study { max-width: 680px; margin: 0 auto; }
.fc-study__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}
.fc-close {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
}
.fc-close:hover { background: var(--bg-card-raise); }
.fc-study__progress {
  height: 6px;
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  overflow: hidden;
}
.fc-study__progress span {
  display: block;
  height: 100%;
  background: var(--amber);
  transition: width .4s var(--ease);
}
.fc-study__count {
  font: 700 .76rem/1 var(--font-sans);
  letter-spacing: .1em;
  color: var(--text-muted);
}
.fc-study__badges { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }

/* Flashcard — flip */
.fc-flip {
  perspective: 1400px;
  width: 100%;
  min-height: 340px;
  margin-bottom: 20px;
}
.fc-flip__inner {
  position: relative;
  width: 100%;
  min-height: 340px;
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(.35, 1.3, .45, 1);
}
.fc-flip.is-flipped .fc-flip__inner { transform: rotateY(180deg); }
.fc-flip__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.fc-flip__face--back { transform: rotateY(180deg); }
@media (prefers-reduced-motion: reduce) {
  .fc-flip__inner { transition: none; }
}

.fc-rate-slot { margin-top: 24px; display: flex; justify-content: center; }

.fc-flashcard__hindi {
  font-family: var(--font-deva);
  font-weight: 700;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  color: var(--amber);
  line-height: 1.1;
  margin: 0;
}
.fc-flashcard__hindi--small { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.fc-flashcard__roman {
  color: var(--text-soft);
  font-size: 1.1rem;
  font-style: italic;
  margin: 0;
}
.fc-flashcard__english {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  margin: 0 0 12px;
}
.fc-reveal { margin-top: 24px; align-self: center; }

.fc-rate-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 24px;
}
@media (max-width: 520px) { .fc-rate-row { grid-template-columns: repeat(2, 1fr); } }
.fc-rate {
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text);
  transition: transform .12s var(--ease), background .15s var(--ease);
}
.fc-rate:hover { transform: translateY(-1px); }
.fc-rate__label { font-family: var(--font-serif); font-size: 1.05rem; }
.fc-rate__interval {
  font: 600 .75rem/1 var(--font-sans);
  color: var(--text-muted);
  letter-spacing: .08em;
}
.fc-rate--again { border-color: rgba(220, 38, 38, .45); }
.fc-rate--again:hover { background: rgba(220, 38, 38, .12); }
.fc-rate--hard  { border-color: rgba(217, 119, 6, .5); }
.fc-rate--hard:hover  { background: rgba(217, 119, 6, .12); }
.fc-rate--good  { border-color: rgba(5, 150, 105, .5); }
.fc-rate--good:hover  { background: rgba(5, 150, 105, .12); }
.fc-rate--easy  { border-color: rgba(20, 184, 166, .5); }
.fc-rate--easy:hover  { background: rgba(20, 184, 166, .12); }

/* Quiz */
.fc-quiz {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px;
}
.fc-quiz__prompt { text-align: center; margin-bottom: 24px; }
.fc-quiz__prompt .fc-speaker { margin-top: 10px; }
.fc-quiz__opts { display: grid; gap: 10px; }
.fc-quiz-opt {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-size: 1rem;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.fc-quiz-opt:hover:not(.is-locked) { border-color: var(--amber); background: var(--bg-card-raise); }
.fc-quiz-opt__letter {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 .8rem/1 var(--font-sans);
  color: var(--amber);
}
.fc-quiz-opt.is-locked { cursor: default; opacity: .85; }
.fc-quiz-opt.is-correct { background: rgba(5, 150, 105, .18); border-color: rgba(5, 150, 105, .6); }
.fc-quiz-opt.is-wrong   { background: rgba(220, 38, 38, .18); border-color: rgba(220, 38, 38, .6); }

/* Results / empty */
.fc-results, .fc-empty {
  max-width: 540px;
  margin: 40px auto 0;
  text-align: center;
  padding: 48px 32px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}
.fc-results__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--amber);
  margin: 12px 0 8px;
  line-height: 1;
}
.fc-results__meta { color: var(--text-soft); margin: 0 0 12px; }
.fc-results__streak {
  color: #fb923c;
  font-weight: 600;
  margin: 0 0 24px;
}
.fc-results__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Progress page ---------- */
.fc-progress { max-width: var(--maxw); margin: 0 auto; }
.fc-progress__head { margin-bottom: 28px; }
.fc-progress__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  margin: 8px 0 0;
}

.fc-tiles {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 680px) { .fc-tiles { grid-template-columns: repeat(2, 1fr); } }
.fc-tile {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fc-tile__n {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--amber);
  line-height: 1;
}
.fc-tile__label {
  font: 600 .72rem/1 var(--font-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.fc-chart-block {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px 26px;
  margin-bottom: 20px;
}
.fc-chart-block__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.fc-chart-block__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
}
.fc-chart-block__meta { color: var(--text-muted); font-size: .9rem; }

.fc-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  height: 180px;
}
.fc-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.fc-bar__stack {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}
.fc-bar__count {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font: 600 .72rem/1 var(--font-sans);
  color: var(--text-muted);
}
.fc-bar__fill {
  display: block;
  width: 100%;
  min-height: 2px;
  background: linear-gradient(180deg, var(--amber) 0%, rgba(217, 119, 6, .4) 100%);
  border-radius: 6px 6px 0 0;
  transition: height .5s cubic-bezier(.2, .7, .3, 1);
}
.fc-bar.is-today .fc-bar__fill { background: linear-gradient(180deg, #fbbf24 0%, var(--amber) 100%); }
.fc-bar.is-today .fc-bar__label { color: var(--amber); font-weight: 600; }
.fc-bar__label {
  font: 600 .72rem/1 var(--font-sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.fc-str-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fc-str-row {
  display: grid;
  grid-template-columns: 110px 1fr 40px;
  gap: 14px;
  align-items: center;
}
.fc-str-row__label { color: var(--text-soft); }
.fc-str-row__bar {
  height: 10px;
  background: rgba(255, 255, 255, .05);
  border-radius: 999px;
  overflow: hidden;
}
.fc-str-row__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width .5s cubic-bezier(.2, .7, .3, 1);
}
.fc-str--new       { background: var(--text-faint); }
.fc-str--learning  { background: #f59e0b; }
.fc-str--young     { background: #34d399; }
.fc-str--mastered  { background: #10b981; }
.fc-str-row__n {
  text-align: right;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text);
}
