.study-root{min-width:0}.study-root button{touch-action:manipulation}.study-root .study-filter-group{display:grid;gap:8px}.study-root .study-filter-label{font-size:13px;font-weight:650;color:var(--muted)}.study-root .study-filters{gap:8px}.study-root .study-filters button{font-size:14px;max-width:100%;overflow-wrap:anywhere}.study-root .study-topic-picker{margin:18px 0 4px}.study-root .study-topic-picker .study-filters{margin-top:12px}.study-root .study-card-controls,.study-root .study-game-launch{padding-top:18px;margin-top:18px;border-top:1px solid var(--line)}.study-root .study-filter-count{margin:14px 0 0}.study-root .study-card-tags{margin:18px 0 14px}.study-root .study-stage{outline-offset:5px}.study-root .study-front{white-space:pre-line;font-size:clamp(20px,3vw,27px);line-height:1.6;max-width:72ch;overflow-wrap:anywhere;margin:22px 0}.study-root .study-recall-hint{margin-bottom:22px}.study-root .study-card-answer{padding:20px;background:var(--soft);border-radius:12px;margin:24px 0;animation:study-appear .14s ease-out}.study-root .study-answer-label{display:block;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--green);margin-bottom:10px}.study-root .study-back{white-space:pre-line;overflow-wrap:anywhere}.study-root .study-example{margin-top:16px;padding-top:14px;border-top:1px solid var(--line);white-space:pre-line;overflow-wrap:anywhere}.study-root .study-example b{font-size:12px;color:var(--muted)}.study-root .study-tip{margin:16px 0 0;font-size:14px;white-space:pre-line;overflow-wrap:anywhere}.study-root .study-learning-actions{margin-top:24px}.study-root .study-card-navigation{margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}.study-root .study-review-badge{background:var(--bg);color:var(--ink);border:1px solid var(--line)}.study-root .study-new-badge{background:var(--bg);color:var(--muted)}.study-root .study-status{min-height:24px;margin:0;overflow-wrap:anywhere}.study-root .study-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.study-root .study-mode{display:grid;gap:8px;text-align:left;padding:18px;align-content:start}.study-root .study-mode b{font-size:17px;line-height:1.4}.study-root .study-mode span{font-size:13px;line-height:1.6}.study-root .study-mode[aria-pressed=true] span{color:inherit}.study-root .study-empty-note{color:var(--muted);margin-top:14px}.study-root .study-points{font-weight:700;font-variant-numeric:tabular-nums}.study-root .study-progress{display:block;width:100%;height:7px;border:0;border-radius:10px;background:var(--line);accent-color:var(--green);margin:16px 0 28px;overflow:hidden}.study-root .study-progress::-webkit-progress-bar{background:var(--line)}.study-root .study-progress::-webkit-progress-value{background:var(--green);border-radius:10px}.study-root .study-progress::-moz-progress-bar{background:var(--green);border-radius:10px}.study-root .study-context{padding:16px 20px;border-left:3px solid var(--green);background:var(--soft);border-radius:0 9px 9px 0;line-height:1.85;white-space:pre-line;overflow-wrap:anywhere;margin:18px 0 24px}.study-root .study-question-prompt{white-space:pre-line;overflow-wrap:anywhere;font-size:21px;line-height:1.65;margin-bottom:22px}.study-root .study-option-list{display:grid;gap:10px;margin:22px 0}.study-root .study-option{display:flex;gap:12px;align-items:center;text-align:left;width:100%;min-height:58px;padding:12px 16px;overflow-wrap:anywhere;line-height:1.5}.study-root .study-option>span[lang=en]{min-width:0;flex:1}.study-root .study-option-letter{display:flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;border:1px solid var(--line);border-radius:7px;font-size:12px;font-weight:700}.study-root .study-option:disabled{opacity:1;cursor:default}.study-root .study-option:disabled:not(.study-option-correct):not(.study-option-wrong){color:var(--muted)}.study-root .study-option-correct{border:2px solid var(--green);background:var(--soft);padding:11px 15px}.study-root .study-option-wrong{border:2px solid var(--bad);padding:11px 15px}.study-root .study-option-mark{font-size:12px;font-weight:650;flex:0 0 auto}.study-root .study-option-correct .study-option-mark{color:var(--green)}.study-root .study-option-wrong .study-option-mark{color:var(--bad)}.study-root .study-question-feedback{padding:18px;background:var(--soft);border-radius:10px;margin:20px 0}.study-root .study-question-feedback p:last-child{margin-bottom:0}.study-root .study-result-score{font-size:42px;line-height:1.3;font-weight:700;letter-spacing:-.035em;margin:20px 0 12px;font-variant-numeric:tabular-nums}.study-root .study-score-word{font-size:16px;letter-spacing:0;font-weight:400;color:var(--muted)}.study-root .study-round-review{margin-top:30px;padding-top:24px;border-top:1px solid var(--line)}.study-root .study-review-item{padding:14px 0;border-bottom:1px solid var(--line);margin:0}.study-root .study-review-item summary{font-size:15px}.study-root .study-review-item .study-question-prompt{font-size:18px;margin-top:16px}.study-root .study-review-item p{overflow-wrap:anywhere}.study-root .study-history summary{font-size:17px;font-weight:650}.study-root .study-history>p{margin-top:14px}.study-root .study-history-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.study-root .study-history-score{white-space:nowrap;font-weight:650;font-variant-numeric:tabular-nums}.study-root .study-ready p:last-child{margin-bottom:0}@keyframes study-appear{from{opacity:.5;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.study-root .study-card-answer{animation:none}}@media(max-width:700px){.study-root .study-mode-grid{grid-template-columns:1fr}.study-root .study-mode{gap:4px;padding:16px}.study-root .study-mode b{font-size:16px}.study-root .study-context{padding:14px}.study-root .study-option{gap:9px;padding:12px}.study-root .study-option-correct,.study-root .study-option-wrong{padding:11px}.study-root .study-option-mark{max-width:60px;white-space:normal;line-height:1.3}.study-root .study-card-answer{padding:16px}.study-root .study-learning-actions button{flex:1 1 auto}.study-root .study-learning-actions button.primary{flex-basis:100%}.study-root .study-game-launch .primary{width:100%}.study-root .study-filter-count{line-height:1.7}.study-root .study-question-prompt{font-size:19px}.study-root .study-front{font-size:21px}.study-root .study-result-score{font-size:36px}.study-root .study-filters button{flex:1 1 auto}.study-root .study-card-controls button{width:100%}}
/* Cursos y lecciones: el ámbito se comparte entre tarjetas y juegos. */
.study-root .study-course-scope{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--line)}
.study-root .study-course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:9px}
.study-root .study-course-grid button{display:grid;align-content:start;gap:6px;padding:15px;text-align:left;overflow-wrap:anywhere;min-width:0}
.study-root .study-course-grid button b{font-size:15px;line-height:1.4}
.study-root .study-course-grid button span{font-size:12px;line-height:1.6;color:var(--muted)}
.study-root .study-course-grid button[aria-pressed=true] span{color:inherit;opacity:.85}
.study-root .study-lesson-picker{margin:18px 0 0}
.study-root .study-lesson-picker .study-filters{margin-top:12px}
.study-root .study-scope-label{margin:12px 0 0}
/* La tarjeta completa es un botón: también gira con Intro o Espacio. */
.study-root .study-flip{display:block;width:100%;padding:0;margin:20px 0;border:0;border-radius:16px;background:transparent;text-align:left;perspective:1400px;white-space:normal}
.study-root .study-flip:hover{background:transparent}
.study-root .study-flip-inner{display:grid;grid-template-columns:minmax(0,1fr);transform-style:preserve-3d;transition:transform .42s cubic-bezier(.22,.61,.36,1)}
.study-root .study-flip.is-flipped .study-flip-inner{transform:rotateY(180deg)}
.study-root .study-flip-face{display:flex;flex-direction:column;grid-area:1/1;min-height:285px;min-width:0;border:1px solid var(--line);border-radius:16px;padding:28px;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow-wrap:anywhere}
.study-root .study-flip-front{background:var(--soft);color:var(--ink);justify-content:space-between}
.study-root .study-flip-back.study-card-answer{margin:0;animation:none;transform:rotateY(180deg);background:var(--ink);color:var(--on)}
.study-root .study-flip-label,.study-root .study-flip .study-answer-label{font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:inherit;opacity:.65}
.study-root .study-flip .study-front{display:block;font-size:clamp(20px,3vw,29px);line-height:1.55;margin:20px 0;max-width:none}
.study-root .study-flip .study-back{display:block;line-height:1.7;font-size:18px}
.study-root .study-flip .study-example{display:block;border-top:1px solid currentColor;line-height:1.6}
.study-root .study-flip .study-example b{color:inherit;opacity:.7}
.study-root .study-flip .study-tip{display:block;line-height:1.7}
.study-root .study-flip-hint{display:block;font-size:12px;line-height:1.6;font-weight:500;opacity:.65;margin-top:20px}
.study-root .study-learning-actions{gap:10px}
.study-root .study-learning-actions button{min-width:112px}
.study-root .study-learning-actions>span{margin-left:auto;font-size:12px}
@media(max-width:700px){.study-root .study-course-grid{grid-template-columns:1fr}.study-root .study-course-grid button{gap:3px;padding:14px}.study-root .study-flip-face{padding:21px;min-height:290px}.study-root .study-flip .study-front{font-size:23px}.study-root .study-flip .study-back{font-size:17px}.study-root .study-learning-actions>span{width:100%;margin:0}.study-root .study-learning-actions button{flex:1 1 40%}}
@media(prefers-reduced-motion:reduce){.study-root .study-flip-inner{transition:none}.study-root .study-card-answer{animation:none}}

/* Acentos semánticos: el color acompaña siempre una palabra o un símbolo. */
.stack,.row,.row>label{min-width:0}.row>label{max-width:100%}#restore-progress{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;margin-top:6px}.correct{color:var(--success)}.incorrect{color:var(--review)}.feedback:has(>.correct){background:var(--success-bg);border-left:3px solid var(--success)}.feedback:has(>.incorrect){background:var(--review-bg);border-left:3px solid var(--review)}button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible{outline-color:var(--accent-blue)}.learning-tile:nth-child(1) .tile-number{color:var(--accent-blue)}.learning-tile:nth-child(2) .tile-number{color:var(--review)}.learning-tile:nth-child(3) .tile-number{color:var(--success)}.exam-path:first-child .badge{background:var(--blue-bg);color:var(--accent-blue)}.exam-path:last-child .badge{background:var(--review-bg);color:var(--review)}
.study-root .study-option-correct{border-color:var(--success);background:var(--success-bg)}.study-root .study-option-correct .study-option-mark{color:var(--success)}.study-root .study-option-wrong{border-color:var(--review);background:var(--review-bg)}.study-root .study-option-wrong .study-option-mark{color:var(--review)}.study-root .study-review-badge{background:var(--review-bg);color:var(--review);border-color:#e9d6b9}.study-root .study-new-badge{background:var(--blue-bg);color:var(--accent-blue)}.study-root .study-question-feedback:has(.correct){background:var(--success-bg)}.study-root .study-question-feedback:has(.incorrect){background:var(--review-bg)}.course-module .course-feedback.course-feedback-correct{background:var(--success-bg);border-color:var(--success)}.course-module .course-feedback.course-feedback-correct>strong{color:var(--success)}.course-module .course-feedback.course-feedback-review{background:var(--review-bg);border-color:var(--review)}.course-module .course-feedback.course-feedback-review>strong{color:var(--review)}
