:root{font-family:ui-rounded,"Trebuchet MS",system-ui,sans-serif;color:#233f3d;background:#faf7ef;font-synthesis:none;--green:#236657;--muted:#5e726b;--line:#e4e7dc;--peach:#f5b59c}*{box-sizing:border-box}body{margin:0}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #b45a26;outline-offset:4px}button:disabled{cursor:default}button{border:0}h1,h2,p{margin-top:0}h1{font-size:31px;letter-spacing:-1px;margin-bottom:3px}h2{font-size:25px;letter-spacing:-.5px}a{color:var(--green)}.app{max-width:540px;margin:auto;padding:22px 18px calc(105px + env(safe-area-inset-bottom))}.top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.eyebrow{font-size:11px;letter-spacing:2px;text-transform:uppercase;font-weight:bold;color:var(--green);margin-bottom:5px}.subtitle{color:var(--muted);font-size:14px;margin:0}.streak{border:1px solid #e7d6ac;background:#fff3d6;border-radius:18px;min-width:66px;padding:11px;text-align:center;font-weight:bold}.streak span{font-size:12px;display:block;color:#766647;margin-top:3px}.progress-head{display:flex;justify-content:space-between;gap:10px;font-size:13px;margin-bottom:8px}.track{height:8px;background:#e4e8db;border-radius:9px;overflow:hidden;margin-bottom:20px}.track i{display:block;height:100%;background:var(--green);border-radius:9px;transition:width .2s}.card{background:#fff;border:1px solid var(--line);border-radius:25px;overflow:hidden;box-shadow:0 7px 0 #233f3d04}.art{background:#fffdf4;height:240px;display:flex;justify-content:center;align-items:center;position:relative}.art img{width:100%;height:100%;object-fit:contain}.art .tag{position:absolute;top:14px;left:15px;background:#ffffffed;border:1px solid var(--line);border-radius:20px;font-size:12px;padding:6px 10px}.body{padding:20px}.answers{display:grid;grid-template-columns:1fr 1fr;gap:10px}.answer{background:#fafbf6;border:2px solid #e5e9df;border-radius:15px;min-height:58px;color:#233f3d;font-size:20px;font-weight:bold;padding:11px 8px;overflow-wrap:anywhere}.answer:hover:enabled{background:#edf4e9;border-color:#8faa91}.answer.ok{background:#e3f4de;border-color:#589b5d;color:#234d29}.answer.bad{background:#ffebe5;border-color:#ca765a;color:#7c3a25}.answer:disabled{opacity:1}.feedback{margin-top:15px;border-radius:14px;padding:14px;background:#f0f7ed}.feedback.wrong{background:#fff1e9}.feedback b{display:block;margin-bottom:8px}.example{line-height:1.6;margin:8px 0 0}.muted{color:var(--muted)}.small{font-size:13px}.speak{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #cbd7cb;border-radius:12px;color:var(--green);padding:10px 12px;min-height:44px;font-weight:bold}.primary{background:var(--green);color:white;display:block;border-radius:15px;width:100%;min-height:52px;font-weight:bold;font-size:17px;margin-top:14px;padding:12px}#next{scroll-margin-bottom:calc(105px + env(safe-area-inset-bottom))}.primary:hover{background:#164f43}.ghost{display:block;background:#f0f3e9;color:var(--green);border:1px solid #dbe3d5;border-radius:13px;min-height:46px;padding:11px;width:100%;margin-top:12px;font-weight:bold}.hint{font-size:13px;line-height:1.55;color:var(--muted);text-align:center;margin:17px 5px 0}.hidden,[hidden]{display:none!important}.tabs{position:fixed;bottom:0;left:0;right:0;background:#faf7eff5;border-top:1px solid var(--line);padding:8px 12px calc(8px + env(safe-area-inset-bottom));z-index:2}.tabs>div{max-width:504px;margin:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.tab{background:transparent;color:#67766c;border-radius:14px;padding:9px 3px;min-height:56px;font-weight:bold;font-size:13px}.tab .icon{font-size:20px;display:block;margin-bottom:2px}.tab[aria-current=page]{background:#e4eddf;color:#245744}.section-heading{margin:8px 0 6px}.section-intro{line-height:1.6;font-size:14px;color:var(--muted);margin-bottom:20px}.word{display:flex;gap:14px;align-items:center;padding:15px;border-bottom:1px solid var(--line)}.word:last-child{border-bottom:0}.word img{width:95px;height:110px;object-fit:contain;border-radius:13px;background:#fffdf4}.word-info{flex:1;min-width:0}.word h3{margin:0 0 4px;font-size:22px}.word p{margin-bottom:8px;font-size:14px}.word .example{font-size:13px}.word .speak{padding:7px 10px;font-size:12px}.level{font-size:12px;letter-spacing:2px;color:var(--green);margin-top:8px}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}.stat{padding:17px 4px;text-align:center;background:#edf2e6;border-radius:16px;font-size:12px}.stat b{display:block;font-size:25px;margin-bottom:5px}.stats-card{padding:20px;margin-bottom:15px}.stats-card h3{margin:0 0 15px;font-size:17px}.record{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:12px 0}.record:last-child{border-bottom:0}.level-row{display:flex;justify-content:space-between;padding:9px 0;font-size:15px}.finish{text-align:center;padding:35px 22px}.finish-mark{width:80px;height:80px;background:#fff0ca;border-radius:50%;display:grid;place-items:center;font-size:40px;margin:0 auto 20px}.finish p{line-height:1.65}.notice{padding:12px;background:#fff1d3;border-radius:12px;font-size:13px;margin-bottom:14px;line-height:1.5}.speech-status{font-size:13px;color:var(--muted);margin:10px 0 0}.help{margin-top:20px;font-size:13px;line-height:1.7;color:var(--muted)}summary{cursor:pointer;min-height:35px}.empty-art{padding:25px;font-size:15px;text-align:center}.footer-link{display:block;text-align:center;margin-top:22px;font-size:12px}.no-script{display:block;padding:20px;background:#fff1d3}@media(min-width:600px){.app{padding-top:35px}.art{height:280px}}@media(max-width:360px){.app{padding-left:12px;padding-right:12px}.body{padding:15px}.word{padding:12px;gap:10px}.word img{width:72px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Each pronunciation control is a separate button beside the word. */
.speak{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;justify-content:center;flex-shrink:0}
.speak:hover{background:#e4eddf}.speak svg{display:block;pointer-events:none}
.word-title{display:flex;align-items:center;gap:9px;min-width:0}.word-title h3{margin:0;overflow-wrap:anywhere}
.word-info>.word-title{margin-bottom:5px}.word .speak{padding:0;font-size:inherit}
.answer-choice{display:flex;align-items:stretch;min-width:0;border:2px solid #e5e9df;border-radius:15px;background:#fafbf6}
.answer-choice .answer{flex:1;min-width:0;border:0;border-radius:12px 0 0 12px;background:transparent;padding:11px 3px 11px 9px;font-size:18px;text-align:left}
.answer-choice .speak{align-self:center;border:0;border-left:1px solid #dce3d6;border-radius:0 11px 11px 0;background:transparent;width:42px;min-width:42px}
.answer-choice:has(.answer:hover:enabled){background:#edf4e9;border-color:#8faa91}
.answer-choice.ok{background:#e3f4de;border-color:#589b5d}.answer-choice.bad{background:#ffebe5;border-color:#ca765a}
.answer-choice .answer.ok{color:#234d29}.answer-choice .answer.bad{color:#7c3a25}
.answer-choice .speak:hover{background:#dcead7}.feedback-heading{display:flex;align-items:center;gap:10px;justify-content:space-between}
.feedback-heading b{margin-bottom:0}.level-row{align-items:center}.level-row .level{margin-top:0;white-space:nowrap}
@media(max-width:360px){.answer-choice .answer{font-size:clamp(15px,4.7vw,16px);padding-left:6px;padding-right:1px}}
/* Předškolní režim: poslech je hlavní volba, písmena jsou jen vizuální nápověda. */
.prominent-audio .answer-choice .answer{font-size:clamp(22px,6vw,28px);letter-spacing:.035em;text-align:center;min-height:82px;padding:8px 2px}
.prominent-audio .answer-choice .answer-preview-last{opacity:.45}
.prominent-audio .answer-choice .answer-mark{font-size:.65em}
.prominent-audio .answer-choice .speak{align-self:stretch;width:58%;min-width:0;min-height:82px}
.prominent-audio .answer-choice .speak svg{width:32px;height:32px}
/* Číslované lekce tvoří výběr procvičování nezávislý na tematických skupinách odpovědí. */
.section-picker{padding:8px 18px 18px}.section-option{display:flex;align-items:center;gap:14px;padding:15px 4px;border-bottom:1px solid var(--line);cursor:pointer;line-height:1.4}.section-option:last-of-type{border-bottom:0}.section-option input{width:24px;height:24px;flex:none;accent-color:var(--green)}.section-option span{display:block}.section-option strong{display:block;font-size:16px}.section-option small{display:block;margin-top:3px;color:var(--muted);font-size:13px}.section-option:focus-within{outline:2px solid #b45a26;outline-offset:-2px;border-radius:8px}.section-summary{margin:16px 4px 0;font-size:14px;color:var(--muted)}.catalog-section{font-size:16px;margin:0;padding:16px 15px 12px;background:#f0f4e9;color:var(--green);border-bottom:1px solid var(--line)}.catalog-section:not(:first-child){border-top:1px solid var(--line)}

.catalog-filter{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:11px 14px;min-height:52px;cursor:pointer;font-weight:bold;margin-bottom:6px}.catalog-filter input{width:24px;height:24px;margin:0;accent-color:var(--green);flex:none}.catalog-filter:focus-within{outline:3px solid #b45a26;outline-offset:3px}.catalog-count{font-size:13px;color:var(--muted);margin:0 0 10px 2px}.catalog-empty{padding:22px 16px;margin:0;color:var(--muted);line-height:1.5}

.speech-status:not([hidden]){position:fixed;left:12px;right:12px;bottom:calc(82px + env(safe-area-inset-bottom));max-width:520px;margin:0 auto;padding:11px 14px;background:#fff1d3;border:1px solid #e7d6ac;border-radius:12px;box-shadow:0 5px 18px #233f3d22;z-index:3}

/* Společný přehled slovíček a pokroku, včetně filtru lekcí. */
.three-tabs>div{grid-template-columns:repeat(3,1fr)}
.catalog-lesson-filter{margin:0 0 12px}
.catalog-lesson-filter summary{padding:14px 16px;font-size:14px;font-weight:bold;min-height:48px;color:var(--green)}
.catalog-lesson-body{padding:0 16px 14px}
.catalog-lesson-body .section-option{padding:10px 0;gap:12px}
.catalog-lesson-body .section-option strong{font-size:14px}
.catalog-lesson-body>p{line-height:1.5;margin:12px 0 0}
#catalogMastery{margin-bottom:14px}
#wordList+.small{margin:10px 2px 20px}

/* Podobně znějící slova ve slovníčku s vlastní výslovností. */
.phonetic-neighbors{margin-top:10px;border-top:1px solid var(--line);padding-top:8px}
.phonetic-neighbors>p{margin:0 0 4px;font-size:12px;color:var(--muted)}
.phonetic-neighbor{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;line-height:1.5}
.phonetic-word{min-width:0;overflow-wrap:anywhere}
.phonetic-neighbor .speak{flex:none}

/* Volitelné kartičky: angličtina vlevo, obrázek uprostřed, čeština vpravo. */
.word-centered{display:block;padding:16px 12px}
.word-main,.phonetic-neighbor-centered{display:grid;grid-template-columns:minmax(0,1fr) clamp(76px,24vw,104px) minmax(0,1fr);gap:10px;align-items:center}
.word-main{align-items:start}
.word-centered .word-title{flex-direction:column;align-items:center;gap:7px;text-align:center;margin:0;min-width:0}
.word-centered .word-title h3{max-width:100%;font-size:clamp(13px,4vw,18px);line-height:1.25;letter-spacing:.01em;overflow-wrap:anywhere;word-break:normal;hyphens:auto}
.word-language{display:block;font-size:9px;line-height:1.2;font-weight:normal;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.word-picture{aspect-ratio:1;align-self:center;display:grid;place-items:center;padding:4px;border:1px solid var(--line);border-radius:20px;background:#fffaf2;box-shadow:0 4px 10px #00000005}
.word-centered .word-picture img{display:block;width:100%;height:100%;object-fit:contain;border-radius:15px}
.word-centered .word-czech{display:flex;flex-direction:column;justify-content:center;gap:8px;margin:0;text-align:center;font-size:clamp(13px,3.8vw,17px);line-height:1.4;color:inherit;overflow-wrap:anywhere;hyphens:auto}
.word-centered .word-info{margin-top:10px}
.word-centered .word-info>.level{text-align:center;font-size:14px;letter-spacing:3px;color:var(--green)}
.word-english-column,.word-czech-column{min-width:0}
.word-visual{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}
.word-visual .word-picture{width:100%}
.word-visual>.speak{width:44px;height:44px;min-height:44px;justify-content:center}
.word-centered .word-sentence{font-size:12px;line-height:1.5;margin:8px 0 0;text-align:center;color:var(--muted);white-space:normal;overflow-wrap:anywhere;hyphens:auto}
.word-level-label{font-size:12px;letter-spacing:normal;color:var(--muted)}
.word-progress{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 12px;margin-top:8px}
.word-progress>.level{margin:0}
.word-source{display:block;color:var(--muted,#64716b);font-size:12px;margin:4px 0}
.word .word-progress>.memory-summary{margin:0;letter-spacing:normal}
.word-centered .word-progress>.level{font-size:14px;letter-spacing:3px}
.word-centered .phonetic-neighbors{margin-top:12px;padding-top:10px}
.word-centered .phonetic-neighbors>p{text-align:center;margin-bottom:8px}
.phonetic-neighbor-centered{align-items:start;font-size:12px;text-align:center;line-height:1.4}
.phonetic-neighbor-centered .phonetic-word{display:flex;flex-direction:column;align-items:center;gap:5px}
.phonetic-neighbor-centered img{width:44px;height:44px;object-fit:contain;border-radius:10px;justify-self:center;align-self:center}
.word-centered .word-title>.speak,.phonetic-neighbor-centered .speak{width:44px;height:44px;min-height:44px}
.phonetic-translation{min-width:0}
.catalog-layout-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin:0 0 12px;border:1px solid var(--line);border-radius:14px;background:#fff}
.catalog-layout-switch button{min-height:40px;padding:7px;border-radius:10px;background:transparent;color:var(--muted);font-size:12px;line-height:1.35}
.catalog-layout-switch button[aria-pressed=true]{background:var(--green);color:#fff}
button.streak{color:inherit;flex-shrink:0}

/* Přiřazovačka: pevné pozice i po vyřešení dvojice. */
.matching-board{padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
/* Hide duplicate headings/status in older cached HTML too. */
.matching-heading,.matching-board .matching-status{display:none}
.subtitle.match-error{color:#9c432d}
.matching-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;perspective:700px}
.match-tile{aspect-ratio:1;min-height:104px}
.match-word-row{display:flex;flex-direction:column;min-width:0;align-items:stretch;border:2px solid var(--line);border-radius:14px;background:#fff7e8;color:inherit}
.match-word{position:relative;flex:1;min-width:0;min-height:44px;padding:10px 4px 3px;background:transparent;border-radius:12px;color:inherit;font-size:clamp(11px,3.1vw,16px);font-weight:bold;overflow-wrap:anywhere}
.match-word-row .speak{align-self:center;background:transparent;border:0;border-radius:10px;width:44px;min-width:44px;margin-bottom:2px}
.match-word-row:not(.match-wrong):has(.match-word:hover:enabled){border-color:var(--green)}
.match-image{position:relative;min-width:0;padding:6px;background:#fffdf7;border:2px solid var(--line);border-radius:14px;color:inherit;opacity:1}
.match-image img{display:block;width:100%;height:100%;object-fit:contain;border-radius:9px}
.match-image:hover:enabled:not(.match-selected):not(.match-wrong){border-color:var(--green);background:#f0f5ec}
.match-word-row.match-selected,.match-image.match-selected{border-color:var(--green);background:#efeaf8;box-shadow:0 0 0 2px var(--green)}
.match-word-row.matched,.match-image.matched{background:#e3f4de;border-color:#589b5d;color:#234d29}
.match-word:disabled{color:inherit;opacity:1}
.match-image.matched img{opacity:.65}
.match-check{position:absolute;right:5px;top:3px;color:#32723b;font-size:14px}
.match-image-check{position:absolute;right:6px;bottom:6px;background:#32723b;color:white;border-radius:50%;display:grid;place-items:center;width:25px;height:25px;font-size:19px}
.match-word-row.match-wrong,.match-image.match-wrong{border-color:#ca765a;background:#ffebe5;animation:match-shake .25s ease-out}
.match-flip{animation:match-flip .45s ease-out}
.matching-board .primary{scroll-margin-bottom:calc(105px + env(safe-area-inset-bottom))}
@keyframes match-flip{0%{transform:rotateY(0)}50%{transform:rotateY(90deg)}100%{transform:rotateY(0)}}
@keyframes match-shake{0%,100%{transform:translateX(0)}30%{transform:translateX(-4px)}70%{transform:translateX(4px)}}
@media(prefers-reduced-motion:reduce){.match-flip,.match-word-row.match-wrong,.match-image.match-wrong{animation:none}}

/* Dlouhodobé chyby a směrové záměny ve slovníčku. */
.word .memory-summary{font-size:12px;line-height:1.5;margin:7px 0 0;color:var(--muted)}
.confusion-list{margin-top:10px;padding-top:8px}
.confusion-list>p{font-size:12px;margin:0 0 6px}
.confusion-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 0;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.confusion-count{flex:none;min-width:28px;padding:2px 6px;border-radius:8px;background:#fff0ca;color:#766647;text-align:center;font-weight:bold}

