/* ABC flashcards. Buttons and the top bar reuse the existing .btn, .game-topbar and .sw-big styles. */
/* Sizes in ONE place (Brandie, Oct 21): title size 10, BIG / little labels size 8. Points: 10pt = 13.33px, 8pt = 10.67px. */
.fc-screen { --fc-title-size: 10pt; --fc-label-size: 8pt; text-align: center; }
/* Capital I only (U+0049) is drawn with serif bars so it cannot be read as a lowercase l. Fonts already on the computer; nothing is downloaded. */
@font-face { font-family: "Piko Serif I"; font-weight: 100 900; unicode-range: U+0049;
  src: local("Georgia Bold"), local("Georgia-Bold"), local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("DejaVu Serif Bold"), local("DejaVuSerif-Bold"), local("Liberation Serif Bold"), local("LiberationSerif-Bold"); }
.fc-screen { font-family: "Piko Serif I", "Trebuchet MS", "Arial Rounded MT Bold", system-ui, sans-serif; }
.fc-title { margin: 0.2rem 0; font-size: var(--fc-title-size); text-align: left; }
.fc-letters { display: flex; justify-content: center; align-items: flex-end; gap: 3rem; min-height: 9.5rem; }
.fc-cell { display: flex; flex-direction: column; align-items: center; }
.fc-label { font-size: var(--fc-label-size); font-weight: 700; color: #43506b; line-height: 1.2; }
.fc-big, .fc-little { font-weight: 900; line-height: 1; color: var(--blue-action); font-size: 8rem; }
.fc-little { color: var(--red, #B8362A); }
.fc-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem 1rem; min-height: 6rem; margin: 0.6rem 0 1rem; }
.fc-item { display: flex; align-items: center; gap: 0.6rem; margin: 0; padding: 0.4rem 0.9rem; border: 3px solid #cfd8dc; border-radius: 16px; background: #fff; }
.fc-word { font-size: 1.6rem; font-weight: 800; }
.fc-pic { width: 3.4rem; height: 3.4rem; object-fit: contain; display: inline-flex; align-items: center; justify-content: center; }
.fc-emoji { font-size: 2.6rem; }
@media (prefers-reduced-motion: no-preference) { .fc-item, .fc-cell { animation: fc-in 0.25s ease-out; } @keyframes fc-in { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } } }
.fc-screen .btn:disabled { opacity: 0.45; cursor: default; }
/* T8 (Oct 23 2026) tap version, Kindergarten & Grade 1. T8b layout (Brandie, Oct 24): no
   scrolling — letters on top, then rows of up to 3 items divided evenly; images left of
   center, words right of center, every image level with its own word. T8c (Brandie, Oct 24):
   ONE fixed column grid for the whole card — N columns per half, N = the widest row (set
   inline per card) — so a shorter last row lines up under the columns above; unused cells
   stay empty. T8d (Brandie, Oct 24): the two top letters keep the Pre-K size (8rem above —
   ONE size for every level, no .fc-tap override) and, like Pre-K, have NO border, box or
   fill — just the letter with its BIG / little label, still tappable (pointer cursor; the
   global button:focus-visible outline covers keyboard use). If the card must shrink to fit
   1366x768 without scrolling, only the picture and word rows give; the letters never do.
   Image/word cells reuse the .fc-item border look; no new controls. */
.fc-tap .fc-tapcell { display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 0.3rem 0.7rem; border: 3px solid #cfd8dc; border-radius: 16px; background: #fff; cursor: pointer; font: inherit; color: inherit; }
.fc-tap .fc-letters { min-height: 0; gap: 2rem; }
.fc-tap .fc-letters .fc-tapcell { flex-direction: column; padding: 0; border: 0; border-radius: 0; background: none; } /* T8d: letters look like Pre-K — no box */
.fc-tap .fc-rows { display: flex; flex-direction: column; gap: 0.4rem; width: 100%; margin: 0.3rem auto 0.4rem; } /* T8d: tightened so 4-row cards (R, S) fit 1366x768 with 8rem letters */
.fc-tap .fc-trow { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; align-items: center; } /* center split */
.fc-tap .fc-tleft, .fc-tap .fc-tright { display: grid; gap: 0.45rem; align-items: center; } /* one card-wide grid: N columns set inline per card */
.fc-tap .fc-tleft { justify-items: center; } /* equal-width picture pills: left edges line up row to row */
.fc-tap .fc-tright { justify-items: stretch; } /* word boxes fill their column: each word's left edge lines up with the row above */
.fc-tap .fc-pic { width: 2.5rem; height: 2.5rem; } /* T8d: 2.7rem -> 2.5rem, only as far as the 1366x768 fit needs */
.fc-tap .fc-emoji { font-size: 1.95rem; }
.fc-tap button.fc-word { display: block; text-align: center; font-size: 1.25rem; font-weight: 800; max-width: 100%; min-width: 0; hyphens: auto; overflow-wrap: break-word; } /* T8c: block box (not flex) so a word too long for its column can wrap inside it (at a syllable, lang="en") instead of pushing the column out of line */
@media (max-width: 780px) { .fc-tap .fc-trow { column-gap: 1.2rem; } } /* T8d: no letter-size override — 8rem at every width */
