/* MigoQuest practice: one clear prompt, one math canvas, one next action. */
.vm-practice{--vm-ink:#193e50;--vm-muted:#56717e;--vm-accent:#176f89;--vm-line:#d5e1e7;width:min(100%,940px);margin:0 auto;padding:20px 24px;box-sizing:border-box;color:var(--vm-ink)}
.vm-practice *{box-sizing:border-box}
.vm-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.vm-top h1{margin:0;font-size:1.5rem;line-height:1.3;letter-spacing:-.02em}
.vm-top>span{font-size:.95rem;font-weight:650;color:var(--vm-muted);font-variant-numeric:tabular-nums}
.vm-practice progress{display:block;width:100%;height:6px;border:0;border-radius:6px;overflow:hidden;background:#e6eef2;accent-color:var(--vm-accent)}
.vm-practice progress::-webkit-progress-bar{background:#e6eef2}
.vm-practice progress::-webkit-progress-value{background:var(--vm-accent);border-radius:6px}
.vm-practice .vm-paper{margin:20px 0 14px;padding:28px;background:#fff;border:1px solid #dce7ed;border-radius:16px;box-shadow:none;color:var(--vm-ink)}
.vm-practice .vm-prompt{margin:0 0 24px;color:var(--vm-ink);font-size:clamp(1.2rem,2.5vw,1.55rem);line-height:1.45;font-weight:650;letter-spacing:-.01em}
.vm-question-heading{text-align:center;margin:0 0 24px}
.vm-instruction{margin:0 0 10px;color:var(--vm-muted);font-size:1rem;font-weight:550}
.vm-practice .vm-equation{margin:0;color:var(--vm-ink);font-size:clamp(2.5rem,5vw,3.5rem);line-height:1.15;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.015em}
.vm-task-note{margin:10px 0 0;color:var(--vm-muted);font-size:.95rem;line-height:1.4}
.vm-practice #vm-question:focus{outline:none}
.vm-model{display:block;width:100%;height:auto;max-width:min(360px,var(--vm-model-width,360px));margin:18px auto}
.vm-grid-model{max-height:360px}
.vm-model-note{text-align:center;color:var(--vm-muted);font-size:1rem}
.vm-zero{padding:22px;text-align:center;border:1px dashed #a9bdc8;border-radius:10px;color:var(--vm-muted);font-size:1rem;line-height:1.5}
.vm-area{max-width:360px;margin:22px auto;text-align:center}
.vm-area>div{display:flex;align-items:center;gap:12px}
.vm-area b{max-width:85px}
.vm-rectangle{flex:1;min-height:60px;max-height:300px;border:2px solid #397990;background:repeating-linear-gradient(0deg,transparent 0 calc(100% / var(--vm-rows) - 1px),#99bdcc calc(100% / var(--vm-rows) - 1px) calc(100% / var(--vm-rows))),repeating-linear-gradient(90deg,#edf5f8 0 calc(100% / var(--vm-cols) - 1px),#99bdcc calc(100% / var(--vm-cols) - 1px) calc(100% / var(--vm-cols)))}
.vm-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px;align-items:stretch;margin:0 0 22px}
.vm-choices--models{grid-template-columns:repeat(3,minmax(0,1fr))}
.vm-choices--models:has(>:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}
.vm-practice .vm-choice{display:flex;flex-direction:column;align-items:stretch;gap:14px;margin:0;padding:14px;border:1.5px solid #c7d7df;border-radius:12px;background:#fff;color:var(--vm-ink);text-align:left;font:inherit;box-shadow:none;transform:none;transition:border-color .12s,background-color .12s;min-width:0;min-height:48px;white-space:normal;cursor:pointer}
.vm-practice .vm-choice:hover:not(:disabled){border-color:var(--vm-accent);background:#f7fbfc;transform:none}
.vm-choice-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.vm-choice-letter{display:grid;place-items:center;width:27px;height:27px;border:1px solid #c5d5dd;border-radius:50%;background:#fff;color:#405d6b;font-size:13px;font-weight:750;line-height:1;flex-shrink:0}
.vm-choice-check{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;color:white;background:var(--vm-accent);visibility:hidden;font-size:14px;line-height:1}
.vm-practice .vm-choice[aria-pressed=true]{border-color:var(--vm-accent);background:#f0f8fb;outline:none;box-shadow:inset 0 0 0 .5px var(--vm-accent)}
.vm-choice[aria-pressed=true] .vm-choice-check{visibility:visible}
.vm-choice[aria-pressed=true] .vm-choice-letter{background:var(--vm-accent);border-color:var(--vm-accent);color:white}
.vm-practice .vm-choice:focus-visible{outline:3px solid var(--vm-accent);outline-offset:3px}
.vm-choice-stage{display:flex;align-items:flex-start;justify-content:center;min-height:0;width:100%;padding:4px 0 10px}
.vm-practice .vm-choice .vm-grid-model{display:block;width:100%;height:auto;max-width:var(--vm-model-width,100%);max-height:none;margin:0;flex-shrink:1}
.vm-choice-stage .vm-area{margin:0;width:100%}
.vm-choice-equation{display:block;padding:6px 0 10px;text-align:center;font-size:clamp(1.1rem,2.5vw,1.35rem);font-weight:650;line-height:1.45}
.vm-choice-caption{display:block;text-align:center;font-size:.9rem;line-height:1.4;color:var(--vm-muted)}
.vm-practice .vm-choice:disabled{opacity:1;cursor:default}
.vm-practice .vm-choice[data-vm-result=correct]{border-color:#278267;background:#f0faf5;box-shadow:none}
.vm-practice .vm-choice[data-vm-result=correct] .vm-choice-check{visibility:visible;background:#278267}
.vm-practice .vm-choice[data-vm-result=retry]{border-style:dashed;border-color:#a77727;background:#fffbf2;box-shadow:none}
.vm-practice .vm-choice[data-vm-result=retry] .vm-choice-check{visibility:hidden}
.vm-answer{display:grid;gap:8px;max-width:380px;margin:20px auto;font-size:1rem;font-weight:600}
.vm-answer input{width:100%;min-width:0;min-height:56px;padding:12px;font-size:2rem;text-align:center;border:1.5px solid #b3c8d3;border-radius:10px}
.vm-practice .vm-submit{display:block;margin:22px auto 0;min-height:48px;width:min(100%,320px);font-size:1.05rem}
.vm-build{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:480px;margin:0 auto 20px}
.vm-build-control>label{display:block;margin-bottom:8px;font-size:.95rem;font-weight:650;color:var(--vm-muted)}
.vm-stepper{display:grid;grid-template-columns:46px minmax(40px,1fr) 46px;align-items:center;border:1px solid #bbcfda;border-radius:10px;background:#fff;overflow:hidden}
.vm-practice .vm-stepper button{padding:0;min-height:46px;border:0;border-radius:0;background:#f0f6f8;color:var(--vm-ink);box-shadow:none;font-size:1.45rem}
.vm-stepper input{width:100%;min-width:0;padding:7px 2px;border:0;border-radius:0;background:white;color:var(--vm-ink);font:inherit;font-size:1.3rem;text-align:center;appearance:textfield}
.vm-stepper input::-webkit-inner-spin-button,.vm-stepper input::-webkit-outer-spin-button{appearance:none;margin:0}
.vm-build-canvas{padding:12px;border-radius:12px;background:#f7fafb;border:1px solid #e3ecf0}
.vm-build-canvas .vm-model{margin:8px auto}
.vm-build-equation{display:block;margin:12px 0 0;text-align:center;color:var(--vm-ink);font-size:1.35rem;font-weight:650}
.vm-practice [data-vm-feedback]{margin:20px 0 0;padding:15px 18px;border-radius:10px;background:#f1f6f8;color:var(--vm-ink);font-size:1.05rem;line-height:1.6}
.vm-practice [data-vm-feedback]:empty{display:none}
.vm-practice [data-vm-feedback][data-result=correct]{background:#eff9f3}
.vm-practice [data-vm-feedback][data-result=review]{background:#fff8ea}
.vm-practice .vm-paper>.actions{display:flex;justify-content:center;gap:12px;margin-top:16px}
.vm-practice .vm-paper>.actions:has([data-vm=next]:not([hidden])){justify-content:flex-end}
.vm-practice button{min-height:46px;white-space:normal}
.vm-practice :focus-visible,.vm-fact-details summary:focus-visible{outline:3px solid #176f89;outline-offset:3px}
.vm-fact-details details{border-bottom:1px solid #ccd8e2;padding:12px}
.vm-fact-details summary{cursor:pointer;font-size:1rem}
.vm-fact-details dl{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.vm-fact-details dd{margin:0}
.vm-practice [hidden]{display:none!important}
@media(max-width:620px){.vm-practice{padding:12px}.vm-top h1{font-size:1.3rem}.vm-practice .vm-paper{padding:20px 16px}.vm-choices--models,.vm-choices--models:has(>:nth-child(4)){grid-template-columns:1fr}.vm-practice .vm-choice--model{display:grid;grid-template-columns:27px minmax(0,1fr);gap:14px;align-items:center;padding:14px}.vm-choice--model .vm-choice-top{display:block;position:relative;align-self:start;margin-top:5px}.vm-choice--model .vm-choice-check{position:absolute;top:37px;left:2px}.vm-choice-stage{padding:0;max-width:260px;justify-self:center}.vm-choice-caption{grid-column:2}.vm-question-heading{margin-bottom:20px}.vm-practice .actions{flex-wrap:wrap}.vm-practice .vm-paper>.actions{margin-top:14px}.vm-practice .vm-equation{font-size:2.6rem}.vm-build{gap:12px}.vm-stepper{grid-template-columns:40px minmax(32px,1fr) 40px}}
@media(prefers-reduced-motion:reduce){.vm-practice *{animation:none!important;transition:none!important}}
/* The practice library stays a working surface: facts, Mix, then optional activities. */
.vm-library{max-width:1180px;margin:0 auto}
.vm-library>h1{margin-bottom:10px}
.vm-fact-selection{padding:20px 24px;margin:24px 0;border:1px solid #c4d9e1;border-radius:14px;background:#fff}
.vm-library .section-line{margin-top:0}
.vm-library .section-line h2{margin:0;font-size:1.3rem}
.vm-library .families{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:8px;margin:16px 0}
.mq-play .vm-library .family{min-width:0;min-height:48px;padding:9px 3px;font-size:1.25rem}
.vm-fact-options{display:flex;align-items:center;flex-wrap:wrap;gap:14px 24px}
.vm-fact-options label{display:flex;align-items:center;gap:10px;font-size:.95rem}
.vm-fact-options select{min-height:44px}
.vm-library .mixes{margin:14px 0 0}
.vm-mix-feature{display:flex;align-items:center;justify-content:space-between;gap:32px;margin:0 0 34px;padding:28px 32px;background:#edf8f7;border:1px solid #a9cecc;border-left:6px solid #17818c;border-radius:16px}
.vm-mix-feature h2{font-size:2rem;margin:6px 0}
.vm-mix-feature p{margin:8px 0 16px}
.vm-mix-feature .vm-recommended{font-size:.8rem;color:#566b23;font-weight:800;letter-spacing:.08em;margin:0}
.vm-mix-feature>img{object-fit:contain;width:150px;height:150px}
.vm-mix-actions{display:flex;align-items:end;flex-wrap:wrap;gap:14px}
.vm-mix-actions label{display:grid;gap:5px;font-size:.875rem}
.vm-mix-actions select,.vm-mix-actions button{min-height:48px}
.vm-mix-actions button{font-size:1.05rem}
.vm-filters{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}
.vm-filters button{min-height:44px}
.vm-filters button[aria-pressed=true]{background:#176f89;color:#fff;border-color:#176f89}
.mq-play .vm-library-games .game-art{width:100%;height:180px;object-fit:contain;border-radius:12px;background:#eef7f7}
.mq-play .vm-library-games .game-card{gap:12px;padding:18px;min-width:0;white-space:normal;text-align:left}
.mq-play .vm-library-games .game-card>strong{font-size:1.25rem;line-height:1.25}
.mq-play .vm-library-games .play-link{margin-top:auto;min-height:44px;display:flex;align-items:center}
.mq-play .vm-library [hidden]{display:none!important}
.vm-print-options{margin-top:30px}
.vm-product-target{text-align:center;margin:0 auto 24px}
.vm-product-target>span{display:block;color:var(--vm-muted);font-size:.85rem}
.vm-product-target>strong{display:inline-grid;place-items:center;min-width:90px;min-height:90px;border-radius:50%;background:#fff0bb;color:var(--vm-ink);font-size:2.5rem;padding:10px;margin-top:6px}
.vm-choices--multi,.vm-choices--models.vm-choices--multi{grid-template-columns:repeat(2,minmax(0,1fr))}
.vm-choices--multi .vm-choice{justify-content:flex-start}
.vm-tape{width:100%;max-width:650px;margin:30px auto;text-align:center}
.vm-tape-total{margin:0 0 12px;padding:0 0 12px;border-bottom:2px solid #668b99;font-size:1.15rem;font-weight:650}
.vm-tape-sections{display:grid;grid-template-columns:repeat(var(--vm-groups),minmax(0,1fr));border:2px solid #367b8c;background:#e9f6f7;border-radius:5px;overflow:hidden}
.vm-tape-sections>span{min-width:0;padding:16px 0;border-left:1px solid #367b8c;font-size:clamp(.9rem,2vw,1.3rem);font-weight:650}
.vm-tape-sections>span:first-child{border-left:0}
.vm-rectangle--unknown{background:#edf5f8}
.vm-model-actions{display:flex;justify-content:center;gap:10px;margin:14px 0}
.vm-turned .vm-model{animation:vm-turn .35s ease-out}
@keyframes vm-turn{from{transform:rotate(-90deg) scale(.85)}to{transform:rotate(0) scale(1)}}
@media(max-width:760px){.vm-library .families{grid-template-columns:repeat(7,minmax(0,1fr))}.vm-mix-feature{padding:22px;gap:14px}.vm-mix-feature>img{width:100px;height:100px}.vm-fact-selection{padding:18px}.vm-library .section-line{flex-wrap:wrap}}
@media(max-width:480px){.vm-mix-feature>img{display:none}.vm-mix-actions{align-items:stretch;flex-direction:column}.vm-library .families{gap:5px}.vm-fact-options{gap:10px}.vm-fact-selection{padding:14px}.vm-choices--multi,.vm-choices--models.vm-choices--multi{grid-template-columns:1fr}.vm-practice .vm-top h1{font-size:1.15rem}.vm-top>span{white-space:nowrap}.vm-mix-feature{padding:20px}.vm-library .section-line h2{font-size:1.2rem}}
@media(prefers-reduced-motion:reduce){.vm-turned .vm-model{animation:none}}
@media(max-width:480px){.vm-library .families{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:420px){.vm-build{grid-template-columns:minmax(0,1fr)}.vm-stepper{grid-template-columns:46px minmax(0,1fr) 46px}}
