/* Procvičování – kvízy, cvičení, kartičky (practice.js) */
.pr-app { margin-top: 1.5rem }
.pr-card-box { background:#fff; border:1px solid #e5e7eb; border-radius:18px; padding:1.25rem; margin-bottom:1.5rem; box-shadow:0 1px 2px rgba(15,23,42,.04) }
@media (min-width:640px) { .pr-card-box { padding:2rem } }
.pr-center { text-align:center }
.pr-center.pr-actions { justify-content:center }
.pr-big-icon { font-size:3rem; line-height:1; margin-bottom:.75rem }
.pr-h2 { font-size:1.35rem; font-weight:700; color:#0f172a; margin:0 0 .5rem }
.pr-h3 { font-size:1.05rem; font-weight:700; color:#1e293b; margin:1.5rem 0 .6rem }
.pr-muted { color:#64748b; line-height:1.65; max-width:42rem; margin:0 auto .75rem }
.pr-card-box:not(.pr-center) .pr-muted { margin-left:0 }
.pr-best { display:inline-block; background:#ecfdf5; color:#047857; font-size:.9rem; font-weight:600; padding:.35rem .8rem; border-radius:999px; margin:.25rem 0 1rem }
.pr-small { font-size:.85rem; color:#64748b; margin-top:.35rem }
.pr-hint { font-size:.85rem; color:#94a3b8; margin:.25rem 0 .5rem }

.pr-btn { display:inline-flex; align-items:center; justify-content:center; gap:.4rem; background:#1d4ed8; color:#fff; font-weight:600;
    padding:.7rem 1.25rem; border-radius:12px; border:2px solid #1d4ed8; cursor:pointer; text-decoration:none; transition:background .15s, transform .1s; font-size:.95rem }
.pr-btn:hover { background:#1e40af; border-color:#1e40af }
.pr-btn:active { transform:translateY(1px) }
.pr-btn:disabled { opacity:.45; cursor:not-allowed }
.pr-btn-lg { font-size:1.05rem; padding:.85rem 1.75rem; margin-top:.5rem }
.pr-btn-ghost { background:#fff; color:#1d4ed8; border-color:#bfdbfe }
.pr-btn-ghost:hover { background:#eff6ff; border-color:#93c5fd }
.pr-btn-ok { background:#059669; border-color:#059669 }
.pr-btn-ok:hover { background:#047857; border-color:#047857 }
.pr-actions { display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1.25rem }

.pr-progress { margin-bottom:1.25rem }
.pr-progress-label { font-size:.85rem; color:#64748b; font-weight:600; margin-bottom:.4rem }
.pr-progress-track { height:8px; background:#f1f5f9; border-radius:999px; overflow:hidden }
.pr-progress-fill { height:100%; background:linear-gradient(90deg,#2563eb,#7c3aed); border-radius:999px; transition:width .3s }

.pr-question { font-size:1.2rem; font-weight:600; color:#0f172a; line-height:1.55; margin-bottom:1rem }
.pr-question code, .pr-option code, .pr-explain code, .pr-review code, .pr-check-label code, .pr-flip code { background:#f1f5f9; padding:1px 6px; border-radius:5px; font-family:ui-monospace,Consolas,monospace; font-size:.92em }
.pr-question kbd, .pr-option kbd, .pr-explain kbd, .pr-flip kbd, .pr-check-label kbd { display:inline-block; background:#fff; border:1px solid #cbd5e1; border-bottom-width:3px; border-radius:6px; padding:0 .4rem; font-size:.85em; font-family:inherit; line-height:1.6 }
.pr-q-img { max-width:100%; border-radius:12px; border:1px solid #e5e7eb; margin:0 0 1rem }
.pr-answers { display:flex; flex-direction:column; gap:.5rem }
.pr-option { display:flex; align-items:flex-start; gap:.75rem; padding:.8rem 1rem; border:2px solid #e5e7eb; border-radius:12px; cursor:pointer; transition:border-color .15s, background .15s; line-height:1.5; color:#1e293b }
.pr-option:hover { border-color:#93c5fd; background:#f8fafc }
.pr-option input { margin-top:.3rem; width:1.1rem; height:1.1rem; flex-shrink:0; accent-color:#1d4ed8 }
.pr-option:has(input:checked) { border-color:#1d4ed8; background:#eff6ff }
.pr-option.pr-correct { border-color:#10b981 !important; background:#ecfdf5 !important }
.pr-option.pr-wrong { border-color:#ef4444 !important; background:#fef2f2 !important }
.pr-option.pr-missed { box-shadow:inset 0 0 0 2px #10b981 }
.pr-option input:disabled { cursor:default }

.pr-input { width:100%; border:2px solid #e5e7eb; border-radius:12px; padding:.7rem .9rem; font-size:1rem; color:#0f172a; background:#fff; outline:none; transition:border-color .15s }
.pr-input:focus { border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.15) }
.pr-textarea { resize:vertical; min-height:5rem }
.pr-input-ok { border-color:#10b981; background:#ecfdf5 }
.pr-input-bad { border-color:#ef4444; background:#fef2f2 }
.pr-input-row { display:flex; align-items:center; gap:.5rem }
.pr-input-row .pr-input { flex:1; min-width:0 }
.pr-unit { color:#64748b; font-weight:600; white-space:nowrap }

.pr-feedback { margin-top:1rem; border-radius:12px; line-height:1.6 }
.pr-feedback:empty { display:none }
.pr-fb-ok, .pr-fb-bad, .pr-fb-info { padding:1rem 1.1rem }
.pr-fb-ok { background:#ecfdf5; border:1px solid #a7f3d0; color:#065f46 }
.pr-fb-bad { background:#fef2f2; border:1px solid #fecaca; color:#7f1d1d }
.pr-fb-info { background:#eff6ff; border:1px solid #bfdbfe; color:#1e3a8a }
.pr-fb-title { font-weight:700; margin:0 0 .25rem }
.pr-explain { margin-top:.4rem; color:#334155 }
.pr-explain p { margin:.25rem 0 }

.pr-result { display:flex; align-items:center; gap:1.25rem; padding:1.25rem; border-radius:16px; flex-wrap:wrap }
.pr-result-ok { background:linear-gradient(135deg,#ecfdf5,#d1fae5); color:#065f46 }
.pr-result-bad { background:linear-gradient(135deg,#fff7ed,#ffedd5); color:#7c2d12 }
.pr-result-pct { font-size:2.75rem; font-weight:800; line-height:1 }
.pr-result-title { font-size:1.15rem; font-weight:700; margin:0 0 .2rem }
.pr-review { display:flex; flex-direction:column; gap:.6rem; text-align:left; margin-top:.5rem }
.pr-review-item { border:1px solid #e5e7eb; border-radius:12px; padding:.8rem 1rem; background:#fafafa; line-height:1.55 }
.pr-review-q { font-weight:600; color:#0f172a; margin-bottom:.25rem }
.pr-review-given { color:#b91c1c; font-size:.92rem; margin:.15rem 0 }
.pr-review-correct { color:#047857; font-size:.92rem; margin:.15rem 0 }

.pr-checks { display:flex; flex-direction:column; gap:.75rem }
.pr-check-row { border:1px solid #e5e7eb; border-radius:12px; padding:.8rem 1rem; transition:border-color .15s, background .15s }
.pr-check-label { display:block; font-weight:600; color:#1e293b; margin-bottom:.45rem; line-height:1.5 }
.pr-row-ok { border-color:#10b981; background:#f0fdf4 }
.pr-row-bad { border-color:#fca5a5; background:#fff7f7 }
.pr-mark { width:1.5rem; text-align:center; font-weight:800; font-size:1.2rem }
.pr-row-ok .pr-mark { color:#059669 }
.pr-row-bad .pr-mark { color:#dc2626 }
.pr-solution { margin-top:.5rem; font-size:.92rem; color:#334155; background:#f8fafc; border-radius:8px; padding:.5rem .75rem }

.pr-checklist { display:flex; flex-direction:column; gap:.35rem }
.pr-check-item { display:flex; gap:.7rem; align-items:flex-start; padding:.55rem .75rem; border-radius:10px; cursor:pointer; line-height:1.5; color:#1e293b }
.pr-check-item:hover { background:#f8fafc }
.pr-check-item input { margin-top:.3rem; width:1.1rem; height:1.1rem; flex-shrink:0; accent-color:#059669 }
.pr-check-item:has(input:checked) span { color:#64748b; text-decoration:line-through; text-decoration-color:#94a3b8 }

.pr-cards-top { display:flex; flex-wrap:wrap; gap:1rem; align-items:flex-end; margin-bottom:.5rem }
.pr-switch { display:flex; align-items:center; gap:.4rem; font-size:.85rem; color:#475569; cursor:pointer; margin-bottom:1.25rem }
.pr-flip { display:block; width:100%; perspective:1200px; background:none; border:0; padding:0; cursor:pointer; min-height:260px }
.pr-flip-inner { position:relative; width:100%; min-height:260px; transition:transform .5s; transform-style:preserve-3d }
.pr-flip.pr-flipped .pr-flip-inner { transform:rotateY(180deg) }
.pr-flip-face { position:absolute; inset:0; backface-visibility:hidden; -webkit-backface-visibility:hidden; border-radius:18px; display:flex; flex-direction:column;
    align-items:center; justify-content:center; padding:1.5rem; text-align:center }
.pr-flip-front { background:linear-gradient(135deg,#1d4ed8,#6d28d9); color:#fff }
.pr-flip-back { background:#fff; border:2px solid #c7d2fe; color:#1e293b; transform:rotateY(180deg) }
.pr-flip-text { font-size:1.8rem; font-weight:700; line-height:1.3 }
.pr-flip-small { font-size:1.08rem; font-weight:500; line-height:1.6 }
.pr-flip-hint { margin-top:1rem; font-size:.8rem; opacity:.75 }
.pr-flip-ex { margin-top:.75rem; font-size:.9rem; color:#64748b }
.pr-flip:focus-visible { outline:3px solid #93c5fd; outline-offset:4px; border-radius:18px }
