/* ============================================================
   Khan SAT-1600 · Тренажёр слов (RU + UZ)
   Author: Xudoyorxon Bunyodov / Худоёрхон Бунёдов
   ============================================================ */
.vc-wrap { max-width: 880px; margin: 0 auto; }

/* ---------- верх сессии ---------- */
.vc-top { margin-bottom: 14px; }
.vc-prog { height: 8px; border-radius: 999px; background: #E7E3D2; overflow: hidden; }
.vc-prog-fill { height: 100%; background: linear-gradient(90deg, #1B5E20, #C9A227); transition: width .4s cubic-bezier(.22,.7,.3,1); }
.vc-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12.5px; color: #6b7568; flex-wrap: wrap; }
.vc-mode { background: #E8F2E6; color: #1B5E20; padding: 2px 10px; border-radius: 999px; font-weight: 700; }
.vc-score { margin-left: auto; font-weight: 600; }
.vc-lvl { display: inline-flex; gap: 3px; }
.vc-dot { width: 7px; height: 7px; border-radius: 50%; background: #DDD8C4; display: inline-block; }
.vc-dot.on { background: linear-gradient(180deg, #C9A227, #1B5E20); }

/* ---------- карточка вопроса ---------- */
.vc-card { background: linear-gradient(165deg, #FFFFFF, #F6FBF4); border: 1px solid #DCE6DA; border-radius: 18px;
  padding: 30px 22px; text-align: center; box-shadow: 0 10px 30px rgba(18,42,22,.08); }
.vc-word { font-size: 40px; font-weight: 800; color: #123A16; letter-spacing: -.02em; line-height: 1.15; word-break: break-word; }
.vc-pos { margin-top: 8px; color: #7b8577; font-size: 13.5px; }
.vc-ru { color: #123A16; }
.vc-uz { color: #8A6D14; }
.vc-ru.big { font-size: 27px; font-weight: 700; }
.vc-uz.big { font-size: 20px; font-weight: 600; margin-top: 6px; }
.vc-def { font-size: 20px; font-style: italic; color: #33402F; line-height: 1.45; }
.vc-def.small { font-size: 14px; margin-top: 10px; color: #6b7568; }
.vc-hint-word { margin-top: 12px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 22px; letter-spacing: 5px; color: #C9A227; }
.vc-say { background: none; border: none; cursor: pointer; font-size: 17px; padding: 2px 5px; border-radius: 8px; line-height: 1; }
.vc-say:hover { background: rgba(201,162,39,.18); }
.vc-bigsay { font-size: 62px; background: none; border: none; cursor: pointer; line-height: 1; transition: transform .2s; }
.vc-bigsay:hover { transform: scale(1.12); }

/* ---------- варианты ответа ---------- */
.vc-opts { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
.vc-opts.cols { grid-template-columns: 1fr 1fr; }
.vc-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  padding: 14px 16px; border-radius: 14px; border: 1.5px solid #E2DECB; background: #fff; cursor: pointer;
  font-size: 15.5px; line-height: 1.35; transition: transform .16s cubic-bezier(.22,.7,.3,1), border-color .2s, box-shadow .2s, background .2s; }
.vc-opt:hover:not(:disabled) { border-color: #C9A227; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(27,94,32,.10); }
.vc-opt:active:not(:disabled) { transform: scale(.98); }
.vc-opt:disabled { cursor: default; opacity: .85; }
.vc-opt.en { align-items: center; text-align: center; font-size: 19px; font-weight: 700; color: #123A16; padding: 18px 14px; }
.vc-opt .vc-ru { font-size: 15.5px; font-weight: 600; }
.vc-opt .vc-uz { font-size: 13.5px; }
.vc-opt.right { background: #E4F5E4; border-color: #2E7D32; box-shadow: 0 0 0 3px rgba(46,125,50,.18); }
.vc-opt.wrong { background: #FDE7E7; border-color: #C62828; }

/* ---------- ввод ---------- */
.vc-typerow { display: flex; gap: 8px; margin-top: 16px; }
.vc-input { flex: 1; padding: 15px 16px; font-size: 19px; border-radius: 13px; border: 1.5px solid #DDD8C4;
  background: #fff; text-align: center; letter-spacing: .5px; }
.vc-input:focus { border-color: #1B5E20; box-shadow: 0 0 0 3.5px rgba(27,94,32,.14); outline: none; }

/* ---------- обратная связь ---------- */
.vc-fb { margin-top: 16px; border-radius: 16px; padding: 16px 18px; border: 1px solid #E3DFC9; animation: nxIn .28s ease; }
.vc-fb.ok { background: linear-gradient(180deg, #F0FAF0, #FBFEFB); border-left: 4px solid #2E7D32; }
.vc-fb.no { background: linear-gradient(180deg, #FEF4F4, #FFFBFB); border-left: 4px solid #C62828; }
.vc-fb-h { font-weight: 800; font-size: 17px; color: #123A16; }
.vc-fb-b { margin-top: 8px; font-size: 16px; }
.vc-fb-tr { margin-top: 5px; font-size: 15px; }
.vc-fb-tr .flag { display: inline-block; min-width: 26px; font-size: 10.5px; font-weight: 800; padding: 2px 6px;
  border-radius: 5px; background: #1B5E20; color: #F4E7B8; margin-right: 7px; text-align: center; letter-spacing: .4px; }
.vc-fb-tr .flag.uz { background: #C9A227; color: #3A2E06; }
.vc-fb-def { margin-top: 8px; font-style: italic; color: #6b7568; font-size: 14px; }
.vc-fb-next { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 13px; color: #6b7568; flex-wrap: wrap; }
.vc-fb-next .btn { margin-left: auto; }

/* ---------- главная тренажёра ---------- */
.vc-hero { display: flex; gap: 20px; align-items: center; background: linear-gradient(160deg, #FFFFFF, #F5FAF3);
  border: 1px solid #DCE6DA; border-radius: 18px; padding: 20px; flex-wrap: wrap; }
.vc-hero-l { flex: none; }
.vc-hero-r { flex: 1; min-width: 240px; }
.vc-goal-ring, .vc-done-ring { --p: 0; width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#C9A227 calc(var(--p) * 1%), #E7E3D2 0); position: relative; margin: 0 auto; }
.vc-goal-ring::after, .vc-done-ring::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.vc-goal-ring span, .vc-done-ring span { position: relative; z-index: 1; font-size: 25px; font-weight: 800; color: #123A16; }
.vc-goal-ring i { font-style: normal; font-size: 14px; color: #8b9487; }
.vc-done-ring { width: 140px; height: 140px; }
.vc-kpis { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.vc-kpi { background: #fff; border: 1px solid #E6E2D2; border-radius: 12px; padding: 9px 14px; text-align: center; min-width: 78px; }
.vc-kpi b { display: block; font-size: 21px; color: #1B5E20; line-height: 1.1; }
.vc-kpi span { font-size: 11.5px; color: #7b8577; }
.vc-kpi.gold { background: #FBF4DC; border-color: #C9A227; }
.vc-kpi.gold b { color: #8A6D14; }
.vc-start { width: 100%; font-size: 17px; padding: 15px; }

/* столбики уровней */
.vc-bars { display: flex; align-items: flex-end; gap: 7px; height: 120px; margin: 12px 0; }
.vc-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; position: relative; }
.vc-bar-fill { width: 100%; min-height: 4px; background: linear-gradient(180deg, #C9A227, #1B5E20); border-radius: 6px 6px 0 0; transition: height .5s; }
.vc-bar-n { font-size: 11.5px; font-weight: 700; color: #1B5E20; margin-top: 3px; }
.vc-bar-l { font-size: 11px; color: #8b9487; }

/* режимы */
.vc-modes { display: flex; flex-direction: column; gap: 6px; }
.vc-mode-opt { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px;
  background: #fff; border: 1px solid #E6E2D2; cursor: pointer; font-size: 14px; }
.vc-mode-opt:hover { border-color: #C9A227; }
.vc-mode-opt input { accent-color: #1B5E20; }

/* трудные слова */
.vc-weak { display: flex; flex-direction: column; gap: 5px; }
.vc-wrow { display: flex; align-items: center; gap: 10px; padding: 8px 11px; background: #FEF7F7;
  border: 1px solid #F0DADA; border-radius: 10px; font-size: 14px; flex-wrap: wrap; }
.vc-wrow b { min-width: 120px; color: #123A16; }
.vc-wrow .uz { color: #8A6D14; font-size: 13px; }
.vc-wrow i { margin-left: auto; font-style: normal; font-size: 12px; color: #C62828; font-weight: 700; }

/* список слов */
.vc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 12px;
  max-height: 520px; overflow: auto; padding-right: 4px; }
.vc-item { background: #fff; border: 1px solid #E6E2D2; border-radius: 12px; padding: 11px 13px; }
.vc-item:hover { border-color: #C9A227; }
.vc-item-h { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.vc-item-h b { font-size: 16px; color: #123A16; }
.vc-item-tr { font-size: 13.5px; margin-top: 4px; }
.vc-item-tr .flag { display: inline-block; min-width: 24px; font-size: 9.5px; font-weight: 800; padding: 1px 5px;
  border-radius: 4px; background: #1B5E20; color: #F4E7B8; margin-right: 6px; text-align: center; }
.vc-item-tr .flag.uz { background: #C9A227; color: #3A2E06; }
.vc-item-def { font-size: 12.5px; font-style: italic; color: #8b9487; margin-top: 5px; }
.vc-badge { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: #ECECEC; color: #666; }
.vc-badge.new { background: #E8F2E6; color: #1B5E20; }
.vc-badge.done { background: #FBF4DC; color: #8A6D14; }

/* финиш */
.vc-done { text-align: center; background: linear-gradient(165deg, #FFFFFF, #F6FBF4); border: 1px solid #DCE6DA;
  border-radius: 18px; padding: 26px 20px; }
.vc-mistakes { margin-top: 16px; text-align: left; background: #FEF7F7; border: 1px solid #F0DADA;
  border-radius: 12px; padding: 12px 14px; }
.vc-mrow { font-size: 14px; padding: 4px 0; border-bottom: 1px solid rgba(0,0,0,.05); }
.vc-mrow:last-child { border-bottom: none; }

@media (max-width: 600px) {
  .vc-word { font-size: 31px; }
  .vc-opts.cols { grid-template-columns: 1fr; }
  .vc-opt { min-height: 48px; }
  .vc-hero { flex-direction: column; }
  .vc-list { grid-template-columns: 1fr; max-height: none; }
  .vc-bars { height: 96px; }
}

/* ============================================================
   IRT — адаптивный тест и отчёт
   ============================================================ */
.irt-hero { display: flex; gap: 18px; flex-wrap: wrap; background: linear-gradient(160deg, #FFFFFF, #F5FAF3);
  border: 1px solid #DCE6DA; border-radius: 18px; padding: 20px; }
.irt-total { flex: none; min-width: 190px; text-align: center; padding: 16px 20px;
  background: linear-gradient(165deg, #1B5E20, #14461a); border-radius: 16px; color: #F4E7B8; }
.irt-total b { display: block; font-size: 46px; line-height: 1; color: #F7DE8B; }
.irt-total span { display: block; font-size: 12.5px; margin-top: 6px; opacity: .9; }
.irt-total i { display: block; font-style: normal; font-size: 12px; margin-top: 8px; opacity: .75; }
.irt-secs { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 260px; }
.irt-sec { background: #fff; border: 1px solid #E6E2D2; border-radius: 14px; padding: 14px; text-align: center; }
.irt-sec b { display: block; font-size: 30px; color: #1B5E20; line-height: 1; }
.irt-sec span { display: block; font-size: 12.5px; color: #7b8577; margin-top: 4px; }
.irt-sec i { display: block; font-style: normal; font-size: 11.5px; color: #9aa; margin: 6px 0 10px; }
.irt-score { font-size: 64px; font-weight: 800; color: #1B5E20; line-height: 1; }
.irt-band { margin-top: 6px; font-size: 13px; color: #8A6D14; font-weight: 600; }
.irt-b { font-size: 11.5px; color: #8b9487; }
.irt-b i { font-style: normal; opacity: .7; }
.irt-formula { text-align: center; font-family: Georgia, serif; font-size: 17px; background: #FBF4DC;
  border: 1px solid #E8D9A6; border-radius: 10px; padding: 12px; margin: 10px 0; color: #3A2E06; }
.irt-expl { text-align: left; background: #F6FBF4; border: 1px solid #DCE6DA; border-radius: 14px;
  padding: 14px 16px; margin-top: 16px; font-size: 14px; line-height: 1.55; }
.irt-expl b { color: #123A16; }
.irt-items { text-align: left; margin-top: 16px; }
.irt-row { display: flex; align-items: center; gap: 10px; padding: 7px 11px; border-bottom: 1px solid #EFEBDC; font-size: 13.5px; }
.irt-row.sur { background: #FBF4DC; border-radius: 8px; }
.irt-n { min-width: 26px; color: #9aa; }
.irt-bb { min-width: 74px; color: #6b7568; }
.irt-pp { color: #8b9487; }
.irt-flag { margin-left: auto; font-size: 11.5px; font-weight: 700; color: #8A6D14; }
.irt-grid { display: flex; gap: 8px; margin-top: 12px; }
@media (max-width: 620px) { .irt-secs { grid-template-columns: 1fr; } .irt-total { width: 100%; } }
