/* ==========================================================================
   Opakovačka – čtverečkovaný sešit, modrý inkoust, učitelova propiska
   ========================================================================== */

/* ---------- Písma (vlastní server, OFL licence) ---------- */
@font-face { font-family: "Baloo 2"; font-weight: 600; font-display: swap;
  src: url(../fonts/baloo-2-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Baloo 2"; font-weight: 600; font-display: swap;
  src: url(../fonts/baloo-2-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-display: swap;
  src: url(../fonts/baloo-2-latin-800-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-display: swap;
  src: url(../fonts/baloo-2-latin-ext-800-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap;
  src: url(../fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap;
  src: url(../fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap;
  src: url(../fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap;
  src: url(../fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap;
  src: url(../fonts/caveat-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap;
  src: url(../fonts/caveat-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokeny ---------- */
:root {
  --paper: #FBFCF8;
  --sheet: #FFFFFF;
  --grid: #DCE6EF;
  --line: #C6D1DE;
  --ink: #1C2330;
  --ink-soft: #56607A;
  --pen: #1F3FA8;          /* modrý inkoust – to, co píše dítě */
  --pen-dark: #142C7A;
  --pen-tint: #E7ECFA;
  --red: #C8203A;          /* učitelova červená propiska */
  --red-tint: #FCE9EC;
  --green: #18804A;        /* zelená propiska za správnou odpověď */
  --green-tint: #E3F4EA;
  --amber: #A86200;
  --amber-tint: #FFF1D6;
  --marker: #FFE45C;       /* zvýrazňovač */
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Baloo 2", "Atkinson Hyperlegible", system-ui, sans-serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;
  --cell: 24px;
  --radius: 12px;
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-child, .page-lesson, .page-home {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  background-position: -1px -1px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--pen); text-underline-offset: 3px; }
a:hover { color: var(--pen-dark); }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip-link:focus { top: 8px; color: #fff; }
.muted { color: var(--ink-soft); }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }
.note { background: var(--amber-tint); border-left: 4px solid var(--amber); padding: 10px 14px; border-radius: 6px; }
.code { font-family: var(--font-display); font-weight: 800; letter-spacing: .12em; color: var(--pen); }

/* ---------- Tlačítka ---------- */
.btn {
  --btn-bg: var(--sheet); --btn-fg: var(--ink); --btn-edge: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 800 1.05rem/1 var(--font-display);
  padding: .8em 1.3em .7em;
  min-height: 48px;
  border: 2px solid var(--btn-edge);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 4px 0 var(--btn-edge);
  text-decoration: none;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .06s ease;
}
.btn:hover { color: var(--btn-fg); filter: brightness(1.04); }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-edge); }
.btn:disabled { cursor: not-allowed; --btn-bg: #E9EDF2; --btn-fg: #8B94A7; --btn-edge: #D3D9E2; }
.btn-lg { font-size: 1.15rem; min-height: 56px; }
.btn-primary { --btn-bg: var(--pen); --btn-fg: #fff; --btn-edge: var(--pen-dark); }
.btn-good { --btn-bg: var(--green); --btn-fg: #fff; --btn-edge: #0F5A33; }
.btn-bad { --btn-bg: var(--red); --btn-fg: #fff; --btn-edge: #8E1428; }
.btn-danger { --btn-bg: var(--sheet); --btn-fg: var(--red); --btn-edge: var(--red); }
.btn-ghost { --btn-bg: var(--sheet); --btn-fg: var(--pen); --btn-edge: var(--line); }
.link-button {
  background: none; border: 0; padding: 4px 2px; font: inherit; color: var(--pen);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* ---------- Hlavička ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 2px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; border-radius: 8px; }
/* Barevné logo (návrh z plátna „Logo Opakovačka.cz“), písmena převedená na křivky */
.logo { height: 44px; width: auto; }
@media (prefers-reduced-motion: no-preference) {
  .wordmark:hover .logo { transform: rotate(-1.5deg) scale(1.03); transition: transform .15s ease; }
}
.parent-nav { display: flex; align-items: center; gap: 20px; }
.parent-nav a { font-weight: 700; text-decoration: none; color: var(--ink-soft); padding: 6px 0; border-bottom: 3px solid transparent; }
.parent-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--marker); }
.parent-nav form { margin: 0; }

.child-status { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 26px); flex-wrap: wrap; }
.status-item { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.status-label { font-family: var(--font-body); font-weight: 400; font-size: .9rem; color: var(--ink-soft); }
.icon { width: 24px; height: 24px; }
.icon-streak { fill: #F08A24; }
.icon-xp { fill: var(--marker); stroke: #C9A400; stroke-width: 1.2; }
.goal-dots { display: inline-flex; gap: 4px; }
.goal-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--pen); }
.goal-dot.is-done { background: var(--pen); }
.child-menu { display: flex; align-items: center; gap: 6px; margin: 0; }

/* ---------- Avatary ---------- */
.avatar { flex: none; }
.avatar-sm { width: 36px; height: 36px; }
.avatar-md { width: 56px; height: 56px; }
.avatar-lg { width: 96px; height: 96px; }

/* ---------- Rozložení ---------- */
.site-main { flex: 1; width: 100%; padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 40px) 64px; }
.site-footer { padding: 24px clamp(16px, 4vw, 40px); border-top: 2px solid var(--line); color: var(--ink-soft); font-size: .95rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-footer p { margin: 0; }
.narrow-page { max-width: 640px; margin: 0 auto; }
.prose h2 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.back { margin-bottom: 8px; }
.back a::before { content: "‹ "; }

.flashes { max-width: 1080px; margin: 0 auto 20px; display: grid; gap: 8px; }
.flash { margin: 0; padding: 12px 16px; border-radius: 10px; border: 2px solid; background: var(--sheet); font-weight: 700; }
.flash-error { border-color: var(--red); color: var(--red); background: var(--red-tint); }
.flash-success { border-color: var(--green); color: var(--green); background: var(--green-tint); }
.flash-info { border-color: var(--pen); color: var(--pen); background: var(--pen-tint); }
.page-lesson .flashes { margin-top: 12px; }

/* ---------- Formuláře ---------- */
.form-page { max-width: 480px; margin: 0 auto; }
.form-page-wide { max-width: 640px; }
.stack-form { display: grid; gap: 20px; margin: 24px 0; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-weight: 700; padding: 0; }
.field small { color: var(--ink-soft); font-size: .9rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
input[type="text"], input[type="email"], input[type="password"], select {
  font: inherit; color: var(--ink);
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 2px solid var(--line); border-radius: 10px; background: var(--sheet);
}
input:focus, select:focus { border-color: var(--pen); outline: 3px solid var(--pen-tint); outline-offset: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--pen); flex: none; }
.form-alt { color: var(--ink-soft); }
.code-input { font-family: var(--font-display) !important; font-weight: 800; font-size: 1.6rem !important; letter-spacing: .2em; text-transform: uppercase; text-align: center; }
.grade-hint { margin: -8px 0 0; color: var(--pen); font-weight: 700; min-height: 1.5em; }
.avatar-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.avatar-pick label { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--sheet); cursor: pointer; font-size: .95rem; }
.avatar-pick input { position: absolute; opacity: 0; }
.avatar-pick label:has(input:checked) { border-color: var(--pen); background: var(--pen-tint); box-shadow: 0 3px 0 var(--pen); }
.avatar-pick label:has(input:focus-visible) { outline: 3px solid var(--pen); outline-offset: 2px; }
.danger-zone { margin-top: 48px; padding: 20px; border: 2px dashed var(--red); border-radius: var(--radius); display: grid; gap: 12px; }
.danger-zone h2 { color: var(--red); margin: 0; }
.danger-zone p { margin: 0; }

/* ---------- Úvodní stránka ---------- */
.home-hero {
  max-width: 1120px; margin: 0 auto; display: grid; gap: clamp(32px, 6vw, 72px);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; padding: 24px 0 56px;
}
.home-copy h1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem); max-width: 14ch; }
.home-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 12px; }
.home-login { color: var(--ink-soft); }
.home-demo { margin: 0; }
.demo-sheet {
  position: relative; background: var(--sheet); padding: 28px 28px 20px 72px;
  border: 1px solid var(--line); border-radius: 4px; transform: rotate(-1.6deg);
  box-shadow: 6px 8px 0 -1px var(--grid), 6px 8px 0 0 var(--line);
}
.demo-sheet::before { content: ""; position: absolute; left: 48px; top: 0; bottom: 0; width: 2px; background: var(--red); opacity: .55; }
.demo-task { font: 800 clamp(1.5rem, 1rem + 1.5vw, 2rem)/1.3 var(--font-display); color: var(--ink); margin: 0; }
.demo-gap { color: var(--pen); background: linear-gradient(transparent 62%, var(--marker) 62%); padding: 0 2px; }
.demo-answer { color: var(--pen); text-decoration: line-through var(--red) 3px; }
.demo-mark { font: 700 1.9rem/1 var(--font-hand); margin: 2px 0 18px 30px; transform: rotate(-3deg); }
.home-demo figcaption { margin-top: 22px; color: var(--ink-soft); text-align: center; }
.home-how { max-width: 1120px; margin: 0 auto; padding-top: 24px; }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; counter-reset: step; }
.how-steps li { counter-increment: step; position: relative; padding-top: 48px; }
.how-steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  font: 700 2.4rem/1 var(--font-hand); color: var(--red);
}
.how-steps strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }

.mark-good { color: var(--green); }
.mark-bad { color: var(--red); }

/* ---------- Přihlášení žáka ---------- */
.form-page-child { text-align: center; }
.hello-icon { width: 112px; height: 112px; margin: 0 auto 12px; }
.form-page-child .stack-form { text-align: left; }
.profiles-page { max-width: 760px; margin: 0 auto; text-align: center; }
.profile-grid { list-style: none; padding: 0; margin: 32px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.profile-tile {
  display: grid; justify-items: center; gap: 10px; padding: 24px 12px 18px;
  background: var(--sheet); border: 2px solid var(--line); border-radius: 16px; box-shadow: 0 5px 0 var(--line);
  text-decoration: none; color: var(--ink); font: 800 1.35rem/1.1 var(--font-display);
}
.profile-tile:hover { border-color: var(--pen); box-shadow: 0 5px 0 var(--pen); color: var(--ink); }
.profiles-foot { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--ink-soft); }
.profiles-foot form { margin: 0; }

.pin-page { max-width: 360px; margin: 0 auto; text-align: center; display: grid; justify-items: center; }
.pin-page h1 { font-size: 1.7rem; margin-top: 12px; }
.pin-form { display: grid; justify-items: center; gap: 20px; width: 100%; }
.pin-form.has-js .pin-input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.pin-form:not(.has-js) .pin-dots, .pin-form:not(.has-js) .pin-pad { display: none; }
.pin-input { max-width: 200px; text-align: center; font-size: 2rem !important; letter-spacing: .4em; }
.pin-dots { display: flex; gap: 16px; }
.pin-dots span { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--pen); }
.pin-dots span.is-filled { background: var(--pen); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 12px; }
.pin-pad button {
  height: 68px; font: 800 1.7rem/1 var(--font-display); color: var(--ink);
  background: var(--sheet); border: 2px solid var(--line); border-radius: 14px; box-shadow: 0 4px 0 var(--line); cursor: pointer;
}
.pin-pad button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.pin-pad .pin-go { background: var(--pen); color: #fff; border-color: var(--pen-dark); box-shadow: 0 4px 0 var(--pen-dark); font-size: 1.3rem; }

/* ---------- Žák: předměty a cesta ---------- */
.child-page { max-width: 880px; margin: 0 auto; }
.subject-grid { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.subject-tile {
  --c: var(--pen);
  display: grid; gap: 4px; padding: 24px; min-height: 180px; align-content: end;
  background: var(--sheet); border: 2px solid var(--line); border-radius: 16px; box-shadow: 0 6px 0 var(--line);
  text-decoration: none; color: var(--ink);
}
.subject-tile:hover { border-color: var(--c); box-shadow: 0 6px 0 var(--c); color: var(--ink); }
/* Barva předmětu: --c (výplň) a --c-dark (spodní hrana) */
.subject-matematika { --c: #1F3FA8; --c-dark: #142C7A; }
.subject-cestina { --c: #B5233A; --c-dark: #7E1426; }
.subject-anglictina { --c: #7A4BB0; --c-dark: #4F2C78; }
.subject-prvouka, .subject-prirodoveda, .subject-prirodopis { --c: #2E7D4F; --c-dark: #1B5434; }
.subject-vlastiveda { --c: #A85A00; --c-dark: #6E3B00; }
.subject-zemepis { --c: #0E7C86; --c-dark: #075158; }
.subject-dejepis { --c: #8A5A33; --c-dark: #5A3A20; }
.subject-fyzika { --c: #C2410C; --c-dark: #7F2A07; }
.subject-chemie { --c: #B5258F; --c-dark: #78185E; }
.subject-icon { width: 48px; height: 48px; fill: none; stroke: var(--c); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: auto; }
.subject-name { font: 800 1.6rem/1.1 var(--font-display); }
.subject-progress { color: var(--ink-soft); }

.subject-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.subject-tabs a {
  font: 800 1.05rem/1 var(--font-display); text-decoration: none; color: var(--ink-soft);
  padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--sheet);
}
.subject-tabs a[aria-current="page"] { color: #fff; background: var(--c, var(--pen)); border-color: var(--c, var(--pen)); }

/* Úvod žáka: opakování a odznaky */
.section-title { font-size: 1.3rem; margin: 32px 0 0; }
.past-grade-title { font-size: 1.6rem; }
.prev-year-banner {
  display: grid; gap: 4px; margin: 20px 0 8px; padding: 18px 22px; max-width: 640px;
  background: var(--marker); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink);
  color: var(--ink); text-decoration: none;
}
.prev-year-banner:hover { color: var(--ink); }
.prev-year-title { font: 800 1.25rem/1.2 var(--font-display); }
.today-review { margin: 24px 0 8px; }
.today-review h2 { font-size: 1.3rem; margin-bottom: 12px; }
.today-review h2::after { content: " ↻"; color: var(--green); }
.review-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 640px; }
.review-item {
  --c: var(--pen);
  display: grid; gap: 2px; padding: 14px 18px; background: var(--sheet); color: var(--ink); text-decoration: none;
  border: 2px solid var(--line); border-left: 8px solid var(--c); border-radius: 12px; box-shadow: 0 4px 0 var(--line);
}
.review-item:hover { border-color: var(--c); color: var(--ink); }
.review-name { font: 800 1.15rem/1.2 var(--font-display); }
.review-meta { color: var(--ink-soft); font-size: .95rem; }
.past-grades { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 28px; color: var(--ink-soft); }
.past-grades a { font-weight: 700; }
.badge-shelf { margin-top: 36px; }
.badge-shelf h2 { font-size: 1.3rem; }
.badge-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.badge { display: grid; justify-items: center; gap: 6px; width: 104px; text-align: center; font-size: .9rem; line-height: 1.2; }
.badge small { color: var(--ink-soft); }
.badge-medal {
  --m: var(--pen);
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font: 800 1.35rem/1 var(--font-display); color: #fff; background: var(--m);
  border: 4px solid #fff; box-shadow: 0 0 0 3px var(--m), 0 5px 0 3px color-mix(in srgb, var(--m) 70%, #000);
}
.badge-prvni-lekce { --m: #1F3FA8; } .badge-deset-lekci { --m: #0E7C86; } .badge-padesat-lekci { --m: #7A4BB0; }
.badge-sto-lekci { --m: #B5258F; } .badge-serie-3 { --m: #F08A24; } .badge-serie-7 { --m: #E0631A; }
.badge-serie-30 { --m: #C2410C; } .badge-bez-chyby { --m: #18804A; } .badge-body-500 { --m: #C9A400; }
.badge-body-2000 { --m: #A86200; } .badge-opakovani { --m: #2E7D4F; } .badge-vsechny-predmety { --m: #B5233A; }
.new-badges { margin: 0 auto 8px; }
.new-badges-title { font: 700 1.8rem/1 var(--font-hand); color: var(--green); margin-bottom: 12px; }
.new-badges .badge-list { justify-content: center; }
.new-badges .badge { width: 160px; }

.path { list-style: none; padding: 0; margin: 0; }
.path-topic + .path-topic { margin-top: 40px; }
.topic-title { font-size: 1.45rem; margin: 0 0 18px; }
.topic-title span { background: linear-gradient(transparent 55%, var(--marker) 55%, var(--marker) 92%, transparent 92%); padding: 0 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.path-lessons { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.path-lesson { --x: 0px; transform: translateX(var(--x)); }
.lesson-link { display: inline-flex; align-items: center; gap: 18px; color: var(--ink); text-decoration: none; border-radius: 48px; padding-right: 14px; }
.lesson-link:hover { color: var(--ink); }
.lesson-link:hover .lesson-name { text-decoration: underline; text-underline-offset: 3px; }
.lesson-link:focus-visible { outline-offset: 6px; }
.path-lesson:nth-child(6n+2) { --x: 56px; }
.path-lesson:nth-child(6n+3) { --x: 96px; }
.path-lesson:nth-child(6n+4) { --x: 56px; }
.path-lesson:nth-child(6n+6) { --x: -24px; }
.lesson-node {
  flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sheet); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink);
  color: var(--ink);
}
.lesson-node svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.lesson-link:active .lesson-node { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.is-done .lesson-node { background: var(--c, var(--pen)); border-color: var(--c-dark, var(--pen-dark)); box-shadow: 0 5px 0 var(--c-dark, var(--pen-dark)); color: #fff; }
.is-next .lesson-node { background: var(--marker); width: 88px; height: 88px; }
.is-next .lesson-node svg { fill: var(--ink); stroke-width: 2; }
.lesson-label { display: grid; gap: 2px; font-weight: 700; max-width: 30ch; line-height: 1.3; }
.stars { display: inline-flex; gap: 2px; }
.star { width: 18px; height: 18px; fill: var(--grid); }
.star.is-on { fill: #F2B705; }
.next-tag { font: 700 1.35rem/1 var(--font-hand); color: var(--red); transform: rotate(-3deg); transform-origin: left; }

@media (prefers-reduced-motion: no-preference) {
  .is-next .lesson-node { animation: nudge 1.6s ease-in-out 0.4s 2; }
}
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Lekce ---------- */
.page-lesson .site-main { padding: 0 clamp(12px, 3vw, 32px) 160px; }
.lesson { max-width: 760px; margin: 0 auto; }
.lesson-bar {
  position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 16px;
  padding: 14px 0 10px; background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.lesson-close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-soft); }
.lesson-close svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.lesson-close:hover { color: var(--ink); background: var(--grid); }
.lesson-progress { height: 16px; border-radius: 999px; background: var(--grid); overflow: hidden; border: 2px solid var(--line); }
.lesson-progress-fill { display: block; height: 100%; width: 0; background: var(--pen); border-radius: 999px; transition: width .3s ease; box-shadow: inset 0 3px 0 rgba(255,255,255,.25); }
.lesson-crumb { grid-column: 2; margin: 0; font-size: .9rem; color: var(--ink-soft); }
.lesson-progress:not([hidden]) ~ .lesson-crumb { display: none; }

/* List papíru s červeným okrajem jako v sešitě */
.sheet {
  position: relative; background: var(--sheet); margin-top: 12px;
  padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 40px) 32px clamp(44px, 9vw, 88px);
  border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 5px 6px 0 -1px var(--sheet), 5px 6px 0 0 var(--line);
}
.sheet::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(24px, 5.5vw, 60px); width: 2px; background: var(--red); opacity: .45; }
.lesson-title { margin-bottom: 16px; }
.explanation { font-size: 1.15rem; max-width: 62ch; }
.explanation table { border-collapse: collapse; margin: 12px 0; }
.explanation td, .explanation th { border: 1px solid var(--line); padding: 6px 12px; }
.explanation mark { background: linear-gradient(transparent 50%, var(--marker) 50%); color: inherit; padding: 0 2px; }
.explanation .rule { border-left: 4px solid var(--pen); padding: 6px 14px; background: var(--pen-tint); border-radius: 0 8px 8px 0; }
.explanation .words { font-weight: 700; color: var(--pen); }

.example { margin-top: 28px; padding-top: 24px; border-top: 2px dashed var(--line); }
.example h2 { font-size: 1.25rem; }
.example-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.example-mark { font: 700 1.8rem/1.1 var(--font-hand); margin: 12px 0 0; min-height: 1.1em; }
.solution { margin-top: 12px; padding: 14px 18px 14px 38px; background: var(--pen-tint); border-radius: 10px; }
.solution li + li { margin-top: 4px; }
.stage-foot { margin-top: 32px; display: flex; justify-content: flex-end; }

.retry-note { display: inline-block; font: 700 1.5rem/1 var(--font-hand); color: var(--red); transform: rotate(-2deg); margin-bottom: 12px; }
.task-main { min-height: 200px; }
.task-question { font-size: 1.25rem; font-weight: 700; margin-bottom: 18px; max-width: 52ch; }
.task-note { color: var(--ink-soft); margin-top: -10px; }
.task-prompt {
  font: 800 clamp(2rem, 1.3rem + 2.6vw, 2.9rem)/1.5 var(--font-display); margin: 8px 0 16px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .25em; font-variant-numeric: tabular-nums;
}
.task-prompt-big { justify-content: flex-start; }
/* Odpověď se „píše do řádku“ modrým inkoustem */
input.number-input {
  font: inherit; color: var(--pen); width: 4.6ch; min-width: 2.5ch; min-height: 0; text-align: center;
  border: 0; border-bottom: 4px dashed var(--pen); background: transparent; padding: 0 4px; border-radius: 4px 4px 0 0;
}
input.number-input:focus { outline: none; border-color: var(--pen); border-bottom-style: solid; background: var(--pen-tint); }
input.number-input.is-correct { border-bottom: 4px solid var(--green); color: var(--green); background: transparent; }
input.number-input.is-wrong { color: var(--ink-soft); text-decoration: line-through var(--red) 4px; border-bottom: 4px solid var(--red); background: transparent; }
.correction { font: 700 1.25em/1 var(--font-hand); color: var(--red); transform: rotate(-6deg) translateY(-0.3em); margin-left: .2em; }
.suffix { font-size: .7em; color: var(--ink-soft); }

.fill-sentence { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); line-height: 2.1; margin: 8px 0 24px; max-width: 30ch; }
.gap {
  font: 800 1em/1 var(--font-display); color: var(--pen);
  display: inline-block; min-width: 1.15em; padding: 0 .12em; margin: 0 1px; vertical-align: baseline;
  background: transparent; border: 0; border-bottom: 4px dashed var(--pen); cursor: pointer; border-radius: 4px 4px 0 0;
}
.gap.is-active { background: var(--marker); border-bottom-style: solid; }
.gap.is-correct { border-bottom: 4px solid var(--green); background: var(--green-tint); color: var(--green); }
.gap.is-wrong { border-bottom: 4px solid var(--red); background: var(--red-tint); color: var(--red); text-decoration: line-through; }
.gap:disabled { cursor: default; }
.choice-bar { display: flex; gap: 14px; flex-wrap: wrap; min-height: 76px; }
.letter {
  min-width: 76px; height: 76px; padding: 0 14px; font: 800 2.1rem/1 var(--font-display); color: var(--ink);
  background: var(--sheet); border: 2px solid var(--line); border-radius: 14px; box-shadow: 0 5px 0 var(--line); cursor: pointer;
}
.letter:hover { border-color: var(--pen); color: var(--pen); }
.letter:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--line); }

.options { display: grid; gap: 12px; max-width: 560px; }
.options-compact { grid-template-columns: repeat(auto-fit, minmax(88px, 120px)); }
.option {
  display: flex; align-items: center; gap: 14px; text-align: left; min-height: 60px; padding: 12px 18px;
  font: 700 1.2rem/1.3 var(--font-body); color: var(--ink);
  background: var(--sheet); border: 2px solid var(--line); border-radius: 14px; box-shadow: 0 4px 0 var(--line); cursor: pointer;
}
.options-compact .option { justify-content: center; font: 800 2.2rem/1 var(--font-display); min-height: 88px; }
.options-compact .option-key { display: none; }
.option-key {
  flex: none; width: 28px; height: 28px; display: grid; place-items: center; font-size: .85rem;
  border: 2px solid var(--line); border-radius: 8px; color: var(--ink-soft);
}
.option:hover:not(:disabled) { border-color: var(--pen); }
.option.is-selected { border-color: var(--pen); background: var(--pen-tint); box-shadow: 0 4px 0 var(--pen); }
.option.is-correct { border-color: var(--green); background: var(--green-tint); box-shadow: 0 4px 0 var(--green); }
.option.is-wrong { border-color: var(--red); background: var(--red-tint); box-shadow: 0 4px 0 var(--red); }
.option:disabled { cursor: default; }

/* Pravda/nepravda – celá věta */
.task-statement { font: 800 clamp(1.35rem, 1.1rem + 1vw, 1.75rem)/1.35 var(--font-display); margin: 4px 0 22px; max-width: 32ch; }

/* Psaní slova */
.task-prompt-word { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.8rem); }
.text-answer-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin: 0; }
input.text-answer {
  font: 800 clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem)/1.3 var(--font-display); color: var(--pen);
  width: min(100%, 14ch); min-height: 0; padding: 2px 8px;
  border: 0; border-bottom: 4px dashed var(--pen); border-radius: 4px 4px 0 0; background: transparent;
}
input.text-answer:focus { outline: none; border-color: var(--pen); border-bottom-style: solid; background: var(--pen-tint); }
input.text-answer.is-correct { color: var(--green); border-bottom: 4px solid var(--green); background: transparent; }
input.text-answer.is-wrong { color: var(--ink-soft); text-decoration: line-through var(--red) 3px; border-bottom: 4px solid var(--red); background: transparent; }
.text-answer-line .correction { font-size: 2.2rem; transform: rotate(-4deg); }

/* Výslovnost */
.speak {
  display: inline-grid; place-items: center; width: 44px; height: 44px; vertical-align: middle;
  border: 2px solid var(--line); border-radius: 12px; background: var(--sheet); color: var(--pen); cursor: pointer;
  box-shadow: 0 3px 0 var(--line);
}
.speak svg, .say-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.speak svg path:first-child, .say-button svg path:first-child { fill: currentColor; }
.speak:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.say-button {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 4px; margin: -2px 0;
  font: inherit; font-weight: 700; color: var(--pen); background: none; border: 0; border-radius: 8px; cursor: pointer;
}
.say-button:hover { background: var(--pen-tint); }
.explanation table.vocab { min-width: min(100%, 420px); }
.explanation table.vocab th { text-align: left; font-size: .9rem; color: var(--ink-soft); }

/* Dvojice */
.match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px clamp(16px, 5vw, 48px); max-width: 560px; margin-bottom: 24px; }
.match-grid + .task-note { margin-top: 0; }
.match-col { display: grid; gap: 12px; align-content: start; }
.match-item {
  min-height: 56px; padding: 10px 14px; font: 700 1.15rem/1.2 var(--font-body); color: var(--ink); text-align: center;
  background: var(--sheet); border: 2px solid var(--line); border-radius: 14px; box-shadow: 0 4px 0 var(--line); cursor: pointer;
}
.match-item:hover:not(:disabled) { border-color: var(--pen); }
.match-item.is-selected { border-color: var(--pen); background: var(--marker); box-shadow: 0 4px 0 var(--pen); }
.match-item.pair-1 { border-color: #1F3FA8; background: #E7ECFA; box-shadow: 0 4px 0 #1F3FA8; }
.match-item.pair-2 { border-color: #7A4BB0; background: #F1E9FA; box-shadow: 0 4px 0 #7A4BB0; }
.match-item.pair-3 { border-color: #A86200; background: #FFF1D6; box-shadow: 0 4px 0 #A86200; }
.match-item.pair-4 { border-color: #0E7C86; background: #E0F4F5; box-shadow: 0 4px 0 #0E7C86; }
.match-item.is-correct { border-color: var(--green); background: var(--green-tint); box-shadow: 0 4px 0 var(--green); }
.match-item.is-wrong { border-color: var(--red); background: var(--red-tint); box-shadow: 0 4px 0 var(--red); }
.match-item:disabled { cursor: default; color: var(--ink); }

/* Seřaď */
.order-line { list-style: none; padding: 12px; margin: 0 0 16px; display: grid; gap: 10px; min-height: 76px;
  border: 2px dashed var(--line); border-radius: 14px; max-width: 560px; }
.order-slot { display: flex; align-items: center; gap: 10px; }
.order-num { flex: none; width: 28px; text-align: right; font: 800 1.2rem/1 var(--font-display); color: var(--pen); }
.order-empty { color: var(--ink-soft); padding: 12px; }
.order-bank { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; min-height: 56px; margin-bottom: 12px; }
.order-end { margin: 0 0 6px; font-size: .9rem; color: var(--ink-soft); font-weight: 700; }
.order-chip {
  min-height: 52px; padding: 10px 16px; font: 700 1.1rem/1.2 var(--font-body); color: var(--ink); text-align: left;
  background: var(--sheet); border: 2px solid var(--line); border-radius: 12px; box-shadow: 0 4px 0 var(--line); cursor: pointer;
}
.order-line .order-chip { flex: 1; border-color: var(--pen); box-shadow: 0 4px 0 var(--pen); background: var(--pen-tint); }
.order-chip:disabled { cursor: default; color: var(--ink); }
.order-slot.is-correct .order-chip { border-color: var(--green); background: var(--green-tint); box-shadow: 0 4px 0 var(--green); }
.order-slot.is-wrong .order-chip { border-color: var(--red); background: var(--red-tint); box-shadow: 0 4px 0 var(--red); }

.hint-toggle { margin-top: 18px; }
.hint { margin-top: 6px; padding: 10px 14px; background: var(--amber-tint); border-radius: 8px; max-width: 52ch; }

/* Spodní lišta s opravou */
.answer-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--sheet); border-top: 2px solid var(--line);
  padding: 16px clamp(16px, 4vw, 40px) calc(16px + env(safe-area-inset-bottom));
}
.answer-bar.is-good { background: var(--green-tint); border-top-color: var(--green); }
.answer-bar.is-bad { background: var(--red-tint); border-top-color: var(--red); }
.answer-bar-inner { max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.answer-bar-inner .btn { min-width: 200px; }
.verdict { flex: 1 1 280px; min-height: 1px; }
.verdict-word { font: 700 clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem)/1 var(--font-hand); margin: 0; }
.verdict-detail { margin: 6px 0 0; color: var(--ink); }
.verdict-detail:empty { display: none; }
.verdict-correct { display: block; font-size: 1.2rem; color: var(--red); margin-bottom: 2px; }

.lesson-error { margin: 16px 0; padding: 12px 16px; border: 2px solid var(--red); background: var(--red-tint); color: var(--red); border-radius: 10px; font-weight: 700; }

/* Výsledek lekce – razítko se známkou */
.summary { text-align: center; padding-top: 48px; }
.stamp {
  width: 150px; height: 150px; margin: 0 auto 24px; border-radius: 50%;
  border: 7px double var(--red); color: var(--red);
  display: grid; place-content: center; transform: rotate(-12deg);
}
.stamp span { font: 800 4.6rem/0.9 var(--font-display); }
.stamp small { font: 700 1.5rem/1 var(--font-hand); }
@media (prefers-reduced-motion: no-preference) {
  .summary:not([hidden]) .stamp { animation: stamp .45s cubic-bezier(.2, 1.4, .4, 1) .15s both; }
}
@keyframes stamp {
  from { opacity: 0; transform: rotate(-24deg) scale(1.8); }
  to { opacity: 1; transform: rotate(-12deg) scale(1); }
}
.summary-facts { display: flex; justify-content: center; gap: clamp(20px, 6vw, 56px); margin: 24px 0 8px; flex-wrap: wrap; }
.summary-facts div { display: grid; gap: 2px; }
.summary-facts dt { color: var(--ink-soft); font-size: .95rem; }
.summary-facts dd { margin: 0; font: 800 1.8rem/1.1 var(--font-display); }
.summary-actions { justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Rodič ---------- */
.parent-page { max-width: 1080px; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { margin: 0; }
.empty { padding: 28px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--sheet); max-width: 640px; }
.child-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 20px; }
.child-card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 16px; }
.child-card-head { display: flex; gap: 14px; align-items: center; }
.child-card-head h2 { margin: 0; }
.child-card-head h2 a { color: var(--ink); text-decoration: none; }
.child-card-head p { margin: 0; font-size: .95rem; }
.child-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 0; }
.facts-wide { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 20px 0 24px; }
.facts dt { font-size: .9rem; color: var(--ink-soft); }
.facts dd { margin: 0; font: 800 1.6rem/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.facts dd.muted { font: 400 .9rem/1.3 var(--font-body); }
.traffic-summary { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .88rem; font-weight: 700; white-space: nowrap; }
.pill-good { background: var(--green-tint); color: var(--green); }
.pill-practice { background: var(--amber-tint); color: var(--amber); }
.pill-help { background: var(--red-tint); color: var(--red); }
.pill-none { background: #EEF1F5; color: var(--ink-soft); }
.handover { margin-top: 32px; padding: 22px 24px; background: var(--pen-tint); border-radius: var(--radius); display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; }
.handover h2 { margin: 0 0 4px; font-size: 1.2rem; }
.handover p { margin: 0; }
.handover form { margin: 0; }
.family-code { grid-column: 1 / -1; color: var(--ink-soft); }

.child-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.child-head h1 { margin: 0; }
.child-head p { margin: 0; }
.child-head .btn { margin-left: auto; }
.panel { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.panel h2 { font-size: 1.25rem; }
.panel-attention { border-left: 6px solid var(--red); }
.weak-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.weak-list li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--grid); vertical-align: middle; }
thead th { font-size: .85rem; color: var(--ink-soft); font-weight: 700; border-bottom: 2px solid var(--line); white-space: nowrap; }
tbody th { font-weight: 700; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mistake-table .given { color: var(--red); text-decoration: line-through; }
.mistake-table .expected { color: var(--green); font-weight: 700; }
.bar { display: inline-block; width: 110px; height: 10px; border-radius: 999px; background: var(--grid); overflow: hidden; vertical-align: middle; }
.bar > span { display: block; height: 100%; background: var(--pen); border-radius: 999px; }
.bar-good > span { background: var(--green); }
.bar-practice > span { background: #D68A00; }
.bar-help > span { background: var(--red); }
dd.bar { width: 100%; margin-top: 6px; }
.bar-value { font-variant-numeric: tabular-nums; margin-left: 8px; font-weight: 700; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.chart-box { position: relative; height: 240px; }
.account-block { padding: 20px 0; border-bottom: 1px solid var(--line); }
.account-block h2 { font-size: 1.2rem; }

/* Šířky pruhů (kvůli CSP bez inline stylů) */
.w-0 { width: 0; } .w-5 { width: 5%; } .w-10 { width: 10%; } .w-15 { width: 15%; } .w-20 { width: 20%; }
.w-25 { width: 25%; } .w-30 { width: 30%; } .w-35 { width: 35%; } .w-40 { width: 40%; } .w-45 { width: 45%; }
.w-50 { width: 50%; } .w-55 { width: 55%; } .w-60 { width: 60%; } .w-65 { width: 65%; } .w-70 { width: 70%; }
.w-75 { width: 75%; } .w-80 { width: 80%; } .w-85 { width: 85%; } .w-90 { width: 90%; } .w-95 { width: 95%; } .w-100 { width: 100%; }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .home-hero { grid-template-columns: 1fr; }
  .demo-sheet { padding-left: 56px; }
  .demo-sheet::before { left: 36px; }
  .path-lesson:nth-child(6n+2) { --x: 28px; }
  .path-lesson:nth-child(6n+3) { --x: 48px; }
  .path-lesson:nth-child(6n+4) { --x: 28px; }
  .path-lesson:nth-child(6n+6) { --x: 0px; }
  .status-label { display: none; }
  .logo { height: 32px; }
  .goal .status-label { display: none; }
  .answer-bar-inner .btn { width: 100%; }
  .handover { grid-template-columns: 1fr; }
  .child-head .btn { margin-left: 0; }
  .facts dd { font-size: 1.35rem; }
  .pin-pad { grid-template-columns: repeat(3, 68px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ± u úloh se zápornými čísly */
.sign-toggle { margin-left: .5rem; min-width: 2.75rem; min-height: 2.75rem; border: 2px solid var(--line); border-radius: 12px; background: var(--sheet); font: inherit; font-weight: 700; color: var(--pen); cursor: pointer; vertical-align: middle; }
.sign-toggle:hover:not(:disabled) { border-color: var(--pen); }
.sign-toggle:disabled { opacity: .4; cursor: default; }
