/* Forgetting curve. Everything scoped under .fc-*. */

.fc-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fc-note { font-size: 13px; color: var(--dim); text-align: center; max-width: 320px; line-height: 1.35; }
.fc-hero { padding: 8px 0 28px; }
.fc-hero img { display: block; width: 320px; max-width: 100%; max-height: 30vh; object-fit: contain; margin: 0 auto; filter: drop-shadow(0 10px 16px rgba(123, 92, 253, .3)); }

/* Ebbinghaus */
.fc-man { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fc-man img { width: 150px; height: 170px; object-fit: cover; object-position: top; border-radius: 14px; box-shadow: 0 10px 26px rgba(0,0,0,.45); filter: sepia(.25); }
.fc-man figcaption { font-size: 13px; font-weight: 700; color: var(--dim); }

/* his card: a row of syllables in ink, fading with what is left */
.fc-card { width: 100%; max-width: 340px; box-sizing: border-box; padding: 10px 14px 12px; border-radius: 14px; background: #F4EEE2; color: #2A2230;
  box-shadow: 0 10px 24px rgba(0,0,0,.4), inset 0 0 0 1px rgba(60, 40, 20, .08); }
.fc-card-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.fc-card-k { font: 700 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #6E5F52; }
.fc-card-v { font: 700 22px var(--mono); color: #2A2230; font-variant-numeric: tabular-nums; }
.fc-card-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; font: 600 17px var(--mono); letter-spacing: .04em; color: #23305E; transition: opacity .15s linear; }
.fc-card-row span { transition: opacity .2s ease-out; }
.fc-card-row span.fc-s-off { opacity: 0; }
.fc-card.fc-s-bare .fc-card-top, .fc-card.fc-s-bare .fc-card-bar { display: none; }
.fc-card-bar { height: 5px; margin-top: 8px; border-radius: 3px; background: rgba(60, 40, 20, .12); overflow: hidden; }
.fc-card-bar i { display: block; height: 100%; width: 100%; background: var(--gold-deep); border-radius: 3px; transition: width .12s linear; }

/* the boxes the reader crosses off */
.fc-grid { display: grid; gap: 4px; width: 100%; max-width: 340px; user-select: none; -webkit-user-select: none; }
.fc-cell { position: relative; border-radius: 6px; background: var(--raised); border: 1.5px solid var(--line-strong); box-sizing: border-box;
  display: grid; place-items: center; font: 600 13px var(--sans); color: var(--dim); transition: background .15s, border-color .15s; }
.fc-hr .fc-cell, .fc-cal .fc-cell { height: 32px; font-size: 12px; }
.fc-cell.fc-s-x { background: rgba(252, 192, 80, .16); border-color: var(--gold-deep); color: var(--faint); }
.fc-cell.fc-s-x::after { content: ''; position: absolute; left: 18%; right: 18%; top: 50%; height: 2px; background: var(--gold); transform: rotate(-24deg); border-radius: 1px; }


/* the curve */
.fc-chart { width: 100%; max-width: 350px; overflow: visible; }
.fc-gridl { stroke: var(--line); stroke-width: 1; }
.fc-break { stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 3 4; }
.fc-tk { font: 500 13px var(--sans); fill: var(--dim); }
.fc-ax { font: 700 13px var(--sans); fill: var(--dim); text-anchor: middle; }
.fc-line { fill: none; stroke: var(--gold); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.fc-dot { fill: var(--gold); stroke: var(--bg, #05070E); stroke-width: 2; transition: opacity .3s; }
.fc-val { font: 700 15px var(--mono); fill: var(--gold); paint-order: stroke; stroke: #05070E; stroke-width: 4px; transition: opacity .3s; }
.fc-chart .fc-s-off { opacity: 0; transition: none; }

/* school Spanish: each option draws where the line goes */
.fc-mini { width: 56px; height: 26px; flex: none; margin-right: 10px; vertical-align: middle; }
.fc-mini-a { fill: none; stroke: var(--dim); stroke-width: 3; stroke-linecap: round; }
.fc-mini-b { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 4 4; }

/* the week */
.fc-week { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; width: 100%; max-width: 350px; }
.fc-day { min-height: 128px; border-radius: 10px; background: var(--raised); border: 1.5px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px; }
.fc-day b { font: 700 13px var(--sans); color: var(--dim); }
.fc-day span { font-size: 12px; font-weight: 700; color: var(--gold); }
.fc-day.fc-s-on { border-color: var(--gold); }
/* what each day takes, drawn behind the labels on the reveal */
.fc-day { position: relative; overflow: hidden; }
.fc-day b, .fc-day span { position: relative; z-index: 1; }
.fc-loss { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: rgba(252, 192, 80, .32); border-top: 2px solid var(--gold); box-sizing: border-box; opacity: 0; }
.fc-week.fc-s-rev .fc-loss { opacity: 1; min-height: 3px; }

/* the first hour's readout, shown once its box is crossed */
.fc-mark { font: 600 14px var(--sans); color: var(--dim); opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s; }
.fc-mark b { font: 700 16px var(--mono); color: var(--gold); }
.fc-mark.fc-s-on { opacity: 1; transform: none; }
.fc-vk { font: 600 12px var(--sans); fill: var(--dim); }
.fc-note { transition: opacity .3s; }
.fc-note.fc-s-off { opacity: 0; }

@media (max-height: 700px) {
  .fc-hero img { max-height: 24vh; }
  .fc-man img { width: 120px; height: 132px; }
  .fc-hr .fc-cell, .fc-cal .fc-cell { height: 27px; }
  .fc-card { padding: 8px 12px 10px; }
  .fc-card-row { font-size: 16px; }
  .fc-chart { max-width: 320px; }
}

/* the guess: the day against the month, side by side */
.fc-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; width: 100%; max-width: 350px; }
.fc-tile { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; background: var(--raised); border: 1.5px solid var(--line); }
.fc-tile > b { font: 700 13px var(--sans); color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.fc-tile.fc-s-q { border-color: var(--gold); }
.fc-tile-v { font: 700 20px var(--mono); color: var(--text); text-align: center; }
.fc-tile-v span { color: var(--faint); }
.fc-tile.fc-s-q .fc-tile-v { color: var(--gold); }
.fc-grid.fc-small { gap: 2px; pointer-events: none; }
.fc-small .fc-cell { height: 12px; border-radius: 2px; border-width: 1px; font-size: 0; }
.fc-small .fc-cell.fc-s-x::after { left: 10%; right: 10%; height: 1px; }
