/* Offline: žiadne externé fonty — používame systémové zaoblené fonty.
   'ui-rounded' → SF Pro Rounded na macOS/iOS; ostatné majú plnú podporu
   slovenských aj nemeckých znakov (č, š, ž, ä, ö, ü, ß …). */
:root {
  --sky:      #7FC8F8;
  --sky-soft: #E8F5FE;
  --sun:      #FFD23F;
  --grass:    #6BCB77;
  --coral:    #FF8C7A;
  --grape:    #C065D6;
  --ink:      #3A2E4D;
  --ink-soft: #7A6E8C;
  --paper:    #FFFDF7;
  --card:     #FFFFFF;
  --ok:       #4CAF50;
  --shadow:   0 10px 30px rgba(90, 60, 130, 0.12);
  --shadow-lg:0 18px 44px rgba(90, 60, 130, 0.20);
  --font-fun: ui-rounded, 'SF Pro Rounded', 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, #FFF3C4 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, #FFE0DA 0%, transparent 42%),
    radial-gradient(circle at 50% 100%, #DFF3E4 0%, transparent 50%),
    var(--sky-soft);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1000px; margin: 0 auto; padding: 1.25rem; }

/* ===== Header ===== */
.app-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.app-header:hover { transform: translateY(-2px); }
.app-header .mascot {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; background: var(--sky-soft);
  box-shadow: 0 4px 14px rgba(90,60,130,.18);
  animation: bob 3s ease-in-out infinite;
}
.app-header .titles h1 {
  font-family: var(--font-fun); font-size: 1.7rem; font-weight: 700;
  color: var(--grape); line-height: 1.1;
}
.app-header .titles p { color: var(--ink-soft); font-size: .95rem; margin-top: .15rem; }

@keyframes bob { 0%,100%{transform:translateY(0) rotate(-3deg)} 50%{transform:translateY(-8px) rotate(3deg)} }

/* ===== Home: theme grid ===== */
.grid-themes {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.1rem;
}
.theme-card {
  background: var(--card); border: none; cursor: pointer;
  border-radius: 26px; padding: 1.6rem 1rem; text-align: center;
  box-shadow: var(--shadow); font-family: var(--font-body);
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s;
  border-bottom: 6px solid var(--tc, var(--sky));
  animation: pop .5s cubic-bezier(.22,1,.36,1) both;
}
.theme-card:hover { transform: translateY(-6px) scale(1.03); box-shadow: var(--shadow-lg); }
.theme-card .ico { font-size: 3.4rem; display: block; }
.theme-card .sk { font-family: var(--font-fun); font-weight: 700; font-size: 1.25rem; margin-top: .4rem; }
.theme-card .de { color: var(--ink-soft); font-size: .95rem; }

@keyframes pop { from{opacity:0; transform:translateY(14px) scale(.96)} to{opacity:1; transform:translateY(0) scale(1)} }

/* ===== Sub-nav (back + tabs) ===== */
.subbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.25rem; }
.btn-back {
  border: none; cursor: pointer; font-family: var(--font-fun); font-weight: 600;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow);
  padding: .6rem 1.1rem; border-radius: 99px; font-size: 1rem;
  transition: transform .2s;
}
.btn-back:hover { transform: translateX(-3px); }
.theme-heading { font-family: var(--font-fun); font-weight: 700; font-size: 1.5rem; display: flex; align-items: center; gap: .5rem; }

.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.tab {
  border: none; cursor: pointer; font-family: var(--font-fun); font-weight: 600;
  background: var(--card); color: var(--ink-soft); box-shadow: var(--shadow);
  padding: .65rem 1.2rem; border-radius: 99px; font-size: 1rem;
  transition: transform .2s, background .2s, color .2s;
}
.tab:hover { transform: translateY(-2px); }
.tab.active { background: var(--tc, var(--grape)); color: #fff; }

/* ===== Words grid ===== */
/* 4 podstatné mená v prvom rade, 2 slovesá zarovnané na stred pod nimi */
.grid-words { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; }
.grid-words .word-card { flex: 0 0 calc((100% - 3 * 1.1rem) / 4); max-width: calc((100% - 3 * 1.1rem) / 4); }
@media (max-width: 640px) {
  .grid-words .word-card { flex: 0 0 calc((100% - 1.1rem) / 2); max-width: calc((100% - 1.1rem) / 2); }
}
.word-card {
  background: var(--card); border: none; cursor: pointer;
  border-radius: 24px; padding: 1.3rem 1rem; text-align: center;
  box-shadow: var(--shadow); font-family: var(--font-body);
  transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s;
  animation: pop .45s cubic-bezier(.22,1,.36,1) both;
}
.word-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.word-card:active { transform: scale(.96); }
.word-card.speaking { outline: 4px solid var(--sun); outline-offset: 2px; }
.word-card .ico { font-size: 3.6rem; }
.word-card .de { font-family: var(--font-fun); font-weight: 700; font-size: 1.3rem; margin-top: .3rem; color: var(--ink); }
.word-card .sk { color: var(--ink-soft); font-size: 1rem; }
.satz {
  margin-top: .55rem; padding-top: .5rem; border-top: 1px dashed var(--line, rgba(0,0,0,.1));
  cursor: pointer; border-radius: 10px; transition: background .15s;
}
.satz:hover { background: rgba(0,0,0,.04); }
.satz .satz-de { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); }
.satz .satz-sk { display: block; font-size: .82rem; color: var(--ink-soft); font-style: italic; margin-top: .1rem; }
.word-card .spk { margin-top: .5rem; font-size: 1.2rem; opacity: .6; }

/* ===== Poem ===== */
.poem-box {
  background: var(--card); border-radius: 28px; box-shadow: var(--shadow);
  padding: 2rem; text-align: center; max-width: 620px; margin: 0 auto;
  border-top: 8px solid var(--tc, var(--grape));
}
.poem-box .emoji { font-size: 3rem; }
.poem-de { font-family: var(--font-fun); font-weight: 600; font-size: 1.5rem; line-height: 1.8; white-space: pre-line; margin: 1rem 0; color: var(--ink); }
.poem-sk { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; white-space: pre-line; font-style: italic; }
.btn-big {
  border: none; cursor: pointer; font-family: var(--font-fun); font-weight: 700;
  background: var(--tc, var(--grape)); color: #fff; font-size: 1.2rem;
  padding: .9rem 1.8rem; border-radius: 99px; box-shadow: var(--shadow);
  margin-top: 1.4rem; transition: transform .2s;
}
.btn-big:hover { transform: translateY(-3px) scale(1.03); }
.btn-big:active { transform: scale(.97); }

/* YouTube pesnička (krok 4, párne lekcie) */
.yt-box { margin-top: 1.1rem; }
.btn-yt {
  display: inline-block; text-decoration: none;
  font-family: var(--font-fun); font-weight: 700; font-size: 1.1rem;
  background: #FF0000; color: #fff; padding: .8rem 1.5rem; border-radius: 99px;
  box-shadow: var(--shadow); transition: transform .2s;
}
.btn-yt:hover { transform: translateY(-3px) scale(1.03); }
.yt-title { color: var(--ink-soft); font-size: .82rem; margin-top: .5rem; line-height: 1.4; }

/* ===== Krok 0: privítanie ===== */
.welcome-box {
  text-align: center; background: var(--card); border-radius: 28px; box-shadow: var(--shadow);
  padding: 2rem 1.5rem 1.6rem; max-width: 520px; margin: 0 auto;
  border-top: 8px solid var(--tc, var(--grape));
  animation: pop .5s cubic-bezier(.22,1,.36,1) both;
}
.welcome-mascot {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 6px 18px rgba(90,60,130,.2); animation: bob 3s ease-in-out infinite;
}
.welcome-hi { font-family: var(--font-fun); font-weight: 700; font-size: 1.4rem; color: var(--grape); margin: .8rem 0 .2rem; }
.welcome-title { font-family: var(--font-fun); font-weight: 700; font-size: 1.6rem; color: var(--ink); margin: .3rem 0; }
.welcome-sub { color: var(--ink-soft); font-size: 1.05rem; }
.phrase-standalone { max-width: 520px; margin: 1.25rem auto 0; }
.phrase-day {
  background: linear-gradient(135deg, #FFF6E0, #E8F5FE);
  border: 2px solid var(--tc, var(--grape)); border-radius: 18px;
  padding: .8rem .9rem; margin: 1.1rem 0 .2rem; text-align: left;
}
.pd-label { display: block; font-family: var(--font-fun); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tc, var(--grape)); text-align: center; margin-bottom: .5rem; }
.pd-item {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.75); border: none; border-radius: 12px;
  padding: .55rem .8rem; margin-top: .5rem; transition: transform .12s, background .15s;
}
.pd-item:first-of-type { margin-top: 0; }
.pd-item:hover { transform: translateY(-2px); background: #fff; }
.pd-de { display: block; font-family: var(--font-fun); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.pd-spk { font-size: .85rem; opacity: .55; }
.pd-sk { display: block; color: var(--ink-soft); font-style: italic; font-size: .95rem; margin-top: .05rem; }

/* ===== Game ===== */
.game-box { text-align: center; }
.game-stars { font-size: 1.6rem; min-height: 2rem; margin-bottom: .5rem; letter-spacing: .1rem; }
.game-prompt { font-family: var(--font-fun); font-weight: 700; color: var(--ink); font-size: 1.3rem; margin-bottom: .3rem; }
.game-word {
  font-family: var(--font-fun); font-weight: 700; font-size: 2.6rem; color: var(--tc, var(--grape));
  margin: .3rem 0 1rem;
}
.game-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 460px; margin: 1rem auto 0; }
.game-opt {
  border: none; cursor: pointer; background: var(--card); border-radius: 26px;
  padding: 1.6rem; font-size: 4rem; box-shadow: var(--shadow);
  transition: transform .18s;
}
.game-opt:hover { transform: translateY(-4px) scale(1.03); }
.game-opt.correct { background: #DDF6DE; outline: 5px solid var(--ok); animation: wiggle .5s; }
.game-opt.wrong { background: #FEE2E0; outline: 5px solid var(--coral); animation: shake .4s; }
.game-feedback { font-family: var(--font-fun); font-weight: 700; font-size: 1.5rem; min-height: 2.2rem; margin-top: 1rem; }
@keyframes wiggle { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-6deg)} 75%{transform:rotate(6deg)} }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-8px)} 75%{transform:translateX(8px)} }

/* Skutočné fotky slovíčok (namiesto emoji) */
.wpic { object-fit: cover; border-radius: 14px; display: inline-block; vertical-align: middle; box-shadow: 0 3px 8px rgba(90,60,130,.14); }
.game-opt .wpic { border-radius: 16px; }
.mem-card .wpic { border-radius: 10px; }
.bubble .wpic { border-radius: 50%; box-shadow: none; }
@media print { .wpic { box-shadow: none; } }

/* Dvojjazyčný nemecký riadok (pod slovenským textom) */
.bi-de {
  display: block; font-family: var(--font-body); font-weight: 500;
  font-size: .78em; font-style: italic; color: var(--ink-soft);
  margin-top: .12rem; line-height: 1.25;
}

/* Nadpis hry + spoločné */
.game-title { font-family: var(--font-fun); font-weight: 700; font-size: 1.2rem; color: var(--grape); margin-bottom: .4rem; }
.game-emoji-big { font-size: 6rem; margin: .3rem 0 .6rem; animation: pop .4s cubic-bezier(.22,1,.36,1) both; }

/* Hra Farby: úroveň + farebné kruhy */
.level-badge {
  display: inline-block; font-family: var(--font-fun); font-weight: 700; font-size: .85rem;
  background: var(--tc, var(--grape)); color: #fff; padding: .3rem .9rem; border-radius: 99px;
  margin-bottom: .5rem;
}
.color-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 1.2rem auto 0; max-width: 420px; }
.color-opt {
  width: 82px; height: 82px; border-radius: 50%; cursor: pointer;
  border: 4px solid rgba(0,0,0,.12); box-shadow: var(--shadow);
  transition: transform .15s;
}
.color-opt:hover { transform: scale(1.09); }
.color-opt.correct { outline: 5px solid var(--ok); outline-offset: 3px; animation: wiggle .5s; }
.color-opt.wrong { outline: 5px solid var(--coral); outline-offset: 3px; animation: shake .4s; }

/* Hra Rodina: nálepková doska */
.fam-board {
  position: relative; max-width: 480px; min-height: 300px; margin: 1rem auto 0;
  background: linear-gradient(135deg, #FFF6E0, #E8F5FE);
  border: 3px dashed var(--grape); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer;
}
.fam-house { position: absolute; inset: 0; pointer-events: none; }
.fam-house svg { width: 100%; height: 100%; display: block; }
.fam-hint { position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.9); color: var(--ink-soft); font-family: var(--font-fun); font-weight: 700;
  font-size: .82rem; padding: .3rem 1rem; border-radius: 16px; pointer-events: none; box-shadow: var(--shadow);
  text-align: center; line-height: 1.25; }
.fam-hint .bi-de { margin-top: 0; }
.placed { position: absolute; transform: translate(-50%, -50%); font-size: 3.4rem; line-height: 1;
  animation: pop .3s cubic-bezier(.22,1,.36,1) both; pointer-events: none; }
.placed .wpic { border-radius: 12px; }
.fam-palette { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1rem; }
.fam-sticker {
  border: none; cursor: pointer; background: var(--card); border-radius: 16px; box-shadow: var(--shadow);
  padding: .5rem .5rem .35rem; display: flex; flex-direction: column; align-items: center;
  font-family: var(--font-body); transition: transform .15s;
}
.fam-sticker .fs-pic { font-size: 2.4rem; line-height: 1; }
.fam-sticker .fs-label { font-family: var(--font-fun); font-weight: 700; font-size: .78rem; color: var(--ink); margin-top: .15rem; }
.fam-sticker:hover { transform: translateY(-3px); }
.fam-sticker.sel { outline: 3px solid var(--grape); outline-offset: 1px; }

/* Rodina: odporúčanie + dva tlačové hárky */
.fam-tip {
  background: #FFF9E6; border-left: 4px solid var(--sun); border-radius: 10px;
  padding: .7rem .9rem; margin: 1rem auto 0; max-width: 480px; font-size: .9rem;
  line-height: 1.5; color: #8a7a2f; text-align: left;
}
.fam-tip b { color: var(--ink); }
.fam-tip code { background: #F0E9F8; padding: .05rem .3rem; border-radius: 5px; font-size: .95em; }
.family-print, .house-print { display: none; }
.family-print h2, .house-print h2 { font-family: var(--font-fun); text-align: center; margin-bottom: .4rem; }
.fp-note { text-align: center; color: var(--ink-soft); margin-bottom: 1rem; }
.house-print-svg svg { width: 100%; height: auto; border: 2px solid #444; border-radius: 8px; }
@page houselandscape { size: A4 landscape; margin: 10mm; }
@media print {
  .family-print { display: block; }
  .house-print { display: none; page: houselandscape; }  /* domček = A4 na šírku */
  body.print-house .family-print { display: none; }
  body.print-house .house-print { display: block; }
  .family-print .print-grid { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
}

/* Hra 2: Ako sa to povie? — slovné tlačidlá */
.game-word-opts { display: flex; flex-direction: column; gap: .7rem; max-width: 360px; margin: 1rem auto 0; }
.word-opt {
  border: none; cursor: pointer; font-family: var(--font-fun); font-weight: 700; font-size: 1.35rem;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow);
  padding: .9rem 1rem; border-radius: 18px; border-bottom: 5px solid var(--tc, var(--sky));
  transition: transform .15s;
}
.word-opt:hover { transform: translateY(-3px); }
.word-opt:active { transform: scale(.97); }
.word-opt.correct { background: #DDF6DE; outline: 4px solid var(--ok); }
.word-opt.wrong { background: #FEE2E0; animation: shake .4s; }

/* Hra 3: Pexeso */
.memory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; max-width: 420px; margin: 1rem auto 0; }
.mem-card {
  position: relative; aspect-ratio: 1; border: none; cursor: pointer; border-radius: 18px;
  background: var(--card); box-shadow: var(--shadow); font-size: 2.4rem;
  display: grid; place-items: center; transition: transform .15s;
}
.mem-card:hover { transform: translateY(-3px); }
.mem-card .mem-back { color: var(--grape); opacity: .55; }
.mem-card .mem-face { display: none; }
.mem-card.open .mem-face, .mem-card.done .mem-face { display: block; animation: pop .3s cubic-bezier(.22,1,.36,1) both; }
.mem-card.open .mem-back, .mem-card.done .mem-back { display: none; }
.mem-card.open { outline: 4px solid var(--sky); }
.mem-card.done { background: #DDF6DE; outline: 4px solid var(--ok); cursor: default; }

/* Hra 4: Bublinky */
.bubbles { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 1.2rem auto 0; max-width: 460px; }
.bubble {
  border: none; cursor: pointer; width: 96px; height: 96px; border-radius: 50%;
  font-size: 3rem; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, #fff, var(--sky-soft) 70%, var(--sky));
  box-shadow: var(--shadow), inset 0 -6px 12px rgba(90,60,130,.08);
  animation: float 4s ease-in-out infinite; transition: transform .15s;
}
.bubble:hover { transform: scale(1.06); }
.bubble.wrong { animation: shake .4s; outline: 4px solid var(--coral); }
.bubble.popped { animation: pop-out .4s forwards; pointer-events: none; }
@keyframes pop-out { to { transform: scale(0); opacity: 0; } }

/* Maľovanka (Malbuch) — náhľad na obrazovke */
.coloring-preview { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 1rem 0; }
.cp-item { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: .5rem .5rem .2rem; width: 132px; text-align: center; }
.cp-item .art { width: 112px; height: 112px; }
img.art { object-fit: contain; }
.cp-label { display: block; font-family: var(--font-fun); font-weight: 700; font-size: .95rem; margin-top: .1rem; }
.art-emoji { font-size: 4rem; }

/* Tlačový hárok maľovanky — skrytý na obrazovke */
.coloring-print { display: none; }
.coloring-print h2 { font-family: var(--font-fun); text-align: center; margin-bottom: 1rem; }
.coloring-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.coloring-card { border: 2px dashed #bbb; border-radius: 16px; padding: 1rem; text-align: center; break-inside: avoid; }
.coloring-card .art { display: block; margin: 0 auto; width: auto; max-width: 100%; max-height: 72mm; height: auto; }
.cc-label { font-family: var(--font-fun); font-weight: 700; font-size: 1.2rem; margin-top: .4rem; }

/* Tlačové hárky — skryté na obrazovke, zobrazia sa iba pri tlači */
.words-print, .pexeso-print { display: none; }
.words-print h2, .pexeso-print h2 { font-family: var(--font-fun); text-align: center; margin-bottom: .3rem; }
.pexeso-hint { text-align: center; color: var(--ink-soft); margin-bottom: 1rem; font-size: .95rem; }
.print-bar { display: flex; justify-content: center; margin-top: 1.3rem; }
@media print {
  /* predvolene tlačíme slovíčka; tlačidlá „pexeso"/„maľovanka" prepnú cez triedu na body */
  .words-print { display: block; }
  .pexeso-print, .coloring-print { display: none; }
  body.print-pexeso .words-print, body.print-coloring .words-print { display: none; }
  body.print-pexeso .pexeso-print { display: block; }
  body.print-coloring .coloring-print { display: block; }
  .words-print .print-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .pexeso-print .print-grid { grid-template-columns: repeat(4, 1fr); gap: .5rem; }
  .words-print .print-card, .pexeso-print .print-card { border-color: #444; }
  /* maľovanka: 2×3 na jednu stranu — malé okraje, aby sa zmestilo aj s hlavičkou tlače */
  @page { size: A4; margin: 8mm; }
  .coloring-print h2 { margin-bottom: .4rem; font-size: 1rem; }
  .coloring-grid { gap: 4mm; }
  .coloring-card { padding: 3mm; border-color: #999; }
  .coloring-card .art { max-height: 55mm; }
  .cc-label { font-size: 1rem; margin-top: .2rem; }
}

/* ===== Print view (Materiály na tlač) ===== */
.print-intro { text-align: center; margin-bottom: 1.25rem; color: var(--ink-soft); }
.print-sheet {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 1.5rem;
}
.print-sheet h2 { font-family: var(--font-fun); text-align: center; color: var(--ink); margin-bottom: 1rem; }
.print-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.print-card {
  border: 3px dashed #cbb8dd; border-radius: 18px; padding: 1.2rem; text-align: center;
  break-inside: avoid;
}
.print-card .ico { font-size: 4rem; }
.print-card .de { font-family: var(--font-fun); font-weight: 700; font-size: 1.5rem; margin-top: .4rem; }
.print-card .sk { color: #666; font-size: 1.1rem; }

@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .print-sheet { box-shadow: none; padding: 0; }
  .print-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .print-card { border-color: #999; }
}

.footer { text-align: center; color: var(--ink-soft); font-size: .85rem; margin: 2.5rem 0 1rem; }

/* ===== Progress card (domov) ===== */
.progress-card {
  background: var(--card); border-radius: 26px; box-shadow: var(--shadow);
  padding: 1.3rem 1.5rem; margin-bottom: 1.25rem;
}
.progress-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .6rem; }
.progress-label { font-family: var(--font-fun); font-weight: 700; font-size: 1.1rem; }
.progress-count { color: var(--ink-soft); font-weight: 600; }
.progress-bar { height: 14px; background: #EEE7F5; border-radius: 99px; overflow: hidden; }
.progress-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--grass), var(--sun));
  transition: width .5s cubic-bezier(.22,1,.36,1);
}
.progress-hint { margin-top: .7rem; color: var(--ink-soft); font-size: 1rem; }
.progress-hint b { color: var(--ink); }

/* ===== Lesson list ===== */
.lesson-list { display: flex; flex-direction: column; gap: .8rem; }
.lesson-row {
  display: flex; align-items: center; gap: 1rem; text-align: left;
  background: var(--card); border: none; cursor: pointer;
  border-radius: 22px; padding: .9rem 1.1rem; box-shadow: var(--shadow);
  font-family: var(--font-body); border-left: 7px solid var(--tc, var(--sky));
  transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s;
  animation: pop .4s cubic-bezier(.22,1,.36,1) both;
}
.lesson-row:hover { transform: translateX(4px) translateY(-2px); box-shadow: var(--shadow-lg); }
.lesson-row.next { outline: 3px solid var(--sun); }
.day-badge {
  flex-shrink: 0; width: 54px; text-align: center; line-height: 1.05;
  font-size: .7rem; color: #fff; background: var(--tc, var(--sky));
  border-radius: 16px; padding: .4rem 0; font-family: var(--font-fun); text-transform: uppercase;
}
.day-badge b { font-size: 1.5rem; display: block; }
.lesson-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.lesson-title { font-family: var(--font-fun); font-weight: 700; font-size: 1.2rem; }
.lesson-preview { font-size: 1.3rem; margin-top: .1rem; }
.lesson-state { font-size: 1.6rem; flex-shrink: 0; }

/* ===== Steps (dots) ===== */
.steps { display: flex; align-items: center; justify-content: center; gap: .3rem; margin-bottom: 1.4rem; }
.dot {
  width: 38px; height: 38px; border-radius: 99px; display: grid; place-items: center;
  font-family: var(--font-fun); font-weight: 700; font-size: 1rem; background: #EEE7F5; color: var(--ink-soft);
  border: none; cursor: pointer; transition: all .25s;
}
.dot:hover { transform: scale(1.15); box-shadow: var(--shadow); }
.dot.on { background: var(--tc, var(--grape)); color: #fff; transform: scale(1.12); }
.dot.past { background: var(--grass); color: #fff; }
.dot-line { width: 34px; height: 4px; background: #EEE7F5; border-radius: 99px; }

/* ===== Step nav ===== */
.step-intro { text-align: center; color: var(--ink-soft); margin-bottom: 1.1rem; font-size: 1.05rem; }
.step-nav { display: flex; justify-content: center; gap: .8rem; margin-top: 1.6rem; flex-wrap: wrap; }
.step-nav.center { margin-top: 1.2rem; }
.btn-ghost {
  border: none; cursor: pointer; font-family: var(--font-fun); font-weight: 600;
  background: var(--card); color: var(--ink-soft); box-shadow: var(--shadow);
  padding: .9rem 1.5rem; border-radius: 99px; font-size: 1.05rem; transition: transform .2s;
}
.btn-ghost:hover { transform: translateY(-2px); }

/* ===== Completion ===== */
.complete-box {
  background: var(--card); border-radius: 28px; box-shadow: var(--shadow);
  padding: 2.2rem 1.5rem; text-align: center; max-width: 560px; margin: 0 auto;
  animation: pop .5s cubic-bezier(.22,1,.36,1) both;
}
.complete-box .confetti { font-size: 2.4rem; animation: bob 2.5s ease-in-out infinite; display: flex; align-items: center; justify-content: center; gap: .5rem; }
.confetti-bird { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 18px rgba(90,60,130,.22); }
.complete-box h2 { font-family: var(--font-fun); font-weight: 700; font-size: 1.8rem; color: var(--grape); margin: .4rem 0; }
.big-stars { font-size: 2rem; letter-spacing: .2rem; margin: .5rem 0; }
.complete-sub { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; }

@media (max-width: 520px) {
  .app-header .titles h1 { font-size: 1.4rem; }
  .game-word { font-size: 2rem; }
  .game-opt { font-size: 3rem; padding: 1.1rem; }
  .lesson-title { font-size: 1.05rem; }
}
