:root{color-scheme:light;--ink:#173957;--muted:#52697b;--line:#c8dcea;--blue:#175e98;--gold:#e4b14f;--paper:#fff;--bg:#edf5fb;--ok:#17754b;--bad:#a63836;--sky:#eaf5fc}
*{box-sizing:border-box}body{margin:0;font:16px system-ui,-apple-system,'Segoe UI',Arial,sans-serif;color:var(--ink);background:linear-gradient(160deg,#dfedf8,#f5f8f7 68%,#edf4fa);min-height:100vh}.app{max-width:1040px;padding:12px 18px 24px;margin:0 auto}.topbar{background:#fff;display:flex;align-items:center;gap:16px;justify-content:space-between;padding:9px 14px;border-radius:17px;box-shadow:0 4px 16px #163b5f15}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#13517e;min-width:0;flex-shrink:0}.brand-icon{width:56px;height:56px;object-fit:contain}.brand-label{display:flex;flex-direction:column;line-height:1.15}.brand-label strong{font-size:clamp(19px,2.7vw,27px);letter-spacing:.035em;font-weight:850}.brand-label small{font-size:clamp(11px,1.35vw,13px);color:#54738b;white-space:nowrap;margin-top:4px}.top-progress{display:flex;align-items:center;gap:10px;font-size:14px;flex:1;max-width:290px;justify-content:flex-end}.top-progress b{white-space:nowrap}.progress-track{height:12px;background:#d9eaf6;border-radius:50px;max-width:150px;flex:1;overflow:hidden;border:1px solid #c4dce9}.progress-track div{width:0%;height:100%;border-radius:50px;background:linear-gradient(90deg,#61b9a0,#1e916f);transition:width .38s}.header-actions{display:flex;gap:7px}.header-btn{display:grid;place-items:center;width:43px;height:43px;border:1.5px solid #b2d2e8;border-radius:50%;background:#eaf4fc;cursor:pointer;color:#1b5a8b}.header-btn svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}.header-btn:hover,.header-btn:focus-visible{background:#d4eaf9}.header-btn[aria-pressed=true]{background:#daf0e6;border-color:#63ad8c}
.question-panel{background:#fffefa;border-radius:18px;margin-top:13px;padding:12px 20px 10px;box-shadow:0 4px 20px #1b4e7022;border:1px solid #f2e4cb;text-align:center;position:relative;z-index:2}.eyebrow{font-weight:850;font-size:10px;letter-spacing:.16em;color:#b7843a}.game-titles h1{font-family:Georgia,'Times New Roman',serif;font-weight:800;font-size:clamp(22px,3.8vw,35px);color:#573719;margin:3px 0}.game-titles h1 span{font-weight:500;color:#7e552b}.instructions{margin:3px 0 10px;color:#45596b;font-size:15px;font-weight:600}.letter-line{display:flex;align-items:center;justify-content:center;gap:clamp(3px,1vw,11px);margin:5px auto 13px}.letter-tile{font:700 clamp(28px,5.1vw,52px) Georgia,serif;width:clamp(42px,8.9vw,74px);height:clamp(52px,10vw,74px);border:1.5px solid #e0d3b8;border-radius:12px;background:#fff9ed;display:grid;place-items:center;color:#352819;box-shadow:0 2px 0 #ead8b3}.letter-tile.missing{background:#ffeab8;border:2px solid #dba642;color:#a46c18;box-shadow:0 0 0 3px #f4d18d60;transition:transform .2s,color .2s}.letter-tile.missing.completed{background:#e3f5e9;border-color:#85be8e;color:#1c754e}.dash{font-size:clamp(16px,3vw,26px);color:#aa997e;line-height:1;user-select:none}.answer-row{display:grid;grid-template-columns:repeat(4,minmax(0,100px));gap:12px;justify-content:center}.answer-option{background:linear-gradient(#fff,#e8f3fd);border:2px solid #a5c8e4;border-radius:12px;color:#1d4775;min-height:55px;font:750 clamp(24px,4vw,35px) Georgia,serif;cursor:pointer;transition:background .18s,transform .16s,box-shadow .18s}.answer-option:hover:not(:disabled){background:#d8efff;transform:translateY(-2px);box-shadow:0 3px 10px #3d82b126}.answer-option:disabled{cursor:default}.answer-option.is-wrong{background:#fde8e4;border-color:#c77365;color:#8d2d2b}.answer-option.is-correct{background:#e2f3e5;border-color:#4d9a69;color:#176f40}.feedback{font-size:13px;min-height:21px;margin:9px 0 0;font-weight:600;color:#61788a}.feedback.wrong{color:var(--bad)}.feedback.good{color:var(--ok)}.scene-area{margin:13px auto 0;max-width:920px}.scene-top{display:flex;align-items:center;justify-content:space-between;padding:0 8px;margin-bottom:8px;gap:8px}.scene-top h2{font:700 17px Georgia,serif;margin:0}.scene-counter{background:#fff1d1;border:1px solid #dfba70;padding:5px 12px;border-radius:999px;font-weight:750;font-size:13px;color:#7c5728}.scene{width:100%;position:relative;aspect-ratio:719/461;background:#9fc3db url('assets/hrad_pozadi.jpg') center/100% 100% no-repeat;overflow:hidden;border:5px solid white;box-shadow:0 5px 23px #21496b30;border-radius:18px;isolation:isolate}.scene:after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 50%,transparent 65%,#263c5320);z-index:9}.garden-window{position:absolute;left:33.6%;top:39.5%;width:33%;height:54.5%;z-index:1;background:url('assets/zahrada_za_branou.jpg') center/cover no-repeat;clip-path:polygon(0 14%,6% 9%,16% 3%,28% 0,72% 0,84% 3%,94% 9%,100% 14%,100% 100%,0 100%);filter:saturate(1.2) brightness(1.05)}.light-gap{position:absolute;left:48%;top:45%;width:4%;height:46%;z-index:2;opacity:0;background:linear-gradient(90deg,transparent,#fffac8da,transparent);filter:blur(5px);pointer-events:none;transition:opacity .5s}.scene.half .light-gap{opacity:.95}.scene.open .light-gap{opacity:0}.wing{position:absolute;z-index:3;object-fit:fill;backface-visibility:hidden;transition:transform 1.65s cubic-bezier(.25,.64,.24,1),filter .35s;will-change:transform}.wing.left{transform-origin:0 50%}.wing.right{transform-origin:100% 50%}.scene.open .wing.left{transform:perspective(530px) rotateY(-85deg)}.scene.open .wing.right{transform:perspective(530px) rotateY(85deg)}.bar{position:absolute;left:33.4%;width:33.2%;height:9%;object-fit:fill;z-index:4;filter:drop-shadow(0 2px 3px #0008);pointer-events:none;transition:transform .85s ease,opacity .7s}.bar.unlocked{transform:translateX(-130%);opacity:0}.lock{position:absolute;object-fit:fill;z-index:5;filter:drop-shadow(0 2px 3px #0008);transition:filter .3s,transform .55s,opacity .5s}.lock.done{filter:drop-shadow(0 0 11px #ffdf74) brightness(1.1)}.lock.current{animation:currentPulse 1.6s ease-in-out infinite alternate}.scene.open .lock{opacity:0;transform:translateY(12px)}.gate-sparkles{position:absolute;inset:0;z-index:8;pointer-events:none}.spark{position:absolute;font-size:clamp(9px,2.2vw,24px);color:#ffeb8d;text-shadow:0 0 12px #ffe182;animation:sparkBurst .95s ease-out forwards;transform:translate(-50%,-50%)}.scene-status{position:absolute;z-index:10;bottom:3%;left:50%;transform:translateX(-50%);white-space:normal;text-align:center;max-width:75%;padding:8px 14px;border-radius:999px;color:white;background:#1b4259bb;backdrop-filter:blur(3px);box-shadow:0 2px 8px #1114;font-size:clamp(9px,1.5vw,13px);font-weight:650;pointer-events:none}.stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:9px}.stage{padding:8px 10px;border:1px solid #c8dbea;background:#fff;border-radius:13px;transition:background .3s,border-color .3s}.stage.done{border-color:#d6b257;background:#fff6db}.stage.current{border-color:#89b5d6;box-shadow:0 0 0 1px #aad2ec}.stage-head{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:12px;font-weight:800}.stage-count{font-size:11px;color:#657e8e;white-space:nowrap}.stage-progress{display:flex;gap:5px;margin-top:8px;justify-content:space-between}.gem{display:block;flex:1;height:10px;background:#dce7ec;border-radius:100px;border:1px solid #c1d3dd;transition:background .3s,box-shadow .3s}.gem.lit{background:var(--gem-color);border-color:#b48c51;box-shadow:0 0 7px var(--gem-color)}.stage-name{font-size:11px;color:#617b8b;margin-top:5px}.footer{display:flex;justify-content:space-between;gap:12px;color:#698092;font-size:12px;padding:13px 6px 0}.modal-backdrop{position:fixed;inset:0;z-index:50;background:#0d304ebd;display:grid;place-items:center;padding:16px;backdrop-filter:blur(4px)}[hidden]{display:none!important}.results{background:#fffdf5;text-align:center;width:min(100%,490px);padding:25px 25px 21px;border-radius:22px;box-shadow:0 20px 75px #091e38aa;border:3px solid #e8c577}.results h2{font:800 29px Georgia,serif;color:#6e4827;margin:7px 0 9px}.results p{color:#4e6778;line-height:1.5}.result-icon{font-size:42px;color:#dba83d}.result-stats{margin:18px 0;border:1px solid #d9e9ed;background:#eef7f8;border-radius:13px;padding:8px 16px}.result-stats div{display:flex;align-items:center;justify-content:space-between;padding:8px 0;gap:12px}.result-stats div+div{border-top:1px solid #d4e5ea}.result-stats strong{font-size:22px}.result-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:9px}.primary,.secondary{border:0;padding:13px 17px;font:750 14px system-ui;border-radius:11px;cursor:pointer}.primary{background:#17669e;color:white}.secondary{background:#e6eff6;color:#194b6e}.primary:hover,.secondary:hover{filter:brightness(.95)}button:focus-visible,a:focus-visible{outline:3px solid #dfa326;outline-offset:3px}@keyframes currentPulse{from{filter:drop-shadow(0 1px 3px #0008)}to{filter:drop-shadow(0 0 11px #fff4aa)}}@keyframes sparkBurst{0%{opacity:0;transform:translate(-50%,-50%) scale(.2)}30%{opacity:1}100%{opacity:0;transform:translate(-50%,-155%) scale(1.35)}}
@media(max-width:780px){.app{padding:8px}.brand-icon{width:48px;height:48px}.topbar{gap:9px;padding:7px 8px}.top-progress{gap:6px;flex-direction:column;align-items:center;max-width:125px}.progress-track{width:115px;flex:auto}.question-panel{padding:13px 9px}.scene-area{margin-top:9px}.scene-top h2{font-size:14px}.scene-status{max-width:85%;bottom:2%}.footer{flex-wrap:wrap;justify-content:center}.stage{padding:7px 5px}.stage-head{font-size:10px}.stage-name{font-size:10px}}
@media(max-width:490px){.brand-label strong{font-size:17px}.brand-label small{max-width:145px;white-space:normal;font-size:10px}.brand-icon{width:43px;height:43px}.top-progress{font-size:11px;width:68px}.progress-track{width:70px}.header-btn{width:34px;height:34px}.header-btn svg{width:18px;height:18px}.header-actions{gap:4px}.game-titles h1{font-size:23px}.game-titles h1 span{display:block;font-size:18px}.instructions{font-size:13px}.answer-row{gap:6px}.answer-option{min-height:56px}.letter-tile{width:clamp(37px,11vw,55px);height:58px}.dash{font-size:17px}.stages{gap:4px}.stage-head{font-size:9px}.stage-count{font-size:9px}.stage-progress{gap:2px}.gem{height:8px}.scene{border-width:3px}.scene-status{font-size:8px;padding:5px 7px}.scene-counter{font-size:11px}.stage-name{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* V2 – kompaktní školákovské rozložení podle Písmenkového expresu */
.topbar{padding:7px 13px;min-height:64px;}
.brand-icon{width:48px;height:48px}
.game-titles{text-align:left;margin:0 0 8px}
.game-titles h1{font:800 clamp(22px,3.4vw,30px) system-ui,-apple-system,'Segoe UI',sans-serif;color:#113e6d;margin:0 0 3px;line-height:1.15;letter-spacing:-.025em}
.game-titles h1 span{color:#113e6d;font-weight:750}
.instructions{font-size:14px;font-weight:400;margin:2px 0;color:#526f8c}
.question-panel{background:#fff;padding:13px 17px 11px;border-color:#cce2f3;box-shadow:none;margin-top:10px;border-radius:17px}
.task-card{border:2px solid #d8eaf6;border-radius:15px;padding:10px 12px 6px;background:#fff;text-align:center}
.task-prompt{font-size:15px;font-weight:750;color:#153c64;margin:0 0 4px}
.letter-line{margin:5px auto 9px;gap:clamp(2px,1.0vw,9px)}
.letter-tile{font-size:clamp(27px,4vw,43px);height:clamp(46px,6.6vw,61px);width:clamp(40px,6.4vw,63px);border-radius:9px;box-shadow:0 1px 0 #ead8b3}
.dash{font-size:clamp(15px,2.7vw,23px)}
.answer-row{grid-template-columns:repeat(4,minmax(0,138px));gap:10px}
.answer-option{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;min-height:49px;font-size:clamp(22px,3.1vw,30px);border-radius:11px;background:linear-gradient(#eaf5fd,#dbeffa);box-shadow:0 3px 0 #b2d3e8}
.feedback{font-size:12px;min-height:16px;margin:5px 0 0}
.scene-area{max-width:1000px;margin:10px auto 0}
/* Stage is drawn at its ORIGINAL ratio; cropped viewport makes the game shorter without distorting PNGs */
.scene{aspect-ratio:719 / 335;background:none;border:3px solid #fff;border-radius:16px;}
.scene-canvas{position:absolute;bottom:0;left:0;width:100%;aspect-ratio:719 / 461;background:#9fc3db url('assets/hrad_pozadi.jpg') center / 100% 100% no-repeat;overflow:hidden;isolation:isolate}
.scene-canvas .garden-window,.scene-canvas .light-gap,.scene-canvas .wing,.scene-canvas .bar,.scene-canvas .lock,.scene-canvas .gate-sparkles{position:absolute}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.lock{transition:filter .3s,transform .55s,opacity .5s}
.lock.waiting{filter:drop-shadow(0 1px 2px #0003)}
.lock.done{filter:drop-shadow(0 1px 2px #0007);animation:none}
.lock.current{animation:currentPulse 1.5s ease-in-out infinite alternate}
.lock.unlock-flash{z-index:7;animation:unlockFlash .65s ease-out both!important;filter:drop-shadow(0 0 10px #fff3ac)}
.scene.open .lock{opacity:0;transform:translateY(12px)}
@keyframes unlockFlash{0%{filter:drop-shadow(0 0 3px #ffe583) brightness(1.1)}36%{filter:drop-shadow(0 0 17px #fff1a6) brightness(1.55)}100%{filter:drop-shadow(0 0 0px #fff1a6) brightness(1)}}
/* Open class belongs to the viewport; its children live in the drawing layer */
.scene.open .wing.left{transform:perspective(530px) rotateY(-85deg)}
.scene.open .wing.right{transform:perspective(530px) rotateY(85deg)}
.progress-footer{display:flex;align-items:center;gap:14px;padding:10px 13px;margin-top:0;background:#e9f4fb;border:1px solid #cfdfeb;border-radius:0 0 15px 15px;color:#17476a;min-height:66px}
.progress-description{display:flex;flex-direction:column;gap:3px;min-width:185px}
.progress-description strong{font-size:13px}
.progress-description small{font-size:11px;color:#577d98}
.stages{margin:0;flex:1;gap:7px}
.stage{padding:6px 8px;border:1px solid #c3daec;border-radius:9px;background:#fff;min-width:0}
.stage.done{background:#f7f5ed;border-color:#b9cbd3}
.stage.current{box-shadow:0 0 0 1px #9cc5e9}
.stage-head{font-size:11px}.stage-count{font-size:11px}.stage-progress{margin-top:5px;gap:4px}
.gem{height:9px}.gem.lit{box-shadow:none}
.footer{padding:7px 8px 0;font-size:10px}
.finished-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 13px;font-size:12px;color:#1d674e}
.finished-bar[hidden]{display:none!important}.finished-bar .secondary{padding:8px 12px;font-size:12px}
@media(max-width:780px){.topbar{padding:7px 9px}.question-panel{padding:10px}.task-card{padding:8px 6px 5px}.progress-footer{gap:8px;padding:7px}.progress-description{min-width:140px}.stage{padding:5px}.scene{aspect-ratio:719 / 360}.stage-head{font-size:10px}}
@media(max-width:580px){.brand-icon{width:42px;height:42px}.brand-label strong{font-size:19px}.brand-label small{font-size:10px;white-space:normal}.game-titles h1{font-size:clamp(18px,5vw,23px)}.game-titles h1 span{display:inline;font-size:inherit}.instructions{font-size:12px}.task-prompt{font-size:13px}.letter-tile{width:clamp(34px,11vw,52px);height:49px}.letter-line{gap:3px}.answer-row{gap:6px}.answer-option{min-height:48px}.progress-footer{display:block}.progress-description{min-width:0;flex-direction:row;justify-content:space-between;gap:6px;margin-bottom:6px}.progress-description strong,.progress-description small{font-size:10px}.stages{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.stage-head{font-size:9px}.stage-count{font-size:9px}.stage-progress{gap:2px}.gem{height:8px}.scene{aspect-ratio:719/390}.footer{font-size:10px}}
@media(prefers-reduced-motion:reduce){.lock.unlock-flash{animation:none!important}}

/* V3 – doplnění CH, klidný dokončený zámek, nadpis a logo */
.topbar{min-height:84px;padding:10px 14px}
.brand{flex:1 1 auto;min-width:0}
.brand-label{min-width:0}
.brand-icon{width:60px;height:60px;flex:0 0 60px;object-fit:contain}
.game-titles h1{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;font-size:clamp(22px,3.4vw,30px);font-weight:400;letter-spacing:0;line-height:1.2}
.letter-tile{flex-shrink:0}
.letter-tile.digraph{width:clamp(65px,8.5vw,85px);padding:0 6px;font-size:clamp(27px,3.7vw,40px);white-space:nowrap}
.answer-option.digraph{white-space:nowrap;min-width:0;letter-spacing:.015em}
.lock.done{filter:drop-shadow(0 1px 2px #0007)!important;animation:none!important}
@media(max-width:780px){.topbar{padding:9px 10px;min-height:82px}.brand-icon{width:60px;height:60px;flex-basis:60px}}
@media(max-width:580px){
 .topbar{min-height:78px;padding:8px 8px}
 .brand-icon{width:60px;height:60px;flex-basis:60px}
 .brand-label small{white-space:normal}
 .letter-tile.digraph{width:clamp(49px,15vw,64px);font-size:clamp(22px,5.5vw,30px);padding:0 3px}
 .letter-line{gap:clamp(1px,.6vw,3px)}
 .dash{font-size:clamp(12px,3vw,17px)}
}
@media(max-width:360px){
 .topbar{gap:6px;padding:7px}
 .brand{gap:6px}
 .brand-icon{width:56px;height:56px;flex-basis:56px}
 .brand-label strong{font-size:16px}
 .brand-label small{font-size:9px}
 .letter-tile{width:31px;font-size:26px}
 .letter-tile.digraph{width:45px;font-size:20px;padding:0 1px}
 .letter-line{gap:1px}
 .dash{font-size:12px;letter-spacing:-3px;margin:0 -2px}
}

/* V4 – čisté zámky, bez tmavé masky či ztmavování neaktivních oblastí.
   Hotový zámek nadále používá samostatný PNG s vypnutým krystalem. */
.scene:after{display:none!important}
.lock.waiting{filter:drop-shadow(0 1px 2px #0003)!important;opacity:1!important}
.lock.done{filter:drop-shadow(0 1px 2px #0003)!important;animation:none!important}

/* V5 – pouze vizuální sjednocení hlavičky a zadání: herní logika zůstává nedotčená. */
.topbar{
  display:grid;
  grid-template-columns:minmax(180px,1fr) minmax(290px,1.65fr) minmax(90px,1fr);
  align-items:center;
  gap:12px;
  padding:8px 14px;
  min-height:80px;
}
.brand{flex:none;min-width:0;gap:8px}
.brand-icon{width:60px;height:60px;flex:0 0 60px}
.brand-label strong{font-size:14px;font-weight:750;letter-spacing:.025em}
.brand-label small{font-size:11px;line-height:1.25;margin-top:4px;white-space:normal}
.header-learning{min-width:0;text-align:center;line-height:1.25}
.header-learning h1{font:500 clamp(21px,2.4vw,27px)/1.2 system-ui,-apple-system,'Segoe UI',sans-serif;color:#173e5e;letter-spacing:0;margin:0 0 4px}
.header-instructions{font-size:clamp(12px,1.35vw,14px);font-weight:400;color:#476780;margin:0}
.header-actions{justify-self:end;flex-shrink:0}
.question-panel{padding:11px 14px;margin-top:9px}
.task-card{padding:12px 12px 7px}
.letter-line{margin:3px auto 10px}
.feedback:not(.good):not(.wrong){visibility:hidden}
@media(max-width:680px){
 .topbar{grid-template-columns:minmax(0,1fr) auto;column-gap:8px;row-gap:3px;min-height:0;padding:6px 10px 9px}
 .brand{grid-column:1;grid-row:1}
 .brand-icon{width:48px;height:48px;flex-basis:48px}
 .brand-label strong{font-size:13px}
 .brand-label small{font-size:10px}
 .header-actions{grid-column:2;grid-row:1}
 .header-learning{grid-column:1 / -1;grid-row:2;padding:0 4px}
 .header-learning h1{font-size:clamp(19px,5.2vw,23px);margin-bottom:1px}
 .header-instructions{font-size:12px}
 .question-panel{padding:8px 9px;margin-top:7px}
 .task-card{padding:8px 5px 4px}
 .letter-line{margin:2px auto 8px}
}
@media(max-width:360px){
 .topbar{padding:5px 7px 8px}
 .brand{gap:6px}
 .brand-icon{width:46px;height:46px;flex-basis:46px}
 .brand-label strong{font-size:12px}
 .brand-label small{font-size:9px}
 .header-actions{gap:4px}
 .header-btn{width:34px;height:34px}
 .header-learning h1{font-size:19px}
 .header-instructions{font-size:11px}
}


/* V7 – definitivní kompaktní hlavička: opravuje centrování pro různá rozlišení.
   Změny se týkají pouze rozvržení; herní mechanismus není upraven. */
.topbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr);
  grid-template-rows:auto;
  gap:10px;
  align-items:center;
  min-height:76px;
  padding:7px 13px;
}
.brand{grid-column:1;grid-row:1;justify-self:start;gap:8px;min-width:0}
.brand-icon{width:60px;height:60px;flex:0 0 60px}
.brand-label strong{font-size:14px;font-weight:750;letter-spacing:.025em}
.brand-label small{font-size:11px;line-height:1.25;margin-top:4px;white-space:normal}
.header-learning{grid-column:2;grid-row:1;justify-self:center;text-align:center;min-width:0;max-width:100%}
.header-learning h1{
  font:500 clamp(23px,2.45vw,28px)/1.15 system-ui,-apple-system,'Segoe UI',sans-serif;
  letter-spacing:0;
  color:#173e5e;
  margin:0 0 3px;
  white-space:nowrap;
}
.header-instructions{margin:0;font-size:clamp(11px,1.3vw,13px);line-height:1.2;font-weight:400;color:#476780;white-space:nowrap}
.header-actions{grid-column:3;grid-row:1;justify-self:end;align-items:center}
#progressDetail{display:none!important}
.progress-footer{min-height:54px;padding:7px 13px}
.progress-description{gap:0;min-width:185px}
@media(max-width:780px){
 .topbar{min-height:72px;padding:6px 10px;gap:6px}
 .brand-icon{width:56px;height:56px;flex-basis:56px}
 .brand-label strong{font-size:13px}
 .brand-label small{font-size:10px}
 .header-learning h1{font-size:clamp(22px,3.35vw,25px)}
 .header-instructions{font-size:11px}
 .progress-footer{padding:7px}
}
@media(max-width:680px){
 .topbar{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;row-gap:3px;min-height:0;padding:6px 10px 8px}
 .brand{grid-column:1;grid-row:1}
 .brand-icon{width:48px;height:48px;flex-basis:48px}
 .header-actions{grid-column:2;grid-row:1}
 .header-learning{grid-column:1/-1;grid-row:2;justify-self:center;padding:0 4px}
 .header-learning h1{font-size:clamp(21px,5.1vw,25px);margin-bottom:1px}
 .header-instructions{font-size:12px}
}
@media(max-width:580px){.progress-description{margin-bottom:6px}}
@media(max-width:360px){
 .topbar{padding:5px 7px 8px}
 .brand-icon{width:46px;height:46px;flex-basis:46px}
 .header-learning h1{font-size:21px}
 .header-instructions{font-size:11px}
}
/* Větší mezera nad písmeny */
.task-card {
    padding-top: 20px;
}

@media (max-width: 780px) {
    .task-card {
        padding-top: 14px;
    }
}