/* ============================================================
   EduJA — Vocabulary Game (vocab.html / js/vocab.js)
   Reuses .assess-content/.assess-header/.assess-grid/.assess-card/
   .assess-start-btn/.assess-result-banner/.access-gate above and
   from css/style.css/css/assessment.css; this file only adds what's
   unique to the Flashcards flip card and the Matching Game grid.
   Launched as a Grade 7 pilot (2026-09), expanded to all seven
   grades (7-13) — see js/vocab.js. .vocab-pilot-note is now
   just the generic "nothing unlocked for your account" note style;
   kept the class name to avoid an unnecessary HTML/CSS rename.
   ============================================================ */

.vocab-pilot-note {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(253, 184, 39, 0.4);
    border-radius: 14px;
    padding: 16px;
    color: #f5e7c8;
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
    max-width: 560px;
    margin: 0 auto 18px;
}

/* Subject card buttons (Flashcards / Matching Game). The two buttons
   are full-width .assess-start-btn's, which have no margin of their
   own — stacked directly in the card they touched each other, most
   visibly on a phone. This wrapper stacks them with an even gap and
   gives them the same height and a comfortable tap size. */
.vocab-btn-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 12px;
}
.vocab-btn-stack .assess-start-btn {
    display: block;
    width: 100%;
    margin: 0;
    min-height: 44px;
    padding: 10px 14px;
    line-height: 1.2;
    text-align: center;
    box-sizing: border-box;
}

/* Flashcards */
.vocab-flashcard-progress { text-align: center; font-size: 0.72rem; color: #666; margin-bottom: 10px; }
.vocab-flashcard {
    background: #f0f0e8;
    border: 2px solid #FDB827;
    border-radius: 16px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 18px;
    cursor: pointer;
    color: #1a1a2e;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.4;
    position: relative;
}
.vocab-flashcard-back { display: none; }
.vocab-flashcard-flipped .vocab-flashcard-front { display: none; }
.vocab-flashcard-flipped .vocab-flashcard-back { display: block; font-size: 0.95rem; font-weight: normal; }
.vocab-flashcard-flipped { background: #eaf7ee; border-color: #006633; }
.vocab-flashcard-controls { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* Matching Game */
.vocab-match-hud {
    display: flex; justify-content: space-between; gap: 8px;
    margin-bottom: 10px; flex-wrap: wrap;
}
.vocab-match-stat { font-size: 0.78rem; font-weight: bold; color: #1a1a2e; background: #f0f0e8; border-radius: 8px; padding: 4px 10px; }
.vocab-match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}
.vocab-match-card {
    background: #006633;
    color: #FDB827;
    border: 1px solid #004d26;
    border-radius: 10px;
    min-height: 76px;
    padding: 6px;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.vocab-match-card-flipped {
    background: #f0f0e8;
    color: #1a1a2e;
    font-size: 0.68rem;
    font-weight: normal;
    line-height: 1.25;
}
.vocab-match-card-matched { background: #bbf7d0; color: #14532d; border-color: #16a34a; cursor: default; }
.vocab-match-card:disabled { cursor: default; }
.vocab-match-card-inner { display: block; }
