/* Moravec's Paradox lesson. All rules scoped under .mv-* */
.mv-sc { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.mv-fine { font-size: 12px; color: var(--faint); text-align: center; }

/* ---------- the two tasks ---------- */
.mv-task { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 16px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line-strong); text-align: center; }
.mv-task small, .mv-pan small, .mv-tr.mv-th span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.mv-sum { font-family: var(--mono); font-size: 44px; font-weight: 700; line-height: 1.1; color: var(--text); }
.mv-do { font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--text); }
.mv-clock { align-self: center; min-width: 96px; padding: 6px 14px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); font-family: var(--mono); font-size: 18px; font-weight: 600; text-align: center; color: var(--dim); font-variant-numeric: tabular-nums; }
.mv-clock.on { color: var(--gold); border-color: var(--gold); }
.choices.mv-nums { display: grid; grid-template-columns: 1fr 1fr; }
.choices.mv-nums .choice { justify-content: center; font-family: var(--mono); font-size: 18px; }

/* ---------- your times ---------- */
.mv-tab { display: flex; flex-direction: column; gap: 6px; }
.mv-tr { display: grid; grid-template-columns: 1.2fr .8fr 1fr; align-items: center; gap: 8px; min-height: 52px; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.mv-tr.mv-th { min-height: 0; padding: 0 12px; background: none; border: 0; }
.mv-tr > span { font-size: 15px; font-weight: 700; line-height: 1.2; }
.mv-tr b { font-family: var(--mono); font-size: 16px; color: var(--gold); }
.mv-tr i { font-style: normal; font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--violet-bright); opacity: 0; transition: opacity .5s; }
.mv-tr:last-child i { color: var(--red); }
.mv-tab.on i { opacity: 1; }
.mv-tab.on .mv-tr:nth-child(3) i { transition-delay: .35s; }

/* ---------- two panels ---------- */
.mv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mv-pan { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line-strong); }
.mv-pan q { font-family: var(--serif); font-size: 16px; line-height: 1.3; color: var(--text); }
.mv-pan b { font-size: 16px; line-height: 1.25; }
.mv-easy { border-color: var(--violet-bright); } .mv-easy small { color: var(--violet-bright); }
.mv-hard { border-color: var(--gold); } .mv-hard small { color: var(--gold); }

/* ---------- chess ---------- */
.mv-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 18px 14px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line-strong); }
.mv-score span { font-size: 15px; font-weight: 700; color: var(--dim); text-align: center; }
.mv-score b { font-family: var(--mono); font-size: 30px; color: var(--text); }

/* ---------- skill ages ---------- */
.mv-ages { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mv-ages .slot .n { font-family: var(--sans); font-size: 13px; letter-spacing: .02em; color: var(--dim); }
.mv-ages .slot .v { font-size: 14px; }

/* ---------- the data gap ---------- */
.mv-gap { display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.mv-gr { display: flex; flex-direction: column; gap: 6px; }
.mv-gr span { font-size: 13px; font-weight: 700; color: var(--dim); }
.mv-gr b { font-family: var(--mono); font-size: 14px; color: var(--violet-bright); }
.mv-gs b { color: var(--gold); }
.mv-gt { height: 18px; border-radius: 6px; background: var(--bg); overflow: hidden; }
.mv-gt i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--violet); transition: width .9s cubic-bezier(.2,.8,.2,1); }
.mv-gs .mv-gt i { background: var(--gold); }
.mv-gap.on .mv-gr:first-child i { width: 100%; }
.mv-gap.on .mv-gs i { width: 2%; }

/* ---------- the race ---------- */
.mv-race { display: flex; flex-direction: column; gap: 8px; }
.mv-rr { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.mv-rr span { font-size: 15px; font-weight: 700; }
.mv-rr b { font-family: var(--mono); font-size: 20px; color: var(--text); }
.mv-rq { border-style: dashed; border-color: var(--line-strong); }
.mv-rq.on { border-style: solid; border-color: var(--gold); background: rgba(240,184,76,.12); }
.mv-rq.on b { color: var(--gold); animation: mvIn .35s ease-out both; }
@keyframes mvIn { from { opacity: 0; transform: translateY(6px); } }

@media (max-height: 700px) {
  .mv-task { padding: 12px 14px; gap: 6px; }
  .mv-sum { font-size: 36px; }
  .mv-do { font-size: 19px; }
  .mv-pan { padding: 10px; }
  .mv-pan q { font-size: 15px; }
}
