/* =========================================================
   Új tanfolyamok: szorzótábla, helyesírás, angol, naptár
   ========================================================= */
.theme-szorzas    { --c: #7c4dff; --cd: #5a2fd6; --cl: #efe9ff; }
.theme-helyesiras { --c: #e85d75; --cd: #bf3a52; --cl: #fde8ec; }
.theme-angolalap  { --c: #2b7bd6; --cd: #1c5aa3; --cl: #e3effc; }
.theme-naptar     { --c: #19a974; --cd: #117a54; --cl: #e0f6ed; }

/* ---------- Angol ---------- */
.wc-hu { color: var(--muted); font-size: .9rem; font-weight: 700; }
.phrase { display: flex; flex-direction: column; text-align: left; }
.phrase small { color: var(--muted); font-size: 1rem; font-weight: 700; }
.read-word.en, .read-sentence.en { font-family: inherit; color: var(--c); }
.vocab .wc-emoji .color-blob { width: 3rem; height: 3rem; }
.vocab .wc-emoji .num-big { font-size: 2.8rem; }

/* ---------- Szorzótábla ---------- */
.plates { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 6px 0; }
.plate {
  display: inline-flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 2px;
  width: 92px; min-height: 92px; padding: 10px; border-radius: 50%;
  background: #fff; border: 4px solid var(--cl); box-shadow: 0 4px 0 var(--line); font-size: 1.3rem;
}
.plate i { font-style: normal; }
.plate.empty { background: #fafafa; }
.arrays { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.arrays > b { font-size: 2rem; color: var(--muted); }
.dot-array { display: inline-grid; gap: 6px; padding: 10px; background: var(--cl); border-radius: 14px; }
.dot-array i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); display: block; }
.hops { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 640px; margin: 0 auto; }
.hop {
  display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 6px 8px; cursor: pointer;
  border: 3px solid var(--line); background: var(--card); border-radius: 16px; box-shadow: 0 4px 0 var(--line);
}
.hop small { color: var(--muted); font-size: .7rem; }
.hop b { font-size: 1.5rem; color: var(--c); }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 520px; margin: 0 auto; }
.fact {
  font: inherit; font-size: 1.35rem; font-weight: 800; padding: 8px 12px; cursor: pointer;
  border: 3px solid var(--line); background: var(--card); border-radius: 14px; box-shadow: 0 4px 0 var(--line);
}
.fact b { color: var(--c); }

/* ---------- Helyesírás ---------- */
.pair-table { display: grid; gap: 10px; max-width: 520px; margin: 0 auto; }
.pt-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.pt-row > span:not(.pt-word) { font-size: 1.4rem; color: var(--muted); }
.pt-word {
  font: inherit; font-size: 1.4rem; padding: 8px 12px; border-radius: 14px; cursor: pointer;
  background: var(--card); border: 3px solid var(--line); box-shadow: 0 4px 0 var(--line);
}
.punct { display: grid; gap: 10px; max-width: 560px; margin: 0 auto; text-align: left; }
.punct > div { display: flex; align-items: center; gap: 16px; background: var(--cl); border-radius: 16px; padding: 10px 16px; }
.punct b { font-size: 3rem; color: var(--c); width: 40px; text-align: center; line-height: 1; }
.punct i { color: var(--cd); font-weight: 900; font-style: normal; }
.rules { max-width: 600px; margin: 0 auto; text-align: left; font-size: 1.15rem; }
.rules p { background: var(--cl); border-radius: 14px; padding: 10px 14px; margin: 0 0 10px; }

/* ---------- Naptár ---------- */
.cal-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cal-chip {
  display: inline-flex; align-items: baseline; gap: 6px; font: inherit; font-weight: 900; font-size: 1.15rem;
  padding: 8px 14px; border-radius: 14px; cursor: pointer;
  background: var(--card); border: 3px solid var(--line); box-shadow: 0 4px 0 var(--line);
}
.cal-chip small { color: var(--muted); font-size: .8rem; }
.cal-chip.hl { background: var(--c); border-color: var(--cd); color: #fff; }
.cal-chip.hl small { color: rgba(255, 255, 255, .8); }
.day-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.dp {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; cursor: pointer;
  border: 3px solid var(--line); background: var(--card); border-radius: 18px; box-shadow: 0 4px 0 var(--line); font: inherit;
}
.dp-e { font-size: 2.6rem; }
.dp b { font-size: 1.2rem; }
.dp small { color: var(--muted); }
.ymt { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.ymt-d {
  display: flex; flex-direction: column; align-items: center; min-width: 140px; padding: 14px; cursor: pointer;
  border: 3px solid var(--line); background: var(--card); border-radius: 20px; box-shadow: 0 5px 0 var(--line); font: inherit;
}
.ymt-d small { color: var(--muted); font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.ymt-d b { font-size: 1.6rem; }
.ymt-d.today { background: var(--c); border-color: var(--cd); color: #fff; transform: scale(1.08); }
.ymt-d.today small { color: rgba(255, 255, 255, .85); }
.seasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.season { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px; border-radius: 20px; }
.season .se { font-size: 2.6rem; }
.season > b { font-size: 1.4rem; }
.s-tél { background: #e3f0ff; } .s-tavasz { background: #e6f8e6; } .s-nyar { background: #fff4cc; } .s-osz { background: #ffe8d6; }
.knuckles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.kn { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 14px; background: #f6f3fa; }
.kn-bump { width: 34px; height: 16px; border-radius: 16px 16px 4px 4px; background: #d8d1e6; margin-bottom: 4px; }
.kn.k31 .kn-bump { height: 24px; background: var(--c); }
.kn b { font-size: .95rem; }
.kn small { color: var(--muted); font-weight: 800; }
.kn.k31 small { color: var(--cd); }

/* ---------- Környezetismeret ---------- */
.theme-kornyezet { --c: #2e9d5b; --cd: #1f7442; --cl: #e2f5e9; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.info-card, .cy-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; cursor: pointer; font: inherit;
  border: 3px solid var(--line); background: var(--card); border-radius: 18px; box-shadow: 0 4px 0 var(--line);
}
.ic-e { font-size: 2.6rem; line-height: 1.1; }
.info-card b, .cy-step b { font-size: 1.15rem; }
.info-card small, .cy-step small { color: var(--muted); line-height: 1.35; }
.cycle { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.cy-step { width: 150px; }
.cy-arrow { font-size: 1.6rem; color: var(--c); }

/* ---------- Logika ---------- */
.theme-logika   { --c: #f2a900; --cd: #c08600; --cl: #fff4d1; }
.theme-parosito { --c: #00a6c7; --cd: #007e98; --cl: #dff6fb; }
.seq { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.seq-item {
  min-width: 62px; height: 66px; padding: 0 10px; display: grid; place-items: center; border-radius: 16px;
  font-size: 2.1rem; font-weight: 900; background: var(--cl); color: var(--cd);
}
.seq-item.blank { background: #fff6d6; color: #d99a00; border: 3px dashed var(--gold); }
.analogy { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 3rem; }
.analogy b { font-size: 2rem; color: var(--muted); }
.an-sep { width: 3px; height: 60px; background: var(--line); margin: 0 10px; border-radius: 3px; }

/* ---------- Párosító ---------- */
.match-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; }
.match-col { display: grid; gap: 10px; }
.m-item {
  min-height: 64px; padding: 8px 12px; font: inherit; font-size: 1.3rem; font-weight: 900; cursor: pointer;
  border: 3px solid var(--line); background: var(--card); border-radius: 16px; box-shadow: 0 5px 0 var(--line);
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .1s;
}
.m-item:hover:not(:disabled) { border-color: var(--c); }
.m-item.sel { border-color: var(--c); background: var(--cl); transform: scale(1.04); }
.m-item.matched { color: #fff; border-color: transparent; cursor: default; animation: pop .3s; }
.m-item.matched[data-c="1"] { background: #2db86a; } .m-item.matched[data-c="2"] { background: #3a86ff; }
.m-item.matched[data-c="3"] { background: #9b5de5; } .m-item.matched[data-c="4"] { background: #ff8a3d; }
.m-item.matched[data-c="5"] { background: #ef476f; }
.m-item .ten-frame .cell { width: 16px; height: 16px; }
.m-item .ten-frame { gap: 2px; padding: 3px; }
.m-num { font-size: 2rem; }
.m-item .color-blob { width: 2.2rem; height: 2.2rem; }
.m-item:not(:has(.color-blob)):not(:has(.ten-frame)) { font-size: 1.3rem; }
[data-theme="dark"] .seq-item.blank { background: #4a3f1c; color: #ffd36b; }

@media (max-width: 560px) {
  .m-item { font-size: 1.05rem; min-height: 56px; padding: 6px; }
  .match-cols { gap: 10px; }
  .seq-item { min-width: 46px; height: 52px; font-size: 1.6rem; }
  .analogy { font-size: 2.2rem; }
  .cy-step { width: 130px; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact { font-size: 1.15rem; }
  .plate { width: 74px; min-height: 74px; font-size: 1.05rem; }
  .pt-word { font-size: 1.1rem; }
  .ymt-d { min-width: 96px; }
}

/* ---------- Olvasásértés ---------- */
.theme-olvasasertes { --c: #d9480f; --cd: #a8380b; --cl: #ffe8dc; }
.story { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 640px; margin: 0 auto; }
.story-pic { font-size: 4.2rem; line-height: 1; }
.story-text {
  margin: 0; text-align: left; font-size: clamp(1.3rem, 3.4vw, 1.6rem); line-height: 1.85; font-weight: 700;
  background: var(--cl); border-radius: 20px; padding: 18px 22px;
}
.can-say .st-sent { cursor: pointer; border-radius: 8px; transition: background .15s; }
.can-say .st-sent:hover { background: rgba(255, 210, 63, .45); }
.q-details { max-width: 640px; margin: 4px auto 6px; text-align: left; }
.q-details summary {
  cursor: pointer; display: inline-block; font-weight: 900; color: var(--cd);
  background: var(--cl); padding: 6px 14px; border-radius: 999px; list-style: none;
}
.q-details summary::-webkit-details-marker { display: none; }
.q-details .story-text { margin-top: 10px; font-size: 1.1rem; line-height: 1.6; }
.q-details .story-text p { margin: 0 0 8px; }

/* ---------- Diktálás ---------- */
.theme-diktalas { --c: #5c7cfa; --cd: #3b5bdb; --cl: #e7ecff; }
.dict-input {
  display: flex; align-items: center; justify-content: center; min-height: 72px; max-width: 460px; margin: 14px auto 10px;
  padding: 8px 18px; border: 4px solid var(--c); border-radius: 18px; background: var(--card);
  font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 900; letter-spacing: 2px; color: var(--ink);
}
.dict-input.ok { border-color: var(--good); background: #e3f7ec; color: var(--good-d); }
.caret { width: 3px; height: 1.1em; margin-left: 3px; background: var(--c); animation: blink 1s steps(1) infinite; }
.dict-input.ok .caret { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.dict-compare { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-bottom: 8px; }
.dict-compare div { display: flex; flex-direction: column; align-items: center; }
.dict-compare small { color: var(--muted); font-weight: 800; }
.dict-compare b { font-size: 2rem; letter-spacing: 2px; }
.dict-compare .bad { color: var(--bad); text-decoration: line-through; text-decoration-thickness: 3px; }
.dict-compare .good { color: var(--good-d); }
.keyboard { display: grid; gap: 6px; max-width: 620px; margin: 6px auto 14px; }
.kb-row { display: flex; justify-content: center; gap: 6px; }
.kb-key {
  flex: 1; max-width: 56px; height: 54px; font: inherit; font-size: 1.5rem; font-weight: 900; cursor: pointer;
  border: 3px solid var(--line); background: var(--card); color: var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--line);
}
.kb-key:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.kb-key.kb-wide { max-width: 90px; flex: 1.6; background: var(--cl); }
[data-theme="dark"] .dict-input.ok { background: #1f4a36; color: #8ff0b7; }

@media (max-width: 560px) {
  .story-text { padding: 14px; }
  .kb-row { gap: 3px; }
  .kb-key { height: 46px; font-size: 1.15rem; border-radius: 9px; }
}

/* ---------- Napi küldetés ---------- */
.theme-kuldetes { --c: #ff6b35; --cd: #d94a16; --cl: #ffeadf; }
.mission-banner {
  display: flex; align-items: center; gap: 14px; margin: -8px 0 22px; padding: 14px 18px; border-radius: 22px;
  background: linear-gradient(120deg, #ff8a3d, #ff5c8a); color: #fff; box-shadow: 0 6px 0 #c9472d;
  transition: transform .12s;
}
.mission-banner:hover { transform: translateY(-3px); }
.mission-banner.complete { background: linear-gradient(120deg, #2db86a, #12a4a4); box-shadow: 0 6px 0 #1e8a4d; }
.mb-icon { font-size: 2.6rem; }
.mb-text { flex: 1; display: grid; }
.mb-text b { font-size: 1.3rem; }
.mb-text small { opacity: .92; font-size: 1rem; }
.mb-dots { display: flex; gap: 6px; }
.mb-dots i {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  background: rgba(255, 255, 255, .25); font-size: 1.2rem;
}
.mb-dots i.on { background: #fff; color: var(--good-d); font-weight: 900; }
.mission { max-width: 760px; margin: 0 auto; }
.mission-bar { margin: -6px 0 18px; }
.mission-bar > span { background: var(--c); }
.mission-list { display: grid; gap: 12px; }
.mission-task {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 22px;
  background: var(--card); border: 3px solid var(--line); box-shadow: 0 6px 0 var(--line); transition: transform .12s;
}
.mission-task:hover { transform: translateX(6px); border-color: var(--c); }
.mission-task.next { border-color: var(--c); box-shadow: 0 6px 0 var(--cd); }
.mission-task.done { opacity: .75; background: #e3f7ec; border-color: #bfe9d0; box-shadow: 0 6px 0 #bfe9d0; }
.mt-num {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; background: var(--cl); color: var(--cd);
}
.mission-task.done .mt-num { background: var(--good); color: #fff; }
.mt-icon { font-size: 2rem; }
.mt-text { flex: 1; display: grid; min-width: 0; }
.mt-text b { font-size: 1.2rem; }
.mt-text small { color: var(--muted); font-size: .98rem; }
.mt-go { font-weight: 900; color: var(--cd); white-space: nowrap; }
.mission-task.done .mt-go { color: var(--good-d); }
.mission-reward { text-align: center; margin-top: 16px; font-size: 1.1rem; }
.mission-done { display: flex; align-items: center; gap: 16px; margin-top: 18px; border-top-color: var(--good); }
.mission-done > span { font-size: 3rem; }
.mission-done b { font-size: 1.25rem; display: block; }
.mission-done small { color: var(--muted); font-size: 1rem; }
.mission-stats { margin-top: 18px; }
[data-theme="dark"] .mission-task.done { background: #1f3a2d; border-color: #2b5a42; box-shadow: 0 6px 0 #2b5a42; }

@media (max-width: 560px) {
  .mission-banner { flex-wrap: wrap; padding: 12px 14px; }
  .mb-dots { width: 100%; justify-content: center; }
  .mission-task { padding: 12px; gap: 10px; }
  .mt-icon { display: none; }
  .mt-go { font-size: .9rem; }
}

/* ---------- Számolás 100-ig ---------- */
.theme-szamok100 { --c: #0d9488; --cd: #0f766e; --cl: #ddf5f2; }
.pv { display: inline-flex; align-items: flex-end; gap: 14px; padding: 12px 16px; background: var(--cl); border-radius: 18px; }
.pv-tens { display: flex; gap: 5px; }
.pv-ten {
  display: block; width: 14px; height: 120px; border-radius: 7px; background: var(--c);
  background-image: repeating-linear-gradient(to bottom, transparent 0 10px, rgba(255, 255, 255, .55) 10px 12px);
}
.pv-ones { display: grid; grid-template-columns: repeat(5, 14px); gap: 5px; align-content: end; }
.pv-one { display: block; width: 14px; height: 14px; border-radius: 50%; background: #ef476f; }
.pv-compare { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.pv-compare > b { font-size: 2.2rem; color: var(--muted); }
.num-row { display: flex; justify-content: center; align-items: center; gap: 10px; }
.num-row span {
  min-width: 72px; padding: 10px 14px; border-radius: 16px; font-size: 2rem; font-weight: 900;
  background: var(--card); border: 3px solid var(--line); box-shadow: 0 4px 0 var(--line);
}
.num-row span.hl { background: var(--c); color: #fff; border-color: var(--cd); }
.num-row span.ten { background: var(--cl); color: var(--cd); }
.num-row b { color: var(--muted); font-size: 1.6rem; }
.hop-line { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.hl-n {
  min-width: 64px; padding: 8px 12px; border-radius: 14px; font-size: 1.8rem; font-weight: 900;
  background: var(--card); border: 3px solid var(--line);
}
.hl-n.ten { background: var(--cl); border-color: var(--c); color: var(--cd); }
.hl-step {
  position: relative; padding: 2px 10px 18px; font-size: 1.1rem; color: var(--cd);
  border-top: 3px solid var(--c); border-radius: 50% 50% 0 0; margin-top: -18px;
}
.column { margin: 6px auto; border-collapse: collapse; font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 900; font-variant-numeric: tabular-nums; }
.column td { width: 1.3em; height: 1.35em; text-align: center; }
.column .col-head td { font-size: .38em; color: var(--muted); font-weight: 800; }
.column .col-op { color: var(--c); }
.column .col-res td { border-top: 4px solid var(--ink); color: var(--cd); }
.column td.focus { background: #fff6d6; border-radius: 10px; }
.col-carry { margin: 2px 0 0; font-weight: 800; color: var(--cd); }
.word-problem {
  display: flex; align-items: center; gap: 14px; max-width: 620px; margin: 0 auto; text-align: left;
  background: var(--cl); border-radius: 18px; padding: 14px 18px;
}
.word-problem p { margin: 0; font-size: clamp(1.15rem, 3vw, 1.4rem); font-weight: 800; line-height: 1.5; }
.wp-emoji { font-size: 3rem; }
.wp-steps, .wp-keys { display: grid; gap: 8px; max-width: 620px; margin: 14px auto 0; text-align: left; }
.wp-steps div, .wp-keys div { background: var(--card); border: 3px solid var(--line); border-radius: 14px; padding: 8px 14px; font-size: 1.1rem; }
.wp-steps b { color: var(--cd); }
.wp-keys b { font-size: 1.3rem; margin-right: 6px; }
[data-theme="dark"] .column td.focus { background: #4a3f1c; }
[data-theme="dark"] .pv-one { background: #ff7a95; }

@media (max-width: 560px) {
  .pv-ten { width: 10px; height: 90px; }
  .pv-ones { grid-template-columns: repeat(5, 10px); }
  .pv-one { width: 10px; height: 10px; }
  .num-row span { min-width: 54px; font-size: 1.5rem; }
  .hl-n { min-width: 48px; font-size: 1.3rem; }
  .word-problem { flex-direction: column; text-align: center; }
}
