/* ============================================================
   Urdu Vocabulary — tool-specific styles
   ============================================================ */

.progress-pill { background: var(--brand-soft); color: var(--brand-strong); font-weight: 800; font-size: 0.83rem; border-radius: 999px; padding: 0.3rem 0.85rem; font-variant-numeric: tabular-nums; display: inline-block; }
.score-pill { background: #fef3c7; color: #92400e; }
.runner-top { display: flex; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.7rem; flex-wrap: wrap; }
.runner-context { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; margin: 0.2rem 0 0.5rem; }
.action-row { display: flex; gap: 0.65rem; margin-top: 0.8rem; flex-wrap: wrap; }
.results-actions { justify-content: center; }
.stage-center { text-align: center; padding: 0.8rem 0.4rem; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.results-score { font-size: 1.35rem; font-weight: 850; margin: 0.2rem 0 0.8rem; font-variant-numeric: tabular-nums; }
.feedback { margin: 0.7rem 0 0; }

.uv-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0; }
.uv-tab {
  font: inherit; font-weight: 800; font-size: 0.9rem; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 0.5rem 1rem; transition: all 0.15s ease;
}
.uv-tab:hover { border-color: var(--brand); color: var(--brand-strong); }
.uv-tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.uv-view { margin-bottom: 1rem; }

.urdu-letter-icon { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", serif; font-size: 1.8rem; }

/* ---- Flashcards ---- */
.uv-flash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.7rem; }
.uv-star { font: inherit; font-size: 1.7rem; cursor: pointer; border: none; background: transparent; color: #d6a419; line-height: 1; padding: 0.2rem 0.4rem; }
.uv-flashcard {
  font: inherit; cursor: pointer; display: grid; place-items: center; width: min(520px, 100%);
  aspect-ratio: 16 / 9; margin: 0 auto; border: none; border-radius: var(--r-lg);
  background: linear-gradient(150deg, #047857, #065f46); color: #fff; padding: 1.3rem;
  box-shadow: var(--shadow); transition: transform 0.15s ease;
}
.uv-flashcard:active { transform: scale(0.98); }
.uv-flash-face { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.uv-flash-front { font-size: clamp(2.6rem, 10vw, 3.6rem); line-height: 1.4; }
.uv-flash-english { font-size: clamp(1.4rem, 4.5vw, 2rem); font-weight: 850; }
.uv-flash-example { font-size: 1.15rem; color: #d1fae5; }
.uv-flash-example-en { font-size: 0.85rem; color: #a7f3d0; font-style: italic; }
.uv-flash-hint { text-align: center; color: var(--muted); font-size: 0.8rem; margin: 0.6rem 0 0; }

/* ---- Quiz ---- */
.uv-quiz-word {
  text-align: center; font-size: clamp(3rem, 12vw, 4.5rem); line-height: 1.4;
  background: #ecfdf5; border: 1px solid #bbf0cd; border-radius: var(--r-md); padding: 0.8rem 1rem; margin-bottom: 0.9rem; color: #065f46;
}
.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.6rem; }
.option-btn {
  font: inherit; font-weight: 700; font-size: 0.98rem; cursor: pointer;
  border: 2px solid var(--line); background: #fff; border-radius: var(--r-md);
  padding: 0.65rem 0.5rem; transition: all 0.12s ease;
}
.option-btn:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-softer); }
.option-btn.correct { border-color: var(--ok); background: var(--ok-bg); }
.option-btn.incorrect { border-color: var(--bad); background: var(--bad-bg); }
.option-btn:disabled { cursor: default; }

/* ---- Matching ---- */
.uv-match-head { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.uv-match-instruction { margin: 0; color: var(--muted); font-size: 0.92rem; max-width: 46ch; }
.uv-match-stats { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.uv-match-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.uv-match-col { display: grid; gap: 0.45rem; align-content: start; }
.uv-match-item {
  font: inherit; cursor: pointer; border: 2px solid var(--line); background: #fff;
  border-radius: var(--r-md); padding: 0.55rem 0.7rem; font-size: 1.05rem; transition: all 0.12s ease; text-align: center;
}
.uv-match-urdu { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", serif; font-size: 1.35rem; }
.uv-match-item:hover:not(:disabled) { border-color: var(--brand); }
.uv-match-item.selected { border-color: var(--brand); background: var(--brand-softer); box-shadow: 0 0 0 3px rgba(15,118,110,0.18); }
.uv-match-item.matched { border-color: var(--ok); background: var(--ok-bg); opacity: 0.65; cursor: default; }

@media (max-width: 640px) { .uv-match-columns { grid-template-columns: 1fr; } }
