/* ═══════════════════════════════════════════════════════
   QUIZ / QUIZ — الاختبارات (عادي + ذكي) والبطاقات التعليمية
   ═══════════════════════════════════════════════════════ */

/* ── QUIZ ── */
.qw {
  max-width: 500px;
  margin: 0 auto;
  padding: 14px 14px 90px;
}
.qht {
  height: 5px;
  background: var(--brd);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 13px;
}
.qhf {
  height: 100%;
  background: var(--v);
  border-radius: 20px;
  transition: width .3s;
}
.qcard {
  background: var(--sur);
  border: 1px solid var(--brd);
  border-radius: var(--r);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--sh);
  margin-bottom: 12px;
}
.qword {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  direction: ltr;
  letter-spacing: -.02em;
}
.qph {
  font-size: .68rem;
  color: var(--muted);
  direction: ltr;
  margin-top: 3px;
}
.qin {
  font-size: .56rem;
  color: var(--muted);
  margin-top: 5px;
}
.qopts {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}
.qo {
  background: var(--sur);
  border: 1.5px solid var(--brd);
  border-radius: var(--rsm);
  padding: 12px 15px;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: var(--txt);
  transition: all var(--t);
  text-align: right;
  position: relative;
  overflow: hidden;
}
.qo:hover {
  border-color: var(--brd2);
  background: var(--sur2);
}
.qo:active:not(.dis) {
  transform: scale(.97);
}
.qo.ok {
  border-color: var(--n-brd);
  background: var(--n-bg);
  color: var(--n);
}
.qo.no {
  border-color: var(--p-brd);
  background: var(--p-bg);
  color: var(--p);
}
.qo.dis {
  pointer-events: none;
  opacity: .75;
}
.qfb {
  display: none;
  padding: 8px 12px;
  border-radius: var(--rsm);
  font-size: .7rem;
  margin-bottom: 7px;
}
.qfb.on {
  display: block;
}
.qn {
  display: none;
  width: 100%;
  padding: 10px;
  background: var(--v);
  color: #fff;
  border: none;
  border-radius: var(--rsm);
  font-weight: 900;
  font-size: .72rem;
  cursor: pointer;
}
.qn.on {
  display: block;
}
.qrc {
  background: var(--sur);
  border: 1px solid var(--brd);
  border-radius: var(--r);
  padding: 22px;
  text-align: center;
  box-shadow: var(--sh2);
  margin-bottom: 13px;
}
.qrs {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--v);
}
.qrl {
  font-size: .86rem;
  font-weight: 700;
  margin: 4px 0;
}
.qrp {
  font-size: .62rem;
  color: var(--muted);
}
.score-bar {
  height: 8px;
  background: var(--brd);
  border-radius: 20px;
  overflow: hidden;
  margin: 10px 0;
}
.score-fill {
  height: 100%;
  border-radius: 20px;
  transition: width .6s cubic-bezier(.4, 0, .2, 1);
}

/* ── FLASHCARDS ── */
.fcw {
  max-width: 420px;
  margin: 0 auto;
  padding: 14px 14px 80px;
}
.fcc {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .6rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 8px;
}
.fc {
  background: var(--sur);
  border: 1px solid var(--brd);
  border-radius: 16px;
  min-height: 195px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  padding: 28px 18px;
  box-shadow: var(--sh2);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}
.fc::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(0, 0, 0, .02));
  pointer-events: none;
}
.fc:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .15);
}
.fc:active {
  transform: scale(.97);
}
.fcw2 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  direction: ltr;
}
.fcph {
  font-size: .68rem;
  color: var(--muted);
  direction: ltr;
}
.fch {
  font-size: .46rem;
  color: var(--brd2);
  margin-top: 11px;
}
.fca {
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 5px;
}
.fcs {
  font-size: .62rem;
  color: var(--sub);
}
.swipe-hint {
  display: flex;
  justify-content: space-around;
  margin-top: 8px;
  font-size: .45rem;
  color: var(--muted);
}
.fc-actions {
  display: flex;
  gap: 6px;
  margin-top: 9px;
}
.fc-btn {
  flex: 1;
  padding: 8px 5px;
  border: 1.5px solid var(--brd);
  border-radius: var(--rsm);
  background: var(--sur);
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: .6rem;
  color: var(--sub);
  transition: all var(--t);
}
.fc-btn.kn {
  border-color: var(--n-brd);
  color: var(--n);
}
.fc-btn.kn:hover {
  background: var(--n-bg);
}
.fc-btn.sk {
  border-color: var(--p-brd);
  color: var(--p);
}
.fc-btn.sk:hover {
  background: var(--p-bg);
}
.fc-btn.sp {
  border-color: var(--v-brd);
  color: var(--v);
}
.fc-btn.sp:hover {
  background: var(--v-bg);
}

