.category-flashcards { border-top: 4px solid #f2b705; }
.category-flashcard-info { color: #5f6882; font-size: 12px; margin-top: 8px; }
.flashcards-screen { color: #222a59; margin: 0 auto; max-width: 1240px; padding: 28px 24px 50px; }
.flashcards-topbar { align-items: center; display: flex; gap: 18px; margin-bottom: 28px; }
.flashcards-topbar .avatar { border: 3px solid #fff; border-radius: 50%; height: 58px; width: 58px; }
.flashcards-topbar h1 { font-size: clamp(20px, 3vw, 30px); font-weight: 800; margin: 3px 0; overflow-wrap: anywhere; }
.flashcards-kicker { color: #8b6500; display: block; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.flashcards-screen button { cursor: pointer; font-family: inherit; }
.flashcards-back { background: #fff; border: 1px solid #dbe3f3; border-radius: 9px; color: #3068d9; font-size: 13px; font-weight: 700; padding: 12px 15px; }
.flashcards-primary { background: #3068d9; border: 0; border-radius: 9px; box-shadow: 0 8px 20px #3068d933; color: #fff; font-size: 16px; font-weight: 800; min-height: 48px; padding: 14px 30px; }
.flashcards-screen button:disabled { cursor: default; }
.flashcards-primary:disabled { opacity: .6; }
.flashcards-screen button:focus-visible { outline: 3px solid #f2b705; outline-offset: 3px; }
.flashcards-intro, .flashcards-result { background: #fff; border: 1px solid #dbe3f3; border-radius: 16px; box-shadow: 0 18px 45px #222a5912; margin: 0 auto; max-width: 800px; padding: clamp(24px, 5vw, 48px); text-align: center; }
.flashcards-intro h2, .flashcards-result h2 { font-size: clamp(23px, 4vw, 34px); font-weight: 800; }
.flashcards-intro p, .flashcards-result p { line-height: 1.7; }
.flashcards-intro > strong { background: #fff6d5; border-radius: 8px; display: inline-block; padding: 10px 20px; }
.flashcards-help { color: #5f6882; font-size: 13px; margin: 24px 0; }
.flashcards-metrics { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-bottom: 22px; }
.flashcards-game > .flashcards-metrics { background: #f4f7fb; padding: 6px 0; position: sticky; top: 10px; z-index: 2; }
.flashcards-metrics > div { background: #fff; border: 1px solid #dbe3f3; border-radius: 12px; padding: 14px; text-align: center; }
.flashcards-metrics span { color: #5f6882; display: block; font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.flashcards-metrics strong { font-size: 26px; font-variant-numeric: tabular-nums; font-weight: 800; }
.flashcards-clock-low { border-color: #f24b4b !important; color: #b52732; }
.flashcards-feedback { color: #5f6882; font-size: 14px; min-height: 40px; text-align: center; }
.flashcards-board { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flashcards-board-6, .flashcards-board-9 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.flashcard-memory-card { background: #222a59; border: 2px solid #222a59; border-radius: 12px; box-shadow: 0 8px 20px #222a5915; color: #fff; height: 185px; min-width: 0; padding: 12px; position: relative; text-align: center; transition: background .18s, border-color .18s, transform .18s; }
.flashcard-memory-card:not(:disabled):hover { border-color: #f2b705; transform: translateY(-2px); }
.flashcard-memory-back { align-items: center; display: flex; height: 100%; justify-content: center; }
.flashcard-memory-back img { display: none; }
.flashcard-memory-back b { align-items: center; border: 2px solid #f2b705; border-radius: 50%; color: #f2b705; display: flex; font-size: 32px; height: 58px; justify-content: center; width: 58px; }
.flashcard-memory-card.is-up { background: #fff; border-color: #3068d9; color: #222a59; }
.flashcard-memory-card.is-up.is-definition { background: #fffbee; border-color: #f2b705; }
.flashcard-memory-card.is-matched { background: #f4f9e4; border-color: #9dbf21; }
.flashcard-memory-face { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.flashcard-memory-face > span { color: #5f6882; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.flashcard-memory-face i { color: #59780c; font-style: normal; }
.flashcard-memory-face strong { font-size: 13px; font-weight: 600; line-height: 1.45; margin: auto 0; overflow: auto; overflow-wrap: anywhere; white-space: pre-wrap; }
.flashcards-notice { background: #fff1f1; border: 1px solid #f4b5b9; border-radius: 10px; color: #a82430; margin-bottom: 20px; padding: 16px; }
.flashcards-notice button { background: #fff; border: 1px solid #f4b5b9; border-radius: 7px; color: inherit; font-weight: 700; padding: 10px; }
.flashcards-result-mark { align-items: center; background: #f1f7dc; border-radius: 50%; color: #59780c; display: flex; font-size: 38px; height: 76px; justify-content: center; margin: 0 auto 20px; width: 76px; }
.flashcards-result-mark.is-timeout { background: #fff6d5; color: #9c6f00; }
.flashcards-result-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.flashcards-loading { text-align: center; }
@media (max-width: 1000px) { .flashcards-board-6, .flashcards-board-9 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .flashcards-screen { padding: 18px 12px 35px; }
  .flashcards-topbar { flex-wrap: wrap; gap: 12px; }
  .flashcards-topbar .flashcards-back { flex-basis: 100%; text-align: left; }
  .flashcards-board, .flashcards-board-6, .flashcards-board-9 { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flashcard-memory-card { height: 175px; }
  .flashcards-metrics { gap: 8px; }
  .flashcards-metrics > div { padding: 12px 6px; }
  .flashcards-metrics strong { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .flashcard-memory-card { transition: none; } }
