/* Lilien matekerdeje – közös kinézet */
:root {
  --zold: #3f8f5a;
  --zold2: #5fae6f;
  --sotet: #234d36;
  --halvany: #e6f4dc;
  --kartya: #fffdf6;
  --borosty: #f2a93b;
  --rozsa: #ef7fa6;
  --piros: #e0644f;
  --szurke: #8aa293;
  --arnyek: 0 6px 0 rgba(35, 77, 54, .16);
  --betu: "Trebuchet MS", "Segoe UI Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: #d6ecc5; }
body {
  font-family: var(--betu);
  color: var(--sotet);
  min-height: 100vh;
  background: linear-gradient(#cdebcf 0%, #eaf6df 50%, #d6ecc5 100%) fixed;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; left: 0; right: 0; bottom: 0; height: 140px;
  z-index: -1; pointer-events: none; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='140'%3E%3Cg fill='%2386bf89'%3E%3Cpath d='M20 140 L55 40 L90 140Z'/%3E%3Cpath d='M100 140 L148 8 L196 140Z'/%3E%3Cpath d='M190 140 L222 70 L254 140Z'/%3E%3C/g%3E%3Cg fill='%23a2d1a0'%3E%3Cpath d='M60 140 L80 90 L100 140Z'/%3E%3Cpath d='M165 140 L190 85 L215 140Z'/%3E%3C/g%3E%3C/svg%3E") repeat-x bottom / auto 140px;
}
button { font-family: inherit; color: inherit; cursor: pointer; }
.rejtett { display: none !important; }

/* fejléc */
.fejlec {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 18px; max-width: 1000px; margin: 0 auto;
}
.fejlec h1 { flex: 1; margin: 0; font-size: clamp(22px, 4vw, 32px); letter-spacing: .5px; }
.fejlec h1 small { display: block; font-size: 14px; font-weight: normal; color: var(--zold); }
.vissza {
  text-decoration: none; color: var(--sotet); background: var(--kartya);
  padding: 10px 14px; border-radius: 14px; box-shadow: var(--arnyek); font-weight: bold;
}
.kapcsolok { display: flex; gap: 8px; }
.kapcsolo {
  border: none; background: #fff; border-radius: 14px; padding: 8px 12px; font-size: 20px;
  box-shadow: var(--arnyek); opacity: .55; display: flex; align-items: center; gap: 6px;
}
.kapcsolo span { font-size: 13px; font-weight: bold; }
.kapcsolo.be { opacity: 1; background: #fff6dc; }

main { max-width: 1000px; margin: 0 auto; padding: 0 16px 160px; }

/* gombok, kártyák */
.gomb {
  border: none; border-radius: 18px; padding: 14px 24px; font-size: 20px; font-weight: bold;
  background: var(--zold); color: #fff; box-shadow: 0 6px 0 #2a6a40; transition: transform .08s;
  text-decoration: none; display: inline-block;
}
.gomb:active { transform: translateY(4px); box-shadow: 0 2px 0 #2a6a40; }
.gomb.masodlagos { background: #fff; color: var(--sotet); box-shadow: var(--arnyek); }
.gomb.sarga { background: var(--borosty); box-shadow: 0 6px 0 #c47f1c; }
.gomb:disabled { opacity: .5; cursor: default; }
.gomb:focus { outline: none; }
.gomb:focus-visible { outline: 3px solid var(--rozsa); outline-offset: 2px; }

.kartya {
  background: var(--kartya); border-radius: 24px; box-shadow: var(--arnyek); padding: 18px;
}

/* kabala + szövegbuborék */
.beszel { display: flex; align-items: center; gap: 14px; margin: 10px 0 20px; }
.beszel .figura { width: 110px; height: 110px; flex: none; filter: drop-shadow(0 4px 0 rgba(0,0,0,.08)); }
.buborek {
  position: relative; background: #fff; border-radius: 20px; padding: 14px 18px;
  font-size: 19px; line-height: 1.35; box-shadow: var(--arnyek);
}
.buborek::before {
  content: ""; position: absolute; left: -12px; top: 50%; margin-top: -10px;
  border: 10px solid transparent; border-right: 14px solid #fff; border-left: 0;
}
.figura.ugral { animation: ugral .5s; }
@keyframes ugral { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-16px) rotate(-4deg); } }
.figura.billeg { animation: billeg 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes billeg { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

/* főmenü játékkártyák */
.jatekok { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.jatekkartya {
  position: relative; display: flex; flex-direction: column; gap: 6px; text-align: left;
  border: none; text-decoration: none; color: var(--sotet);
  background: var(--kartya); border-radius: 24px; padding: 18px; box-shadow: var(--arnyek);
  transition: transform .12s;
}
.jatekkartya:hover { transform: translateY(-3px); }
.jatekkartya .ikon { font-size: 46px; }
.jatekkartya b { font-size: 21px; }
.jatekkartya span { font-size: 15px; color: #4d6b58; }
.jatekkartya.zart { opacity: .6; cursor: default; }
.jatekkartya.zart:hover { transform: none; }
.jatekkartya .cimke {
  position: absolute; top: 14px; right: 14px; background: var(--halvany);
  border-radius: 10px; padding: 4px 10px; font-size: 13px; font-weight: bold; color: var(--zold);
}
.jatekkartya.kiemelt { background: linear-gradient(135deg, #fff7dd, #fffdf6); outline: 3px solid var(--borosty); }

/* kabalaválasztó */
.valaszto { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.allat {
  border: 4px solid transparent; background: var(--kartya); border-radius: 22px; padding: 12px 8px;
  box-shadow: var(--arnyek); font-size: 18px; font-weight: bold; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.allat .figura { width: 96px; height: 96px; }
.allat.kivalasztva { border-color: var(--borosty); background: #fff7dd; }
.nevmezo { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.nevmezo input {
  font: inherit; font-size: 22px; padding: 12px 16px; border-radius: 16px; border: 3px solid #cfe3c6;
  min-width: 0; flex: 1 1 200px; background: #fff; color: var(--sotet);
}
.nevmezo input:focus { outline: none; border-color: var(--borosty); }

/* témaválasztó */
h2.szakasz { margin: 26px 0 12px; font-size: 22px; }
.temak { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tema {
  border: none; background: var(--kartya); border-radius: 20px; padding: 14px; text-align: left;
  box-shadow: var(--arnyek); display: grid; grid-template-columns: 48px 1fr; gap: 2px 12px; align-items: center;
}
.tema .jel {
  grid-row: span 3; width: 48px; height: 48px; border-radius: 14px; background: var(--halvany);
  display: grid; place-items: center; font-size: 28px; font-weight: bold; color: var(--zold);
}
.tema b { font-size: 18px; }
.tema small { color: #557563; font-size: 14px; }
.tema .rekord { font-size: 13px; color: #a2650f; font-weight: bold; }
.sorok { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.sor {
  border: none; background: var(--kartya); border-radius: 18px; padding: 10px 6px; box-shadow: var(--arnyek);
  display: flex; flex-direction: column; align-items: center;
}
.sor b { font-size: 26px; color: var(--zold); }
.sor small { font-size: 12px; color: #a2650f; font-weight: bold; }

/* játék */
.jatekfej { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.ido { flex: 1; position: relative; height: 30px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--arnyek); }
.idosav { position: absolute; inset: 0; width: 100%; background: linear-gradient(90deg, var(--zold2), var(--zold)); border-radius: 16px; transition: background .3s; }
.idosav.sietos { background: linear-gradient(90deg, #f6c35f, var(--borosty)); }
.ido span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: bold; font-size: 18px; }
.pont { background: #fff; border-radius: 16px; padding: 4px 16px; font-size: 24px; font-weight: bold; box-shadow: var(--arnyek); }
.jatekbeszel { display: flex; align-items: center; gap: 12px; min-height: 92px; }
.jatekbeszel .figura { width: 86px; height: 86px; flex: none; }
.jatekbeszel .buborek { font-size: 18px; }

.feladat {
  background: var(--kartya); border-radius: 26px; box-shadow: var(--arnyek);
  font-size: clamp(38px, 9vw, 64px); font-weight: bold; text-align: center; padding: 22px 12px;
  margin: 10px 0 16px; letter-spacing: 1px; transition: background .2s;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 .25em;
}
.feladat.jo { background: #e2f6dc; }
.feladat.rossz { background: #fde7e1; animation: razkod .35s; }
@keyframes razkod { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.hely {
  display: inline-block; min-width: 1.6em; padding: 0 .15em; border-radius: 14px;
  border: 4px dashed #b9d4ad; color: var(--sotet); background: #fff; cursor: pointer; line-height: 1.2;
}
.hely.ures { color: #c3d6bb; }
.hely.aktiv { border-style: solid; border-color: var(--borosty); }
.marszo { font-size: .42em; color: #557563; align-self: center; margin: 0 .2em; }

.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 420px; margin: 0 auto; }
.numpad button {
  border: none; border-radius: 18px; background: #fff; font-size: 30px; font-weight: bold; padding: 14px 0;
  box-shadow: 0 5px 0 #c6dcbc; touch-action: manipulation; user-select: none;
}
.numpad button:active { transform: translateY(3px); box-shadow: 0 2px 0 #c6dcbc; }
.numpad .ok { background: var(--zold); color: #fff; box-shadow: 0 5px 0 #2a6a40; }
.numpad .torol { background: #fff3e0; }

/* visszaszámláló */
.visszaszamlalo {
  position: fixed; inset: 0; display: grid; place-items: center; z-index: 30;
  background: rgba(230, 244, 220, .85); font-size: 120px; font-weight: bold; color: var(--zold);
}
.visszaszamlalo span { animation: pulzal .8s; }
@keyframes pulzal { from { transform: scale(1.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* magyarázat */
.reteg {
  position: fixed; inset: 0; z-index: 20; background: rgba(35, 77, 54, .45);
  display: flex; align-items: flex-start; justify-content: center; padding: 20px 12px; overflow-y: auto;
}
.magyarazat { max-width: 620px; width: 100%; margin: auto 0; }
.magyarazat h2 { margin: 0; font-size: 24px; }
.magyarazat .feladatkicsi { font-size: 30px; font-weight: bold; margin: 6px 0 4px; }
.lepesek { list-style: none; counter-reset: lepes; padding: 0; margin: 14px 0; }
.lepesek li {
  counter-increment: lepes; position: relative; padding: 12px 12px 12px 54px; margin-bottom: 10px;
  background: #fff; border-radius: 16px; font-size: 19px; line-height: 1.45; animation: becsuszik .35s;
}
.lepesek li::before {
  content: counter(lepes); position: absolute; left: 12px; top: 12px; width: 30px; height: 30px;
  border-radius: 50%; background: var(--borosty); color: #fff; display: grid; place-items: center; font-weight: bold;
}
.lepesek b { color: var(--zold); white-space: nowrap; }
@keyframes becsuszik { from { opacity: 0; transform: translateY(8px); } }
.helyesvalasz { font-size: 22px; background: #e2f6dc; border-radius: 16px; padding: 12px 16px; margin-bottom: 14px; }
.gombsor { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* szemléltető képek */
.kep { margin-top: 8px; display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.kep .jel { font-size: 26px; color: var(--sotet); }
.szamkep { display: inline-flex; align-items: flex-end; gap: 3px; flex-wrap: wrap; max-width: 100%; }
.rud { display: inline-block; width: 9px; height: 46px; background: #5fae6f; border-radius: 3px; box-shadow: inset 0 0 0 1px #3f8f5a; }
.kocka { display: inline-block; width: 9px; height: 9px; background: var(--borosty); border-radius: 2px; }
.kupacok { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.kupac { background: #f3ead6; border-radius: 12px; padding: 4px 6px; font-size: 16px; letter-spacing: -2px; max-width: 98px; }
.kupac.maradek { background: #fde1e6; outline: 2px dashed var(--rozsa); }

/* eredmény */
.eredmeny { text-align: center; max-width: 560px; margin: 20px auto; }
.eredmeny .figura { width: 140px; height: 140px; }
.eredmeny .nagyszam { font-size: 72px; font-weight: bold; color: var(--zold); line-height: 1; }
.eredmeny .rekordsor { font-size: 20px; margin: 8px 0 18px; }
.ujrekord { display: inline-block; background: var(--borosty); color: #fff; padding: 6px 16px; border-radius: 14px; font-weight: bold; font-size: 22px; animation: pulzal .6s; }
.hibalista { text-align: left; background: #fff; border-radius: 16px; padding: 10px 16px; margin: 0 0 18px; font-size: 18px; }
.hibalista li { margin: 4px 0; }
.megjegyzes { font-size: 15px; color: #557563; margin-top: 18px; }

.konfetti {
  position: fixed; top: -40px; z-index: 15; pointer-events: none;
  animation: hull linear forwards;
}
@keyframes hull { to { transform: translateY(110vh) rotate(540deg); } }

@media (max-width: 520px) {
  .beszel .figura { width: 80px; height: 80px; }
  .buborek { font-size: 17px; }
  .jatekbeszel { min-height: 70px; }
  .jatekbeszel .figura { width: 64px; height: 64px; }
  .numpad button { font-size: 26px; padding: 12px 0; }
  .kapcsolo span { display: none; }
  .feladat { padding: 16px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}

/* ===== 2. lépés: matricák ===== */
.matrica {
  --msz: #fff1cf;
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 35% 30%, #fff 0%, var(--msz) 70%);
  border: 4px solid #fff; box-shadow: 0 4px 0 rgba(35, 77, 54, .15), 0 0 0 2px rgba(35, 77, 54, .06);
}
.matrica-emoji { font-size: 44px; line-height: 1; }
.matrica .figura { width: 74%; height: 74%; }
.matrica.nagy { width: 150px; height: 150px; margin: 10px auto; border-width: 6px; }
.matrica.nagy .matrica-emoji { font-size: 84px; }
.matrica.ures { background: #edf3e8; border: 3px dashed #c8d9bf; box-shadow: none; }
.matrica.ures span { font-size: 34px; font-weight: bold; color: #b8cbb0; }
.matrica.csillogo { background: linear-gradient(135deg, #fff6c8, #ffd6ec, #d9f1ff, #fff6c8); background-size: 300% 300%; animation: csillog 4s ease infinite; border-color: #ffe08a; }
.matrica.csillogo::after {
  content: "✨"; position: absolute; top: -6px; right: -4px; font-size: 22px;
}
@keyframes csillog { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.ujmatrica { text-align: center; max-width: 380px; width: 100%; margin: auto 0; animation: pulzal .5s; }
.ujmatrica-cim { font-size: 26px; font-weight: bold; color: var(--zold); }
.ujmatrica-nev { font-size: 24px; font-weight: bold; margin-top: 4px; }

/* album */
.album-halado { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.album-sav { flex: 1; height: 22px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--arnyek); }
.album-sav i { display: block; height: 100%; background: linear-gradient(90deg, var(--rozsa), var(--borosty)); border-radius: 12px; }
.album-oldal { background: #fffaf0; border-radius: 24px; padding: 16px; box-shadow: var(--arnyek); margin-bottom: 20px;
  background-image: repeating-linear-gradient(#fffaf0 0 34px, #f6eedd 34px 36px); }
.album-oldal h2 { margin: 0 0 12px; font-size: 21px; display: flex; justify-content: space-between; align-items: center; }
.album-oldal h2 small { font-size: 15px; color: #a2650f; }
.album-racs { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 14px 8px; }
.album-hely { border: none; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; font-weight: bold; text-align: center; }
.album-hely .matrica { transform: rotate(var(--forg, 0deg)); transition: transform .2s; }
.album-hely:hover .matrica { transform: rotate(0) scale(1.06); }

/* ===== 2. lépés: kalandtérkép ===== */
.ut-fulek { display: flex; gap: 10px; margin: 4px 0 14px; }
.ut-ful {
  flex: 1; border: none; border-radius: 18px; padding: 12px; background: #fff; box-shadow: var(--arnyek);
  font-size: 17px; font-weight: bold; opacity: .65; text-align: center;
}
.ut-ful small { display: block; font-weight: normal; font-size: 13px; color: #557563; }
.ut-ful.aktiv { opacity: 1; outline: 3px solid var(--borosty); background: #fff7dd; }
.terkep-keret { background: linear-gradient(#e4f3d6, #d3ebc2); border-radius: 28px; box-shadow: var(--arnyek); padding: 8px 0; }
.terkep { display: block; width: 100%; max-width: 480px; margin: 0 auto; height: auto; }
.terkep .allomas { cursor: pointer; }
.terkep .allomas:focus { outline: none; }
.terkep .allomas:focus-visible circle.kor { stroke: var(--rozsa); }
.terkep .lukteto { animation: lukteto 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes lukteto { 0%,100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.18); opacity: .15; } }
.terkep text { font-family: var(--betu); }

.allomas-kartya { max-width: 440px; width: 100%; margin: auto 0; text-align: center; }
.allomas-kartya .ikon { font-size: 60px; }
.allomas-kartya h2 { margin: 4px 0; font-size: 26px; }
.allomas-kartya .csillagok { font-size: 30px; letter-spacing: 4px; color: var(--borosty); margin: 6px 0; }
.allomas-kartya .jutalom { display: flex; align-items: center; justify-content: center; gap: 12px; background: #fffaf0; border-radius: 18px; padding: 10px; margin: 12px 0 18px; font-size: 17px; }
.allomas-kartya .jutalom .matrica { width: 64px; height: 64px; }
.allomas-kartya .jutalom .matrica-emoji { font-size: 34px; }

.halado { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; flex: 1; }
.halado i { width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #cfe3c6; display: grid; place-items: center; font-style: normal; font-size: 16px; }
.halado i.jo { background: #e2f6dc; box-shadow: inset 0 0 0 2px var(--zold2); }
.halado i.rossz { background: #fde7e1; box-shadow: inset 0 0 0 2px #f0a493; }
.halado i.most { box-shadow: inset 0 0 0 3px var(--borosty); }
.nagycsillag { font-size: 54px; letter-spacing: 6px; color: var(--borosty); }
.nagycsillag span { display: inline-block; animation: pulzal .5s backwards; }
.nagycsillag span.ures { color: #d9e4d2; }
.uzenet {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 40;
  background: var(--sotet); color: #fff; padding: 12px 20px; border-radius: 16px; font-size: 17px; max-width: 90vw; text-align: center;
  animation: becsuszik .3s;
}
.jatekkartya .haladas { font-size: 14px; font-weight: bold; color: #a2650f; }
@media (max-width: 520px) {
  .halado i { width: 22px; height: 22px; font-size: 13px; }
  .matrica { width: 74px; height: 74px; }
  .matrica-emoji { font-size: 38px; }
  .album-racs { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); }
}

/* ===== 3. lépés: közös ===== */
.meretek { display: flex; gap: 10px; flex-wrap: wrap; }
.meret {
  flex: 1 1 140px; border: none; border-radius: 18px; padding: 12px; background: #fff; box-shadow: var(--arnyek);
  font-size: 18px; font-weight: bold; opacity: .6;
}
.meret small { display: block; font-weight: normal; font-size: 14px; color: #557563; }
.meret.aktiv { opacity: 1; outline: 3px solid var(--borosty); background: #fff7dd; }
.allapotsor { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.allapotsor .pont { font-size: 19px; padding: 6px 14px; }
.allapotsor .gomb { padding: 8px 14px; font-size: 16px; margin-left: auto; }

/* ===== Erdei kártyák ===== */
.mtabla { display: grid; gap: 10px; margin: 10px auto 0; max-width: 760px; grid-template-columns: repeat(4, 1fr); }
.mtabla.n16 { grid-template-columns: repeat(4, 1fr); }
.mtabla.n20 { grid-template-columns: repeat(5, 1fr); }
.mtabla.n24 { grid-template-columns: repeat(6, 1fr); }
.mkartya { border: none; background: none; padding: 0; aspect-ratio: 4 / 5; perspective: 700px; touch-action: manipulation; }
.mbelso { position: relative; display: block; width: 100%; height: 100%; transition: transform .45s; transform-style: preserve-3d; }
.mkartya.fordit .mbelso { transform: rotateY(180deg); }
.mhat, .melo {
  position: absolute; inset: 0; border-radius: 16px; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 5px 0 rgba(35, 77, 54, .2);
}
.mhat {
  background: radial-gradient(circle at 30% 25%, #6fbf7c, #3f8f5a 70%); font-size: clamp(26px, 6vw, 40px);
  border: 4px solid #fffdf6;
}
.melo {
  transform: rotateY(180deg); background: #fffdf6; border: 4px solid #cfe3c6; padding: 4px;
  font-weight: bold; font-size: clamp(17px, 3.6vw, 28px); line-height: 1.15; text-align: center; color: var(--sotet);
}
.melo.v { background: #fff3d6; border-color: #f2c77a; font-size: clamp(24px, 5.5vw, 40px); color: #8a5310; }
.mkartya.talalt .melo { border-color: var(--zold2); background: #e2f6dc; color: var(--sotet); animation: talalat .5s; }
.mkartya.talalt { cursor: default; }
@keyframes talalat { 50% { transform: rotateY(180deg) scale(1.1); } }
@media (max-width: 620px) {
  .mtabla.n20, .mtabla.n24 { grid-template-columns: repeat(4, 1fr); }
  .mtabla { gap: 7px; }
}

/* ===== Szentjánosbogár-fogó ===== */
.ejszaka {
  position: relative; height: min(58vh, 520px); min-height: 330px; border-radius: 26px; overflow: hidden;
  box-shadow: var(--arnyek); touch-action: manipulation; user-select: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='120'%3E%3Cg fill='%23173328'%3E%3Cpath d='M0 120 L30 40 L60 120Z'/%3E%3Cpath d='M50 120 L95 10 L140 120Z'/%3E%3Cpath d='M130 120 L160 55 L190 120Z'/%3E%3Cpath d='M180 120 L225 20 L270 120Z'/%3E%3Cpath d='M255 120 L280 60 L300 120Z'/%3E%3C/g%3E%3C/svg%3E") repeat-x bottom / auto 110px,
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1.5px 1.5px at 33% 9%, #fff, transparent),
    radial-gradient(2px 2px at 55% 22%, #fff8c8, transparent), radial-gradient(1.5px 1.5px at 72% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 88% 28%, #fff, transparent), radial-gradient(1.5px 1.5px at 22% 36%, #fff, transparent),
    radial-gradient(2px 2px at 64% 40%, #fff, transparent), radial-gradient(1.5px 1.5px at 92% 6%, #fff, transparent),
    linear-gradient(#1b2547 0%, #28406a 55%, #2e5b55 100%);
}
.ejszaka .hold { position: absolute; top: 18px; right: 24px; font-size: 40px; opacity: .9; }
.bogar {
  position: absolute; left: 0; top: 0; width: 78px; height: 78px; border: none; padding: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fffbd1 0%, #f6f08a 45%, #c8e86b 75%, rgba(200,232,107,0) 76%);
  box-shadow: 0 0 22px 8px rgba(240, 245, 120, .55); color: #2a3a14; font-size: 26px; font-weight: bold;
  display: grid; place-items: center; will-change: transform; transition: opacity .3s, filter .3s;
  animation: villog 1.8s ease-in-out infinite;
}
.bogar::before, .bogar::after {
  content: ""; position: absolute; top: -8px; width: 26px; height: 18px; border-radius: 50%;
  background: rgba(220, 240, 255, .55); z-index: -1;
}
.bogar::before { left: 6px; transform: rotate(-25deg); }
.bogar::after { right: 6px; transform: rotate(25deg); }
.bogar.rossz { filter: grayscale(1) brightness(.6); opacity: .5; animation: none; }
.bogar.elkapva { transition: transform .6s ease-in, opacity .6s; opacity: 0; animation: none; }
.bogar.uj { opacity: 0; }
@keyframes villog { 0%,100% { box-shadow: 0 0 18px 6px rgba(240,245,120,.45); } 50% { box-shadow: 0 0 30px 12px rgba(240,245,120,.75); } }
.kerdesszalag { margin: 0 0 12px; }
@media (max-width: 520px) {
  .bogar { width: 68px; height: 68px; font-size: 23px; }
}

/* ===== 4. lépés: Szülői sarok ===== */
.fulsor { display: flex; gap: 8px; margin: 0 0 16px; flex-wrap: wrap; }
.fulsor button { border: none; border-radius: 16px; padding: 10px 18px; font-size: 17px; font-weight: bold; background: #fff; box-shadow: var(--arnyek); opacity: .65; }
.fulsor button.aktiv { opacity: 1; outline: 3px solid var(--borosty); background: #fff7dd; }
.csempek { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.csempe { background: var(--kartya); border-radius: 20px; padding: 14px 16px; box-shadow: var(--arnyek); }
.csempe small { display: block; font-size: 14px; color: #557563; }
.csempe b { display: block; font-size: 30px; line-height: 1.15; margin-top: 2px; }
.csempe span { font-size: 13px; color: #557563; }
.szulo-kartya { background: var(--kartya); border-radius: 22px; padding: 18px; box-shadow: var(--arnyek); margin-bottom: 18px; }
.szulo-kartya h2 { margin: 0 0 4px; font-size: 21px; }
.szulo-kartya > p { margin: 0 0 12px; color: #557563; font-size: 15px; }
.oszlopdiagram { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 18px; border-bottom: 1px solid #d9e6d2; }
.oszlop { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.oszlop i { display: block; width: 70%; max-width: 30px; background: var(--zold2); border-radius: 4px 4px 0 0; min-height: 0; }
.oszlop:hover i { background: var(--zold); }
.oszlop em { position: absolute; top: -2px; font-style: normal; font-size: 12px; color: #557563; transform: translateY(-100%); }
.oszlopcimkek { display: flex; gap: 6px; margin-top: 6px; }
.oszlopcimkek span { flex: 1; text-align: center; font-size: 11px; color: #6b8576; }
.temasor { display: grid; grid-template-columns: minmax(130px, 1.3fr) 2fr auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid #edf3e8; font-size: 15px; }
.temasor:last-child { border-bottom: none; }
.temasor .sav { height: 14px; background: #edf3e8; border-radius: 7px; overflow: hidden; }
.temasor .sav i { display: block; height: 100%; border-radius: 7px; background: var(--zold2); }
.temasor .sav i.kozepes { background: var(--borosty); }
.temasor .sav i.gyenge { background: var(--piros); }
.temasor .szam { font-size: 14px; color: #557563; white-space: nowrap; text-align: right; min-width: 90px; }
.jelmagyarazat { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #557563; margin-top: 10px; }
.jelmagyarazat i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; }
.nehezlista { display: flex; flex-wrap: wrap; gap: 8px; }
.nehezlista span { background: #fdeee9; border-radius: 12px; padding: 6px 12px; font-size: 16px; }
.nehezlista span b { color: var(--sotet); }
.kapcsolosor { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #edf3e8; font-size: 16px; }
.kapcsolosor:last-child { border-bottom: none; }
.kapcsolosor small { display: block; color: #6b8576; font-size: 13px; }
.billento { position: relative; width: 52px; height: 30px; flex: none; }
.billento input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; z-index: 1; }
.billento span { position: absolute; inset: 0; background: #cfd9c9; border-radius: 15px; transition: background .2s; }
.billento span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.billento input:checked + span { background: var(--zold); }
.billento input:checked + span::after { transform: translateX(22px); }
.billento input:focus-visible + span { outline: 3px solid var(--rozsa); outline-offset: 2px; }
.temacsoport h3 { margin: 14px 0 2px; font-size: 17px; }
.temacsoport .gyors { font-size: 13px; }
.temacsoport .gyors button { border: none; background: none; color: var(--zold); text-decoration: underline; cursor: pointer; padding: 0 6px 0 0; font-size: 13px; }
.gomb.piros { background: var(--piros); box-shadow: 0 6px 0 #a8432f; }
.figyelmeztet { background: #fdeee9; border-radius: 14px; padding: 12px 14px; font-size: 15px; margin: 10px 0; }
@media (max-width: 520px) {
  .temasor { grid-template-columns: 1fr auto; }
  .temasor .sav { grid-column: 1 / -1; grid-row: 2; }
  .oszlopcimkek span:nth-child(even) { visibility: hidden; }
}

/* ===== 2. verzió: belépés, gyerekválasztó ===== */
.belepes { max-width: 460px; margin: 10px auto; }
.belepes .kartya { padding: 22px; }
.belepes h2 { margin: 0 0 6px; }
.belepes label { display: block; font-weight: bold; margin: 14px 0 6px; }
.belepes input[type=email], .belepes input[type=password], .belepes input[type=text], .mezo {
  width: 100%; font: inherit; font-size: 19px; padding: 11px 14px; border-radius: 14px; border: 3px solid #cfe3c6; background: #fff; color: var(--sotet);
}
.belepes input:focus, .mezo:focus { outline: none; border-color: var(--borosty); }
.belepes .gomb { width: 100%; margin-top: 18px; }
.belepes .valt { text-align: center; margin-top: 14px; font-size: 16px; }
.belepes .valt button { border: none; background: none; color: var(--zold); font-weight: bold; text-decoration: underline; font-size: 16px; }
.hibasor { color: #b23b2a; font-size: 16px; margin-top: 10px; min-height: 1.2em; }
.gyerekek { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.gyerekkartya {
  border: none; background: var(--kartya); border-radius: 26px; padding: 18px 12px; box-shadow: var(--arnyek);
  display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 22px; font-weight: bold; transition: transform .12s;
}
.gyerekkartya:hover { transform: translateY(-3px); }
.gyerekkartya .figura { width: 110px; height: 110px; }
.gyerekkartya .uj { width: 110px; height: 110px; border-radius: 50%; background: #fff7dd; display: grid; place-items: center; font-size: 56px; }
.gyerekkartya small { font-size: 14px; font-weight: normal; color: #557563; }
.lablec { text-align: center; margin-top: 26px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.kapcsolat-reteg { z-index: 60; }

/* ===== Lombház-építők ===== */
.lombhaz { display: block; width: 100%; max-width: 340px; margin: 0 auto; height: auto; }
.lombhaz .elem.uj { animation: elemuj .9s cubic-bezier(.3,1.6,.5,1); transform-box: fill-box; transform-origin: center; }
@keyframes elemuj { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.tarsak { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tars { border: 4px solid transparent; background: var(--kartya); border-radius: 22px; padding: 14px 8px; box-shadow: var(--arnyek);
  display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 19px; font-weight: bold; }
.tars .figura { width: 80px; height: 80px; }
.tars .vendegjel { width: 80px; height: 80px; border-radius: 50%; background: #e1efff; display: grid; place-items: center; font-size: 44px; }
.tars.kivalasztva { border-color: var(--borosty); background: #fff7dd; }
.szintek { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.lanc { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.lanc .szem { width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px #d9e6d2; display: grid; place-items: center; font-size: 15px; font-weight: bold; }
.lanc .szem.p1 { box-shadow: inset 0 0 0 3px #f2a93b; }
.lanc .szem.p2 { box-shadow: inset 0 0 0 3px #6fa8dc; }
.lanc .szem.kesz { background: #e2f6dc; }
.lanc .szem.most { transform: scale(1.18); background: #fff7dd; }
.lanc i { color: #b9cdb0; font-style: normal; }
.lancszam { text-align: center; font-size: 17px; color: #557563; margin-bottom: 4px; }
.kor-szalag { display: flex; align-items: center; gap: 12px; border-radius: 20px; padding: 10px 16px; font-size: 21px; font-weight: bold; color: var(--sotet); margin-bottom: 10px; }
.kor-szalag.p1 { background: #fff1cf; }
.kor-szalag.p2 { background: #e1efff; }
.kor-szalag .figura, .kor-szalag .vendegkicsi { width: 56px; height: 56px; flex: none; }
.kor-szalag .vendegkicsi { border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 30px; }
.szivek { font-size: 20px; font-weight: bold; }
.atadas { text-align: center; }
.atadas .figura, .atadas .vendegnagy { width: 120px; height: 120px; margin: 0 auto; }
.atadas .vendegnagy { border-radius: 50%; background: #e1efff; display: grid; place-items: center; font-size: 64px; }
.lada { font-size: 90px; text-align: center; animation: pulzal .6s; }

/* jelszó megjelenítése */
.jelszomezo { position: relative; display: block; }
.jelszomezo input { padding-right: 54px !important; width: 100%; }
.jelszogomb {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; font-size: 22px; line-height: 1; padding: 8px; border-radius: 10px; cursor: pointer;
}
.jelszogomb:hover { background: #f1f6ec; }
.jelszogomb:focus-visible { outline: 3px solid var(--rozsa); }

/* vendégmód */
.vendegsav { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; background: #fff1cf; color: #6b4a12;
  font-size: 15px; padding: 7px 12px; border-bottom: 2px solid #f2c77a; text-align: center; }
.vendegsav button { border: none; background: #fff; border-radius: 10px; padding: 5px 10px; font-size: 14px; font-weight: bold; color: var(--sotet); box-shadow: 0 2px 0 rgba(0,0,0,.08); }
a.kapcsolo { text-decoration: none; color: var(--sotet); }
.kezdogombok { display: grid; gap: 14px; }
.kezdogomb { border: none; border-radius: 24px; padding: 18px; background: var(--kartya); box-shadow: var(--arnyek); text-align: left; display: flex; align-items: center; gap: 14px; font-size: 21px; font-weight: bold; }
.kezdogomb .ikon { font-size: 44px; }
.kezdogomb small { display: block; font-size: 15px; font-weight: normal; color: #557563; margin-top: 2px; }
.kezdogomb.fo { outline: 3px solid var(--borosty); background: #fff7dd; }

/* ===== Gyakorlófüzet ===== */
.fz-lapfej { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.fz-pottyok { display: flex; gap: 6px; }
.fz-pottyok i { width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #cfe3c6; display: grid; place-items: center; font-style: normal; font-weight: bold; font-size: 14px; }
.fz-pottyok i.most { box-shadow: inset 0 0 0 3px var(--borosty); background: #fff7dd; }
.fz-pottyok i.jo { background: #e2f6dc; box-shadow: inset 0 0 0 2px var(--zold2); }
.fz-pottyok i.felig { background: #fff1cf; box-shadow: inset 0 0 0 2px var(--borosty); }
.fz-pottyok i.rossz { background: #fde7e1; box-shadow: inset 0 0 0 2px #f0a493; }
.fz-feladat { background: #fff; border-radius: 22px; box-shadow: var(--arnyek); padding: 18px; margin: 10px 0 16px;
  background-image: linear-gradient(#eef3ea 1px, transparent 1px), linear-gradient(90deg, #eef3ea 1px, transparent 1px); background-size: 22px 22px; }
.fz-cim { display: flex; gap: 10px; align-items: flex-start; font-size: 19px; font-weight: bold; margin-bottom: 14px; background: #fff; border-radius: 12px; padding: 4px 6px; }
.fz-szam { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sotet); color: #fff; display: grid; place-items: center; font-size: 16px; position: relative; }
.fz-szam.nehez::after { content: "★"; position: absolute; top: -10px; right: -8px; color: var(--borosty); font-size: 18px; }
.fz-sor { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 22px; font-weight: bold; margin: 8px 0; }
.fz-minta { background: #f3f8ee; border-radius: 12px; padding: 4px 8px; color: #557563; }
.fz-cimke { min-width: 30px; height: 28px; padding: 0 6px; border-radius: 8px; background: var(--sotet); color: #fff; font-size: 14px; display: inline-grid; place-items: center; margin-right: 4px; }
.fz-minta .fz-cimke { background: var(--zold2); }
.fz-a, .fz-m { display: inline-grid; place-items: center; min-width: 46px; height: 42px; padding: 0 6px; border-radius: 10px; font-size: 21px; font-weight: bold; }
.fz-a { background: #fffdf6; border: 2px solid #e1e8db; }
.fz-m { background: #fff; border: 3px dashed #b9d4ad; color: var(--sotet); cursor: pointer; }
.fz-m.szeles { min-width: 64px; }
.fz-m.aktiv { border-style: solid; border-color: var(--borosty); background: #fffaf0; }
.fz-m.hibas, .fz-t.hibas, .fz-c.hibas, .fz-pe.hibas { border-color: var(--piros) !important; background: #fdeee9 !important; }
.fz-m.mutatott { border-style: solid; border-color: var(--zold2); background: #e2f6dc; }
.fz-sorozat .fz-a, .fz-sorozat .fz-m { min-width: 50px; }
.fz-nyil { color: #8aa293; margin: 0 4px; }
.fz-megj { font-size: 14px; color: #557563; margin: 6px 0 0; }
.fz-ketoszlop { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fz-blokk .fz-fej { display: inline-block; border: 2px solid var(--sotet); border-radius: 8px; padding: 2px 10px; font-weight: bold; background: #fff; margin-bottom: 4px; }
.fz-gorget { overflow-x: auto; }
.fz-nyilas, .fz-tabla { border-collapse: collapse; font-size: 20px; font-weight: bold; background: #fff; }
.fz-nyilas td, .fz-nyilas th, .fz-tabla td, .fz-tabla th { padding: 4px; text-align: center; white-space: nowrap; }
.fz-nyilas th { color: var(--zold); font-size: 17px; }
.fz-tabla th { border-bottom: 3px solid var(--sotet); min-width: 50px; }
.fz-tabla tr th:first-child { border-right: 3px solid var(--sotet); border-bottom: none; }
.fz-tabla tr:first-child th:first-child { border-bottom: 3px solid var(--sotet); }
.fz-erme { display: inline-grid; place-items: center; border-radius: 50%; border: 2px solid var(--sotet); background: #fff; font-size: 12px; font-weight: bold; margin: 1px; }
.fz-erme.e10 { width: 30px; height: 30px; }
.fz-erme.e1 { width: 22px; height: 22px; font-size: 11px; }
.fz-erme.e100 { width: 38px; height: 38px; }
.fz-t { border: 3px solid #d9e6d2; background: #fff; border-radius: 14px; font: inherit; font-size: 20px; font-weight: bold; padding: 6px 10px; cursor: pointer; }
.fz-t.kor { border-radius: 50%; width: 44px; height: 44px; padding: 0; }
.fz-t.be { border-color: var(--rozsa); background: #ffe3ec; box-shadow: 0 0 0 3px #ffd0de; }
.fz-t.nagy { padding: 8px; }
.fz-t.mutatott { border-color: var(--zold2); box-shadow: 0 0 0 3px #c6ebbf; }
.fz-kif { font-size: 22px; font-weight: bold; margin-right: 10px; }
.fz-jelolt { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 20px; }
.fz-csoport { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.fz-csesze { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; width: 70px; padding: 8px 4px 10px; border: 3px solid var(--sotet); border-top-width: 5px; border-radius: 4px 4px 22px 22px; background: #fffdf6; }
.fz-csesze i, .fz-pillango i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--sotet); display: grid; place-items: center; background: #fff; font-size: 17px; }
.fz-pillango { display: inline-flex; gap: 2px; padding: 6px; }
.fz-pillango i { border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; width: 40px; }
.fz-feltetel { text-align: center; border: 3px solid var(--sotet); border-radius: 12px; padding: 6px 12px; background: #fff; font-weight: bold; font-size: 19px; width: max-content; margin: 0 auto 8px; }
.fz-kosarter { display: grid; grid-template-columns: 1fr 1.6fr; gap: 14px; align-items: center; }
.fz-kosar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 14px 8px 26px; border: 4px solid #a8763e; border-radius: 10px 10px 60px 60px; background: #f6e7cf; }
.fz-kint { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.fz-t.alma { border-radius: 46% 46% 50% 50%; padding: 12px 8px; min-width: 86px; background: #fff5f5; border-color: #f0b6b6; font-size: 17px; }
.fz-t.alma.be { background: #ffd6d6; border-color: var(--piros); }
.fz-c { min-width: 46px; height: 42px; border-radius: 10px; border: 3px dashed #b9d4ad; background: #fff; font: inherit; font-size: 21px; font-weight: bold; cursor: pointer; }
.fz-c.kitoltve { border-style: solid; border-color: var(--borosty); }
.fz-c.tal { min-width: 40px; height: 36px; font-size: 16px; }
.fz-c.tal.vA { background: #fff1cf; border-color: var(--borosty); }
.fz-c.tal.vB { background: #e1efff; border-color: #6fa8dc; }
.fz-talak { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.fz-talcim { border-radius: 10px 10px 40px 40px; padding: 8px 18px 16px; font-size: 16px; border: 3px solid var(--sotet); }
.fz-talcim.talA { background: #fff1cf; }
.fz-talcim.talB { background: #e1efff; }
.fz-talszam { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 2px solid #e1e8db; border-radius: 12px; padding: 4px 6px 4px 10px; font-size: 20px; }
.fz-par { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 22%; padding: 4px 0; }
.fz-vonalak { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.fz-oszlop { display: flex; flex-direction: column; gap: 10px; }
.fz-oszlop:last-of-type { align-items: flex-end; }
.fz-pe { border: 3px solid #d9e6d2; background: #fff; border-radius: 12px; font: inherit; font-size: 20px; font-weight: bold; padding: 6px 12px; min-width: 90px; cursor: pointer; position: relative; z-index: 1; }
.fz-pe.valasztott { border-color: var(--borosty); background: #fff7dd; }
.fz-pe.kotve { border-color: var(--zold2); }
.fz-rend .fz-kartyak { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.fz-kartya { border: 3px solid #d9e6d2; background: #fff; border-radius: 12px; font: inherit; font-size: 22px; font-weight: bold; padding: 6px 14px; cursor: pointer; }
.fz-kartya.athuzott { text-decoration: line-through; opacity: .35; }
.fz-sorrend { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: center; margin-top: 16px; }
.fz-hely { min-width: 50px; height: 42px; border-bottom: 3px solid var(--sotet); display: inline-grid; place-items: center; font-size: 22px; font-weight: bold; cursor: pointer; }
.fz-hely.hibas { color: var(--piros); }
.fz-rjel { color: #8aa293; font-weight: bold; }
.fz-gepter { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.fz-gep { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 3px solid var(--sotet); border-radius: 18px; padding: 8px 14px; background: #fffdf6; font-weight: bold; }
.fz-gep span { border: 2px solid var(--sotet); border-radius: 6px; padding: 0 8px; background: #fff; }
.fz-gep b { font-size: 20px; color: var(--zold); }
.fz-gep i { font-style: normal; color: #8aa293; }
.fz-gombok { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.fz-numpad { position: sticky; bottom: 0; background: rgba(230, 244, 220, .96); padding: 8px 0 10px; z-index: 5; }
.fz-numpad .numpad { max-width: 520px; grid-template-columns: repeat(6, 1fr); }
.fz-numpad .numpad button { font-size: 24px; padding: 10px 0; }
.fejezetek { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
@media (max-width: 620px) {
  .fz-ketoszlop { grid-template-columns: 1fr; }
  .fz-kosarter { grid-template-columns: 1fr; }
  .fz-sor { font-size: 19px; }
  .fz-a, .fz-m { min-width: 40px; height: 38px; font-size: 18px; }
  .fz-numpad .numpad { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .fz-par { gap: 0 14%; }
  .fz-pe { min-width: 72px; font-size: 17px; padding: 6px 8px; }
}

/* Gyakorlófüzet – pénz */
.fz-penzek { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.fz-p { display: inline-grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 800; color: #4a3a10; flex: none;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.18), 0 2px 0 rgba(0,0,0,.12); }
.fz-p.p5 { width: 30px; height: 30px; background: radial-gradient(circle at 35% 30%, #fff1b0, #d9b44a); }
.fz-p.p10 { width: 32px; height: 32px; background: radial-gradient(circle at 35% 30%, #ffffff, #b9c0c4); color: #3b4246; }
.fz-p.p20 { width: 36px; height: 36px; background: radial-gradient(circle at 35% 30%, #fff1b0, #cfa53c); }
.fz-p.p50 { width: 38px; height: 38px; background: radial-gradient(circle at 35% 30%, #ffffff, #aeb6ba); color: #3b4246; }
.fz-p.p100 { width: 42px; height: 42px; background: radial-gradient(circle, #e6e9ea 0 52%, #d6ad45 54% 100%); color: #3b4246; }
.fz-p.p200 { width: 44px; height: 44px; background: radial-gradient(circle, #e9c45a 0 52%, #c4cacd 54% 100%); }
.fz-szo { font-size: 17px; color: #557563; font-weight: bold; }
.fz-emo { font-size: 28px; line-height: 1; }
.fz-emo.nagy { font-size: 40px; }
.fz-aru { display: inline-flex; align-items: center; gap: 4px; }
.fz-arcimke { background: #fff7dd; border: 2px solid var(--borosty); border-radius: 8px 14px 14px 8px; padding: 2px 8px; font-size: 16px; font-weight: bold; white-space: nowrap; }
.fz-arlista { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; background: #fff; border: 2px dashed #e1d2a8; border-radius: 14px; padding: 8px 10px; margin-bottom: 8px; }
.fz-c.szo { min-width: 74px; font-size: 18px; padding: 0 8px; }
.fz-penztabla td, .fz-penztabla th { min-width: 56px; }
.fz-penztabla tr th:first-child { font-size: 18px; padding-right: 8px; }
.fz-szoveg { background: #fff; border-radius: 12px; padding: 8px 10px; font-size: 19px; line-height: 1.5; margin: 12px 0 4px; }
.fz-szoveg .fz-cimke { vertical-align: 2px; }
/* mértékegységek */
.fz-egys { font-size: 19px; color: #3f6b4f; }
.fz-mondat { font-size: 19px; font-weight: normal; margin-right: 4px; }
.fz-orak { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fz-orakeret { background: #fff; border-radius: 14px; padding: 6px; text-align: center; position: relative; }
.fz-orakeret > .fz-cimke { position: absolute; left: 6px; top: 6px; }
.fz-orakeret .fz-sor { justify-content: center; margin: 4px 0; flex-wrap: nowrap; gap: 4px; }
.fz-orakeret .fz-m, .fz-orakeret .fz-a { min-width: 40px; }
.fz-orakeret .fz-szo { font-size: 14px; }
.fz-ora { width: 112px; height: 112px; display: block; margin: 0 auto; }
.fz-meres, .fz-merlegsor { background: #fff; border-radius: 14px; padding: 6px 8px; margin: 8px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fz-meres.fz-minta, .fz-merlegsor.fz-minta, .fz-orakeret.fz-minta { background: #f3f8ee; }
.fz-vonalzo { width: 100%; max-width: 520px; height: auto; flex: 1 1 280px; }
.fz-merleg { position: relative; width: 250px; height: 112px; flex: none; }
.fz-tal { position: absolute; bottom: 44px; width: 110px; min-height: 44px; display: flex; flex-wrap: wrap-reverse; justify-content: center; align-items: flex-end; gap: 2px;
  border-bottom: 5px solid #8a6a3a; border-radius: 0 0 40px 40px; padding-bottom: 2px; }
.fz-tal:first-child { left: 0; }
.fz-tal:nth-child(2) { right: 0; }
.fz-rud { position: absolute; left: 50px; right: 50px; bottom: 40px; height: 6px; background: #8a6a3a; border-radius: 3px; }
.fz-lab { position: absolute; left: 50%; bottom: 0; width: 10px; height: 42px; margin-left: -5px; background: #8a6a3a; border-radius: 4px 4px 0 0; }
.fz-lab::after { content: ""; position: absolute; left: -26px; bottom: 0; width: 62px; height: 8px; background: #8a6a3a; border-radius: 4px; }
.fz-suly { display: inline-grid; place-items: center; background: #5e6b73; color: #fff; font-size: 11px; font-weight: bold; border-radius: 6px 6px 3px 3px; padding: 0 4px; white-space: nowrap; }
.fz-suly.s100 { height: 34px; min-width: 40px; background: #3e4a52; }
.fz-suly.s50 { height: 28px; min-width: 38px; }
.fz-suly.s20 { height: 24px; min-width: 34px; background: #76838b; }
.fz-suly.s10 { height: 21px; min-width: 32px; background: #76838b; }
.fz-suly.s5, .fz-suly.s2, .fz-suly.s1 { height: 18px; min-width: 28px; background: #96a2a9; font-size: 10px; }
