/* =========================================================
   Tananyag (leckék) – stílusok
   ========================================================= */
.section-title { font-size: clamp(1.4rem, 3.5vw, 1.8rem); margin: 30px 0 2px; }
.section-sub { margin: 0 0 14px; color: var(--muted); font-size: 1.05rem; }
.course-grid .topic-card { min-height: 190px; }

/* Lecke-lista */
.lesson-section { font-size: 1.15rem; color: var(--cd); margin: 18px 0 2px; padding-left: 4px; }
.lesson-num { font-weight: 900; font-size: 1.5rem; color: var(--cd); }
.lesson-item.is-done .lesson-num { background: var(--good); color: #fff; }
.lesson-item.is-next { border-color: var(--c); box-shadow: 0 6px 0 var(--cd); }
.next-badge {
  background: var(--gold); color: var(--ink); font-weight: 900; font-size: .95rem;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap; animation: bob 2s ease-in-out infinite;
}

/* Lecke diái */
.lesson { max-width: 820px; margin: 0 auto; }
.lesson-card { text-align: center; animation: pop .35s ease-out; min-height: 380px; }
.slide-kicker { margin: 0; font-weight: 900; color: var(--cd); text-transform: uppercase; letter-spacing: 1px; font-size: .9rem; }
.slide-text { font-size: clamp(1.1rem, 2.8vw, 1.3rem); line-height: 1.55; margin: 16px auto 0; max-width: 620px; }
.slide-text b { color: var(--cd); }
.lesson-card .q-title { margin: 8px 0 14px; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.lesson-nav .btn:disabled { opacity: .35; cursor: default; }
.say-hint { margin: 18px 0 0; color: var(--muted); font-size: .95rem; }
.can-say [data-say] { cursor: pointer; }

/* Betű */
.letter-hero { display: flex; justify-content: center; gap: 18px; margin: 12px 0 4px; }
.letter-box {
  display: flex; flex-direction: column; align-items: center; min-width: 130px;
  background: var(--cl); border-radius: 26px; padding: 8px 18px 12px;
}
.L-big { font-size: clamp(5rem, 18vw, 7.5rem); font-weight: 900; line-height: 1.05; color: var(--c); }
.letter-box small { color: var(--muted); font-size: 1rem; }
.word-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.word-card, .word-row, .sentence-row, .blend-row, .num-hero, .teen, .tens-row, .nl-cell {
  border: 3px solid var(--line); background: var(--card); border-radius: 20px;
  box-shadow: 0 5px 0 var(--line); transition: transform .1s, border-color .15s;
}
.can-say [data-say]:hover { border-color: var(--c); }
.can-say [data-say]:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--line); }
.word-card { display: flex; flex-direction: column; align-items: center; padding: 10px 18px; min-width: 120px; }
.wc-emoji { font-size: 3rem; }
.wc-word { font-size: 1.5rem; font-weight: 900; }
mark { background: none; color: var(--c); text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 4px; }
.pairs-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.pair { font-size: 3rem; font-weight: 900; background: var(--cl); color: var(--cd); border-radius: 20px; padding: 6px 22px; }
.vowel-table { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.vt-pair { display: inline-flex; gap: 4px; }
.tile.vowel { background: #fff6d6; color: #c98a00; }

/* Összeolvasás */
.blend-list { display: grid; gap: 10px; max-width: 420px; margin: 0 auto; }
.blend-row, .blend-q { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px; }
.blend-row b, .blend-q b { font-size: 1.6rem; color: var(--muted); }
.tile.syl { background: var(--c); color: #fff; min-width: 84px; }
.blend-q { margin-top: 6px; }

/* Szavak és mondatok */
.word-rows, .sentence-rows { display: grid; gap: 10px; max-width: 600px; margin: 0 auto; }
.word-row, .sentence-row { display: flex; align-items: center; gap: 12px; padding: 8px 14px; text-align: left; flex-wrap: wrap; }
.wr-emoji { font-size: 2.4rem; }
.syls { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.syls .tile { min-width: 0; height: 50px; font-size: 1.5rem; padding: 0 12px; }
.dash { font-weight: 900; color: var(--muted); }
.arrow { color: var(--muted); font-size: 1.4rem; }
.whole { font-size: 1.6rem; color: var(--cd); }
.sentence { font-size: clamp(1.3rem, 3.5vw, 1.7rem); font-weight: 800; }
.read-word { font-size: clamp(2.6rem, 9vw, 3.6rem); font-weight: 900; color: var(--cd); }
.read-sentence { font-size: clamp(1.7rem, 5vw, 2.3rem); font-weight: 900; color: var(--cd); }
.letter-q { font-size: clamp(4.5rem, 16vw, 6rem); font-weight: 900; color: var(--c); line-height: 1.1; }

/* Képes válaszok felirattal */
.pic-opt { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.pic-opt small { font-size: 1.05rem; font-weight: 900; color: var(--ink); margin-top: 4px; }
.opt.correct .pic-opt small { color: #fff; }
.letter-opts .opt { font-size: 2.4rem; }
.sentence-opts .opt { font-size: 1.1rem; }

/* Számok */
.num-hero { display: inline-flex; align-items: baseline; gap: 16px; padding: 6px 26px; margin: 6px 0 12px; }
.num-digit { font-size: clamp(5rem, 18vw, 7rem); font-weight: 900; color: var(--c); line-height: 1.05; }
.num-digit.small { font-size: 5rem; }
.num-word { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 900; color: var(--cd); }
.num-objects { margin-top: 14px; }
.num-objects .emoji-group { max-width: 360px; }
.empty-plate { font-size: 4rem; }

.frames { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ten-frame {
  display: inline-grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  background: var(--cd); padding: 4px; border-radius: 12px;
}
.ten-frame .cell { width: 40px; height: 40px; background: #fff; border-radius: 6px; display: grid; place-items: center; }
.ten-frame .cell i { width: 70%; height: 70%; border-radius: 50%; background: #ef476f; display: block; }
.ten-frame .cell i.b { background: #3a86ff; }
.frame-opts .opt { padding: 10px 6px; }
.frame-opts .ten-frame .cell { width: 22px; height: 22px; }
.frame-opts .frames { gap: 6px; }

.tap-area { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 560px; margin: 10px auto 0; }
.tap-item {
  position: relative; font-size: 3rem; width: 86px; height: 86px; cursor: pointer;
  border: 3px dashed var(--line); background: var(--card); border-radius: 22px; transition: transform .15s;
}
.tap-item:hover { border-color: var(--c); }
.tap-item.counted { border-style: solid; border-color: var(--c); background: var(--cl); transform: scale(.94); cursor: default; }
.tap-item.counted::after {
  content: attr(data-n); position: absolute; top: -10px; right: -10px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: #fff; font-size: 1.1rem; font-weight: 900; animation: starIn .35s;
}
.tap-result { font-size: 1.5rem; font-weight: 900; color: var(--cd); min-height: 2em; margin: 16px 0 0; }

.numberline { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.nl-cell { width: 50px; height: 58px; font-size: 1.6rem; font-weight: 900; }
.nl-cell.hl { background: var(--c); color: #fff; border-color: var(--cd); }

.compare-row { display: flex; justify-content: center; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
.compare-row > div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.compare-row b { font-size: 2.4rem; color: var(--c); }

.bond-list { display: grid; gap: 10px; justify-content: center; }
.bond-row { display: flex; align-items: center; gap: 16px; }
.bond-row .ten-frame .cell { width: 26px; height: 26px; }
.bond-eq { font-size: 1.6rem; font-weight: 900; min-width: 140px; text-align: left; }

.teen-table { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 640px; margin: 0 auto; }
.teen { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; }
.teen b { font-size: 1.9rem; color: var(--c); }
.teen small { font-size: .85rem; }
.tens-list { display: grid; gap: 6px; max-width: 520px; margin: 0 auto; }
.tens-row { display: flex; align-items: center; gap: 12px; padding: 4px 12px; }
.tens-row b { width: 50px; font-size: 1.4rem; color: var(--c); text-align: right; }
.tens-row small { margin-left: auto; font-size: 1rem; }
.tens-bars { display: flex; gap: 3px; }
.tens-bars i { width: 10px; height: 24px; border-radius: 4px; background: #ef476f; display: block; }

@media (max-width: 560px) {
  .lesson-card { padding: 18px 12px; min-height: 0; }
  .letter-box { min-width: 0; padding: 6px 14px 10px; }
  .word-card { min-width: 96px; padding: 8px 10px; }
  .wc-emoji { font-size: 2.4rem; }
  .wc-word { font-size: 1.2rem; }
  .tap-item { width: 66px; height: 66px; font-size: 2.3rem; }
  .ten-frame .cell { width: 30px; height: 30px; }
  .frame-opts .ten-frame .cell { width: 15px; height: 15px; }
  .bond-row { gap: 10px; }
  .bond-row .ten-frame .cell { width: 18px; height: 18px; }
  .bond-eq { font-size: 1.2rem; min-width: 0; }
  .teen-table { grid-template-columns: repeat(3, 1fr); }
  .nl-cell { width: 38px; height: 48px; font-size: 1.2rem; }
  .tile.syl { min-width: 64px; }
  .lesson-nav .btn { padding: 12px 14px; font-size: 1rem; }
}
