/* PAZELO · פאזלו · שפת עיצוב 2026: רקע נקי, צבעים חיים-רכים, כרטיסים לבנים, טיפוגרפיה עגולה */
:root {
  --ink: #1f1742;
  --ink-soft: #6b6590;
  --line: #ebe7f7;
  --bg: #f6f4fc;
  --card: #ffffff;

  --lav: #efe9ff;  --lav-d: #7c5cff;  --lav-dd: #5b3ce6;
  --mint: #dcf8ec; --mint-d: #22c58b; --mint-dd: #109a68;
  --peach: #ffeadc; --peach-d: #ff8a4c; --peach-dd: #e5682a;
  --sky: #e0efff;  --sky-d: #3d97ff; --sky-dd: #1f74e0;
  --lemon: #fff3c4; --lemon-d: #ffc21a; --lemon-dd: #dc9c00;
  --pink: #ffe4f1; --pink-d: #ff5fa8; --pink-dd: #e03d88;
  --red: #f0445a; --red-soft: #ffe5e8;

  --shadow-sm: 0 1px 2px rgba(31, 23, 66, 0.05), 0 2px 6px rgba(31, 23, 66, 0.04);
  --shadow: 0 1px 2px rgba(31, 23, 66, 0.04), 0 8px 24px rgba(60, 40, 140, 0.08);
  --shadow-lg: 0 2px 4px rgba(31, 23, 66, 0.05), 0 20px 48px rgba(60, 40, 140, 0.14);
  --radius: 24px;
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --display: 'Fredoka', 'Rubik', system-ui, sans-serif;
  /* צבעי הלוגו: סגול פאזלו עמוק, בלי מעבר סגול-ורוד גנרי */
  --hero: radial-gradient(120% 140% at 100% 0%, #6236ec 0%, #4b1fb8 48%, #34148a 100%);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.5; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
a { color: var(--lav-dd); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.2px; line-height: 1.2; text-wrap: balance; }
/* בלי מילה בודדת בשורה האחרונה */
p, li, small, .speech, .lead, .bubble, .tile b, .choice b, .choice span, .banner, .muted { text-wrap: pretty; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.stack > * + * { margin-top: 12px; }

/* ---------- כפתורים "ממתק" תלת-ממדיים ---------- */
/* כפתורים: צבע מלא עם "עומק" תחתון, בלי ברק. נלחצים פיזית */
.btn {
  --c: var(--lav-d); --edge: #4a2fd0;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 16px; padding: 12px 22px; cursor: pointer; color: #fff; font-weight: 700; text-decoration: none; letter-spacing: 0.1px;
  background: var(--c); box-shadow: 0 4px 0 var(--edge);
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.15s;
}
.btn:hover { filter: brightness(1.06) saturate(1.05); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--edge); }
.btn:focus-visible { outline: 3px solid var(--lav-d); outline-offset: 3px; }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn.yellow { --c: #ffc21a; --edge: #d99300; color: #3d2a00; }
.btn.blue { --c: #3d97ff; --edge: #1d6fd6; }
.btn.mint { --c: #22c58b; --edge: #0f9465; }
.btn.peach { --c: #ff8a4c; --edge: #d8611f; }
.btn.pink { --c: #ff5fa8; --edge: #d63a83; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: 0 3px 0 #e2ddf3; border: 2px solid #e8e3f6; }
.btn.ghost:hover { border-color: #d6cdf5; filter: none; }
.btn.danger { background: #fff; color: var(--red); box-shadow: 0 3px 0 #f7cfd5; border: 2px solid var(--red-soft); }
.btn.sm { padding: 7px 14px; font-size: 14px; border-radius: 12px; box-shadow: 0 3px 0 var(--edge); }
.btn.ghost.sm, .btn.danger.sm { box-shadow: 0 2px 0 #e2ddf3; }
.btn.big { padding: 16px 30px; font-size: 20px; border-radius: 20px; box-shadow: 0 5px 0 var(--edge); }
.btn.full { width: 100%; }
.link { background: none; border: 0; color: var(--lav-dd); cursor: pointer; padding: 0; text-decoration: underline; }

label.field { display: block; }
label.field > span { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.input, select.input, textarea.input { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1.5px solid #e2dcf4; background: #fdfcff; outline: none; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.input:hover { border-color: #cfc5f0; }
.input:focus { background: #fff; }
.input:focus { border-color: var(--lav-d); box-shadow: 0 0 0 4px var(--lav); }
textarea.input { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--lav-d); }
/* מתג הפעלה/כיבוי */
.check.switch { align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; cursor: pointer; }
.check.switch input { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 28px; margin: 0; border-radius: 999px; background: #ddd6f0; position: relative; cursor: pointer; transition: background 0.2s; }
.check.switch input::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); transition: inset-inline-start 0.2s cubic-bezier(0.3, 1.4, 0.5, 1); }
.check.switch input:checked { background: var(--mint-d); }
.check.switch input:checked::after { inset-inline-start: 21px; }
.check.switch input:focus-visible { outline: 3px solid var(--lav-d); outline-offset: 2px; }
.page > .card + .card, .page > form.card + .card, .page > .card + form.card { margin-top: 16px; }
.card > b:first-child { font-family: var(--display); font-weight: 600; font-size: 19px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 15px; transition: all 0.15s; }
.chip:hover { border-color: var(--lav-d); }
.chip.on { background: var(--lav); border-color: var(--lav-d); color: var(--lav-dd); font-weight: 600; }
.tag { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.tag.green { background: var(--mint); color: var(--mint-dd); }
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.yellow { background: var(--lemon); color: #9a6f00; }
.tag.blue { background: var(--sky); color: var(--sky-dd); }
.tag.purple { background: var(--lav); color: var(--lav-dd); }

.card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.error { color: var(--red); font-size: 14px; min-height: 20px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(140px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; z-index: 100; transition: transform 0.35s cubic-bezier(0.2, 1.4, 0.4, 1); box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- רקע חי בפסטלים ---------- */
/* רקע נקי: גוון בהיר אחיד, רשת נקודות עדינה וזוהר רך למעלה */
.sky-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background-color: var(--bg);
  background-image: radial-gradient(rgba(124, 92, 255, 0.09) 1.2px, transparent 1.3px); background-size: 22px 22px; }
.sky-bg::before { content: ''; position: absolute; inset: -30vh -10vw auto; height: 70vh; background: radial-gradient(60% 60% at 70% 0%, rgba(160, 130, 255, 0.22), transparent 70%), radial-gradient(40% 50% at 15% 10%, rgba(80, 200, 255, 0.16), transparent 70%); }
.sky-bg::after, .sky-bg i { display: none; }

.floaters { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.floaters i { position: absolute; opacity: 0.16; background: currentColor; animation: float 18s ease-in-out infinite; -webkit-mask: url('/brand/piece.svg') center / contain no-repeat; mask: url('/brand/piece.svg') center / contain no-repeat; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-46px) rotate(30deg); } }

/* ---------- פתיחה ---------- */
.landing { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; }
.landing-inner { position: relative; z-index: 2; text-align: center; max-width: 980px; width: 100%; }
.landing .logo { width: min(520px, 92%); filter: drop-shadow(0 18px 30px rgba(90, 70, 170, 0.18)); animation: popIn 0.8s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.landing h1 { font-size: clamp(26px, 5vw, 42px); margin: 6px 0 4px; color: var(--ink); }
.landing p.lead { font-size: clamp(16px, 2.6vw, 20px); color: var(--ink-soft); margin: 0 0 24px; }
.landing-stage { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 18px; justify-content: center; }
.hero-img { width: min(620px, 96%); filter: drop-shadow(0 22px 34px rgba(90, 70, 170, 0.2)); animation: popIn 0.8s cubic-bezier(0.2, 1.4, 0.4, 1) both, bob 4s 0.8s ease-in-out infinite; transform-origin: 50% 80%; }
.features { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.features span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; }
.choice { background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 24px 18px; cursor: pointer; text-align: center; box-shadow: var(--shadow); transition: transform 0.25s cubic-bezier(0.2, 1.4, 0.4, 1), box-shadow 0.2s; color: var(--ink); position: relative; overflow: hidden; isolation: isolate; }
.choice:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.choice .big-emoji { font-size: 50px; display: grid; place-items: center; width: 86px; height: 86px; margin: 0 auto 8px; border-radius: 28px; transition: transform 0.3s cubic-bezier(0.2, 1.4, 0.4, 1); }
.choice:hover .big-emoji { transform: rotate(-8deg) scale(1.08); }
.choice.kid { background: var(--hero); color: #fff; border-color: transparent; box-shadow: 0 16px 34px rgba(98, 64, 240, 0.3); }
.choice.kid::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgba(255, 255, 255, 0.14) 1.2px, transparent 1.3px) 0 0 / 16px 16px; }
.choice.kid span { color: rgba(255, 255, 255, 0.88); }
.choice.kid .big-emoji { background: rgba(255, 255, 255, 0.2); }
.choice.parent .big-emoji { background: var(--sky); }
.choice b { font-family: var(--display); font-size: 24px; display: block; font-weight: 600; }
.choice span { color: var(--ink-soft); font-size: 15px; }
.landing .mascot { max-height: 380px; width: auto; margin: 0 auto; }
@media (max-width: 560px) { .landing-stage { grid-template-columns: 1fr 1fr; gap: 10px; } .choice { padding: 16px 10px; } .choice b { font-size: 19px; } .choice .big-emoji { width: 66px; height: 66px; font-size: 38px; } }

/* ---------- אזור הורה ---------- */
.parent-area { min-height: 100vh; position: relative; }
.parent-area > * { position: relative; z-index: 2; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px max(16px, calc((100% - 1080px) / 2 + 16px)); background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.topbar .brand img { height: 40px; display: block; }
.bell { position: relative; background: #fff; border: 1px solid var(--line); font-size: 19px; cursor: pointer; width: 42px; height: 42px; border-radius: 14px; transition: background 0.15s; }
.bell:hover { background: var(--lav); }
.bell .badge { position: absolute; top: -4px; inset-inline-start: -4px; background: var(--red); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 6px; font-weight: 700; }
.page { max-width: 1080px; margin: 0 auto; padding: 22px 16px 60px; }
/* כותרת לוח ההורה */
.p-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: var(--hero); color: #fff; border-radius: 28px; padding: 24px 26px; margin-bottom: 18px; position: relative; overflow: hidden; isolation: isolate; box-shadow: 0 16px 36px rgba(98, 64, 240, 0.25); }
.p-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 8% 130%, rgba(255, 255, 255, 0.16) 0 110px, transparent 111px), radial-gradient(circle at 96% -20%, rgba(255, 255, 255, 0.12) 0 140px, transparent 141px), radial-gradient(rgba(255, 255, 255, 0.12) 1.2px, transparent 1.3px) 0 0 / 18px 18px; }
.p-hero h2 { margin: 2px 0 8px; font-size: 32px; color: #fff; }
.p-hero .eyebrow { font-size: 14px; opacity: 0.85; font-weight: 600; }
.p-trial { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.p-code { background: #fff; color: var(--ink); border-radius: 20px; padding: 12px 16px; display: grid; gap: 4px; justify-items: center; min-width: 190px; box-shadow: 0 10px 24px rgba(40, 20, 120, 0.2); }
.p-code small { color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.p-code b { font-family: ui-monospace, Consolas, monospace; font-size: 26px; letter-spacing: 5px; color: var(--lav-dd); direction: ltr; }
@media (max-width: 560px) { .p-hero { padding: 20px 18px; } .p-hero h2 { font-size: 26px; } .p-code { width: 100%; grid-template-columns: 1fr auto; justify-items: start; align-items: center; } .p-code small { grid-column: 1 / -1; } }
.page h2 { margin: 0 0 12px; font-size: 28px; }
.grid-kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.kid-card { cursor: pointer; transition: transform 0.2s cubic-bezier(0.2, 1.4, 0.4, 1), box-shadow 0.2s; position: relative; overflow: hidden; }
.kid-card::after { content: ''; position: absolute; top: 0; inset-inline: 0; height: 6px; background: var(--accent, var(--lav)); z-index: 0; filter: saturate(2.2) brightness(0.95); }
.kid-card > * { position: relative; z-index: 1; }
.kid-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.avatar-lg { font-size: 36px; width: 62px; height: 62px; display: grid; place-items: center; background: var(--accent, var(--lav)); border-radius: 20px; }
.kid-card h3 { margin: 0; font-size: 24px; }
.progress { height: 12px; background: var(--lav); border-radius: 999px; overflow: hidden; }
.progress > b { display: block; height: 100%; background: linear-gradient(90deg, #ffd35c, #ff9a62); border-radius: 999px; transition: width 0.8s cubic-bezier(0.2, 1, 0.3, 1); }
.progress.mint > b { background: linear-gradient(90deg, #7fe6bb, #3cc28c); }
.progress.red > b { background: linear-gradient(90deg, #ffb3b8, #f05a64); }
.add-card { border: 3px dashed #d9d0fb; display: grid; place-items: center; min-height: 200px; color: var(--lav-dd); font-weight: 700; font-size: 18px; background: rgba(255, 255, 255, 0.5); cursor: pointer; border-radius: var(--radius); transition: background 0.2s; }
.add-card:hover { background: #fff; }
.banner { border-radius: 18px; padding: 14px 16px; background: var(--lemon); display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.banner.purple { background: var(--lav); }
.banner.mint { background: var(--mint); }
.code-box { font-family: ui-monospace, Consolas, monospace; font-size: 22px; letter-spacing: 4px; font-weight: 800; color: var(--lav-dd); background: #fff; padding: 6px 14px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--tint, var(--lav)); border-radius: 16px; padding: 10px 12px; }
.stat b { display: block; font-family: var(--display); font-size: 24px; line-height: 1.1; }
.stat span { font-size: 12px; color: var(--ink-soft); }

.tabs { display: flex; gap: 4px; margin: 16px 0; overflow-x: auto; background: #fff; padding: 5px; border-radius: 18px; border: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; border: 0; padding: 10px 16px; cursor: pointer; font-weight: 600; color: var(--ink-soft); border-radius: 13px; white-space: nowrap; transition: all 0.15s; }
.tabs button:hover { color: var(--ink); background: #f6f3ff; }
.tabs button.on { color: #fff; background: var(--lav-d); box-shadow: 0 4px 12px rgba(124, 92, 255, 0.28); }
/* כותרת הילד באזור ההורה */
.c-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 20px; }
.c-head h2 { margin: 0; font-size: 28px; }
.c-head .avatar-lg { width: 68px; height: 68px; font-size: 40px; border-radius: 22px; }
/* שלבי הקליטה: מסלול מחובר */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); margin: 8px 0 22px; }
.step { position: relative; text-align: center; padding: 0 4px; background: none; border: 0; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.step:not(:last-child)::before { content: ''; position: absolute; top: 17px; inset-inline-start: 50%; width: 100%; height: 4px; margin-top: -2px; border-radius: 4px; background: var(--line); }
.step.done:not(:last-child)::before { background: var(--mint-d); }
.step .n { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; margin: 0 auto 6px; border-radius: 50%; background: #fff; border: 2px solid #ddd6f5; color: var(--ink-soft); font-weight: 800; transition: all 0.2s; }
.step:hover .n { border-color: var(--lav-d); }
.step.done .n { background: var(--mint-d); border-color: var(--mint-d); color: #fff; }
.step.on .n { background: var(--lav-d); border-color: var(--lav-d); color: #fff; box-shadow: 0 0 0 6px var(--lav); }
.step.on .lbl { color: var(--ink); font-weight: 700; }
@media (max-width: 560px) { .step .lbl { font-size: 11px; } .step .n { width: 30px; height: 30px; } .step:not(:last-child)::before { top: 14px; } }
.list { display: grid; gap: 10px; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--lav); flex: none; }
.day-row { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.plan-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; }
.note { white-space: pre-line; }
.notif { border-inline-start: 5px solid var(--line); }
.notif.unread { border-inline-start-color: var(--lav-d); }
.notif.distress { border-inline-start-color: var(--red); background: var(--red-soft); }
.transcript .msg { max-width: 80%; padding: 10px 14px; border-radius: 16px; margin: 6px 0; white-space: pre-line; }
.transcript .msg.tutor { background: var(--lav); }
.transcript .msg.child { background: var(--lemon); margin-inline-start: auto; }
.mastery-row { display: grid; grid-template-columns: 1fr 120px 44px; gap: 10px; align-items: center; font-size: 14px; }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week-strip div { text-align: center; background: var(--lav); border-radius: 14px; padding: 6px 2px; display: grid; gap: 2px; }
.week-strip div.on { background: var(--mint); }
.week-strip b { font-size: 18px; color: var(--mint-dd); }
.week-strip small { color: var(--ink-soft); font-size: 12px; }
.year-strip { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.year-strip div { aspect-ratio: 1; border-radius: 10px; background: #fff; border: 2px dashed var(--line); display: grid; place-items: center; align-content: center; font-size: 16px; }
.year-strip div small { font-size: 10px; color: var(--ink-soft); }
.year-strip div.done { background: linear-gradient(180deg, #ffd35c, #ffb02e); border: 0; }
.year-strip div.now { border-color: var(--lav-d); border-style: solid; }
.year-strip div.recover { border-color: var(--peach-d); border-style: solid; background: var(--peach); }
.tt { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tt-day { background: #faf8ff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: grid; gap: 6px; align-content: start; }
.tt-row { display: grid; grid-template-columns: 22px 1fr 22px; gap: 6px; align-items: center; }
.tt-row .input { padding: 7px 8px; font-size: 14px; }
.tt-n { font-weight: 700; color: var(--lav-dd); text-align: center; }
.evid { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.auth-wrap { min-height: calc(100vh - 62px); display: grid; place-items: center; padding: 20px 16px; }
.auth-card { width: 100%; max-width: 440px; }

/* ---------- אזור ילד ---------- */
.kid-area { min-height: 100vh; position: relative; overflow-x: hidden; color: var(--ink); }
.kid-area .page, .kid-area .lesson, .kid-area .hud { position: relative; z-index: 2; }
.glass { background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }

/* HUD: שורת המצב של הילד */
.hud { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; margin: 12px auto 0; max-width: 1104px; width: calc(100% - 24px); position: sticky; top: 10px; z-index: 20; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(16px); border-radius: 22px; }
.hud .av { font-size: 30px; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--lemon); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.06); transition: transform 0.2s; }
.hud .av:hover { transform: rotate(-6deg) scale(1.05); }
.hud .who { min-width: 0; }
.hud .who b { font-family: var(--display); font-size: 20px; display: block; line-height: 1.1; }
.lvl { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--lav-dd); }
.lvl .bar { width: 90px; height: 9px; border-radius: 999px; background: var(--lav); overflow: hidden; }
.lvl .bar b { display: block; height: 100%; background: linear-gradient(90deg, #a98bff, #6a4fd6); border-radius: 999px; transition: width 1s cubic-bezier(0.2, 1, 0.3, 1); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px; font-weight: 800; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill.fire { background: var(--peach); color: var(--peach-dd); }
.pill.star { background: var(--lemon); color: #9a6a00; }
.pill.piece { background: var(--mint); color: var(--mint-dd); }
.icon-btn { width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; flex: none; transition: background 0.15s; }
.icon-btn:hover { background: var(--lav); }
.pill.fire .flame { display: inline-block; animation: flicker 1.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.15) rotate(3deg); } }
@media (max-width: 560px) { .hud .lvl .bar { width: 60px; } .hud .pill.piece { display: none; } }

/* כרטיס הגיבור: לוח סגול חי, פאזלו עומד בצד ומדבר מתוך בועה */
.hero { display: grid; grid-template-columns: 1fr minmax(170px, 260px); gap: 18px; align-items: end; margin-top: 16px;
  background: var(--hero); border-radius: 32px; padding: 26px 28px 0; position: relative; overflow: hidden; isolation: isolate;
  box-shadow: 0 18px 40px rgba(98, 64, 240, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 12% 120%, rgba(255, 255, 255, 0.18) 0 120px, transparent 121px), radial-gradient(circle at 92% -10%, rgba(255, 255, 255, 0.14) 0 150px, transparent 151px), radial-gradient(rgba(255, 255, 255, 0.13) 1.2px, transparent 1.3px) 0 0 / 18px 18px; }
.hero::after { content: ''; position: absolute; width: 120px; height: 120px; top: 18px; inset-inline-start: 38%; background: #ffd75e; opacity: 0.22; z-index: -1; transform: rotate(18deg);
  -webkit-mask: url('/brand/piece.svg') center / contain no-repeat; mask: url('/brand/piece.svg') center / contain no-repeat; }
.hero > :first-child { align-self: center; padding-bottom: 26px; min-width: 0; }
.hero .mascot { max-height: 200px; width: auto; max-width: 100%; margin: 0 auto; }
.hero.big .mascot { max-height: 290px; }
@media (max-width: 640px) { .hero { grid-template-columns: 1fr 110px; padding: 18px 16px 0; border-radius: 26px; gap: 8px; } .hero > :first-child { padding-bottom: 18px; } .hero .mascot, .hero.big .mascot { max-height: 170px; } }
.speech { background: #fff; color: var(--ink); border-radius: 26px; padding: 18px 22px; position: relative; font-size: clamp(19px, 3.2vw, 25px); font-family: var(--display); font-weight: 600; box-shadow: 0 10px 24px rgba(40, 20, 120, 0.18); animation: popIn 0.5s cubic-bezier(0.2, 1.5, 0.4, 1) both; line-height: 1.35; }
.speech::after { content: ''; position: absolute; bottom: 24px; inset-inline-end: -14px; border: 14px solid transparent; border-inline-start-color: #fff; border-inline-end: 0; }
.speech small { display: block; font-family: var(--font); font-weight: 500; font-size: 15px; color: var(--ink-soft); margin-top: 6px; }
.hero .cta-row .btn.ghost { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: rgba(255, 255, 255, 0.35); box-shadow: none; }

.mascot { width: 100%; height: auto; display: block; transform-origin: 50% 100%; animation: bob 3.4s ease-in-out infinite; filter: drop-shadow(0 18px 18px rgba(90, 70, 170, 0.18)); }
.mascot.cheer { animation: jump 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) 3, bob 3.4s 2.1s ease-in-out infinite; }
.mascot.enter { animation: slideUp 0.8s cubic-bezier(0.2, 1.4, 0.4, 1) both, bob 3.4s 0.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-1.2deg); } }
@keyframes jump { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-36px) scale(1.03, 0.97); } }
@keyframes slideUp { from { transform: translateY(90px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes popIn { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes glow { 0%, 100% { box-shadow: 0 5px 0 var(--edge), 0 0 0 0 rgba(255, 194, 26, 0.55); } 50% { box-shadow: 0 5px 0 var(--edge), 0 0 0 14px rgba(255, 194, 26, 0); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pulse { animation: pulse 1.6s ease-in-out infinite, glow 1.6s ease-in-out infinite; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.start-btn { font-size: clamp(20px, 3.6vw, 26px); padding: 18px 34px; font-family: var(--display); font-weight: 600; }

/* קיצורים במסך הבית */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 46%), 1fr)); gap: 12px; margin-top: 18px; }
.tile { border: 1px solid var(--line); background: #fff; border-radius: 24px; padding: 16px; cursor: pointer; text-align: start; box-shadow: var(--shadow); transition: transform 0.2s cubic-bezier(0.2, 1.4, 0.4, 1), box-shadow 0.2s, border-color 0.2s; color: var(--ink); display: grid; gap: 4px; align-content: start; position: relative; overflow: hidden; }
.tile::after { content: ''; position: absolute; width: 90px; height: 90px; border-radius: 50%; background: var(--t, var(--lav)); opacity: 0.55; top: -38px; inset-inline-end: -38px; transition: transform 0.3s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.tile:hover::after { transform: scale(1.3); }
.tile span { font-size: 28px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--t, var(--lav)); margin-bottom: 6px; position: relative; z-index: 1; }
.tile b { font-family: var(--display); font-weight: 600; font-size: 19px; display: block; position: relative; z-index: 1; }
.tile small { position: relative; z-index: 1; }
.tile.pulse { animation: none; border: 2px solid var(--peach-d); }
@media (max-width: 560px) {
  .tiles { gap: 10px; }
  .tiles > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tile { padding: 12px; border-radius: 20px; }
  .tile span { width: 42px; height: 42px; font-size: 23px; border-radius: 14px; margin-bottom: 4px; }
  .tile b { font-size: 16px; }
  .tile small { font-size: 13px; }
  .hud { gap: 6px; padding: 6px 8px; }
  .hud .lvl { display: none; }
  .hud .who b { font-size: 18px; }
  .hud .av { width: 44px; height: 44px; font-size: 26px; }
  .pill { padding: 6px 10px; font-size: 14px; }
  .icon-btn { width: 38px; height: 38px; }
}
.tile small { color: var(--ink-soft); }

a.bell { display: grid; place-items: center; text-decoration: none; }
.act-row { display: grid; grid-template-columns: 1.3fr 1fr 0.9fr 0.9fr 1.6fr 24px; gap: 6px; align-items: center; }
@media (max-width: 720px) { .act-row { grid-template-columns: 1fr 1fr 24px; } .act-row .wide { grid-column: 1 / 3; } }

/* לוח ניהול: כלכלה ומשפחות */
.biz-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 820px) { .biz-kpis { grid-template-columns: 1fr 1fr; } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px 16px 16px; box-shadow: var(--shadow); display: grid; gap: 2px; position: relative; overflow: hidden; }
.kpi::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 5px; background: var(--tint); filter: saturate(3.5) brightness(0.85); }
.kpi span { font-weight: 700; color: var(--ink-soft); font-size: 14px; }
.kpi b { font-family: var(--display); font-weight: 600; font-size: 32px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--ink-soft); font-size: 12px; }
.biz-chart { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 190px; }
.biz-chart .col { display: grid; grid-template-rows: 1fr auto auto; height: 100%; text-align: center; gap: 4px; }
.biz-chart .bars { display: flex; gap: 4px; align-items: flex-end; justify-content: center; height: 100%; border-bottom: 2px solid var(--line); }
.biz-chart .bars i { width: min(28%, 26px); border-radius: 6px 6px 2px 2px; min-height: 3px; transition: height 0.6s; }
.biz-chart i.rev, .dot.rev { background: #22c58b; }
.biz-chart i.cost, .dot.cost { background: #ff8a4c; }
.biz-chart b { font-size: 13px; } .biz-chart small { font-size: 12px; color: var(--ink-soft); }
.pos { color: var(--mint-dd); } .neg { color: var(--red); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: middle; }
.biz-set { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.fam summary { cursor: pointer; list-style: none; }
.fam summary::-webkit-details-marker { display: none; }
.kids-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.kids-table th { text-align: start; color: var(--ink-soft); font-weight: 600; padding: 6px; border-bottom: 2px solid var(--line); }
.kids-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
@media (max-width: 720px) { .kids-table { display: block; overflow-x: auto; white-space: nowrap; } }

/* תקריא לפאזלו */
.read-font { font-family: 'Noto Sans Hebrew', 'Rubik', sans-serif; }
.read-text { font-size: clamp(24px, 4.4vw, 36px); line-height: 2.1; word-spacing: 6px; }
.rw { border-radius: 10px; padding: 0 4px; transition: background 0.25s, color 0.25s; cursor: default; }
.rw.now { background: var(--lemon); box-shadow: 0 0 0 3px #ffd35c; }
.rw.ok { background: var(--mint); }
.rw.close { background: var(--lemon); }
.rw.wrong { background: var(--red-soft); text-decoration: underline wavy var(--red); cursor: pointer; }
.rw.missed { background: #f1ecff; color: var(--lav-dd); text-decoration: underline dotted var(--lav-d); cursor: pointer; }
.read-legend { display: flex; gap: 8px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.rec-dot { color: var(--red); font-weight: 800; animation: pulse 1.2s infinite; }
.practice-word { font-size: clamp(54px, 12vw, 90px); font-weight: 700; margin: 10px 0; }
.syl-row { display: flex; gap: 10px; justify-content: center; align-items: center; font-size: clamp(30px, 7vw, 46px); margin-bottom: 14px; }
.syl-row span { background: var(--sky); border-radius: 16px; padding: 4px 14px; animation: popIn 0.4s both; }
.syl-row span:nth-child(3) { animation-delay: 0.15s; } .syl-row span:nth-child(5) { animation-delay: 0.3s; } .syl-row span:nth-child(7) { animation-delay: 0.45s; }
.syl-row i { color: var(--ink-soft); font-style: normal; }
.read-mini .chip { font-family: 'Noto Sans Hebrew', 'Rubik', sans-serif; font-size: 18px; }

/* בחירת דמות */
.avatar-stage { padding: 18px; margin-top: 16px; display: grid; gap: 12px; justify-items: center; }
.avatar-big { width: 130px; height: 130px; border-radius: 40px; display: grid; place-items: center; font-size: 80px; box-shadow: var(--shadow); animation: popIn 0.4s cubic-bezier(0.2, 1.5, 0.4, 1); }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: var(--shadow-sm); cursor: pointer; }
.swatch.on { outline: 3px solid var(--lav-d); }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.avatar-grid button { aspect-ratio: 1; border: 0; border-radius: 20px; background: #fff; font-size: 36px; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform 0.15s; }
.avatar-grid button:hover { transform: translateY(-3px) scale(1.05); }
.avatar-grid button.on { outline: 4px solid var(--lav-d); background: var(--lav); }

/* פאזל אמיתי: חלקים בצורת פאזל שמרכיבים את תמונת המתנה */
.jigsaw { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 8px 18px rgba(90, 70, 170, 0.18)); }
.jigsaw .slot { fill: rgba(255, 255, 255, 0.55); stroke: rgba(139, 108, 240, 0.45); stroke-width: 1.4; stroke-dasharray: 5 4; }
.jigsaw .pc path { stroke: rgba(255, 255, 255, 0.95); stroke-width: 1.6; }
.jigsaw .pc.fit path { stroke: rgba(255, 255, 255, 0.75); stroke-width: 1.2; }
.jigsaw.done { animation: doneGlow 2.2s ease-out both; }
@keyframes doneGlow { 0% { filter: drop-shadow(0 0 0 rgba(255, 211, 92, 0)) brightness(1.4); transform: scale(0.96); } 40% { filter: drop-shadow(0 0 24px rgba(255, 211, 92, 0.9)) brightness(1.15); transform: scale(1.03); } 100% { filter: drop-shadow(0 10px 18px rgba(90, 70, 170, 0.2)); transform: none; } }
.jigsaw .pc { filter: drop-shadow(0 2px 2px rgba(46, 17, 112, 0.25)); }
.jigsaw .pc.fresh { transform-box: fill-box; transform-origin: center; animation: landPiece 1.4s 0.5s cubic-bezier(0.25, 1.4, 0.45, 1) both; }
@keyframes landPiece { 0% { transform: translate(0, -140px) rotate(-35deg) scale(1.5); opacity: 0; } 55% { opacity: 1; transform: translate(0, 8px) rotate(4deg) scale(1.08); } 100% { transform: none; opacity: 1; } }
.jigsaw .glow { fill: none; stroke: #ffd35c; stroke-width: 4; opacity: 0; animation: glowPiece 1.6s 1.6s ease-out both; }
@keyframes glowPiece { 0% { opacity: 0.95; } 100% { opacity: 0; } }
.jigsaw-frame { background: linear-gradient(135deg, #f4efff, #eaf6ff); border-radius: 22px; padding: 14px; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.9); }
.jigsaw-frame.free { background: none; box-shadow: none; padding: 4px; }
.jigsaw .slot.ghost { fill: rgba(139, 108, 240, 0.07); stroke: rgba(139, 108, 240, 0.28); stroke-width: 1.2; stroke-dasharray: 3 5; }
.reward-edit { display: grid; grid-template-columns: 200px 1fr; gap: 14px; align-items: start; }
@media (max-width: 560px) { .reward-edit { grid-template-columns: 1fr; } }
.reward-preview { aspect-ratio: 5 / 4; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #ffe08a, #ff9cca); display: grid; place-items: center; position: relative; box-shadow: var(--shadow-sm); }
.reward-preview img { width: 100%; height: 100%; object-fit: cover; }
.reward-preview span { font-size: 70px; }
.reward-preview small { position: absolute; bottom: 6px; inset-inline-start: 6px; background: rgba(255, 255, 255, 0.85); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; }
.year-board .cv small { font-size: 11px; color: rgba(255, 255, 255, 0.95); font-weight: 700; }
.daily-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-top: 14px; white-space: pre-line; }
.daily-card .face { width: 52px; height: 52px; }
.push-ask { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; width: 100%; margin-top: 14px; padding: 12px; border-radius: 22px; cursor: pointer; font-size: 17px; color: var(--ink); }
.legal h3 { margin: 14px 0 4px; font-size: 20px; }
.legal p { margin: 0; line-height: 1.7; }
.note-card { display: flex; gap: 14px; align-items: center; padding: 16px 18px; margin-top: 16px; background: linear-gradient(135deg, #fff, #ffe9f4); animation: popIn 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) both; transition: opacity 0.4s; flex-wrap: wrap; }
.note-card .big { font-size: 44px; animation: bob 2.4s ease-in-out infinite; }
.note-card small { color: var(--pink-dd); font-weight: 700; display: block; }
.note-card b { font-family: var(--display); font-weight: 600; font-size: 22px; }
.badge.locked { opacity: 0.55; filter: grayscale(0.8); cursor: default; }
.badge-big { font-size: 90px; animation: jump 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) 3; }

/* ארגז הכלים */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tool { background: #fff; border-radius: 26px; padding: 16px; cursor: pointer; border: 0; text-align: start; box-shadow: var(--shadow); transition: transform 0.2s cubic-bezier(0.2, 1.4, 0.4, 1); color: var(--ink); display: grid; gap: 8px; }
.tool:hover { transform: translateY(-4px); }
.tool .ic { font-size: 34px; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 20px; background: var(--lav); }
.tool:nth-child(4n+2) .ic { background: var(--sky); } .tool:nth-child(4n+3) .ic { background: var(--mint); } .tool:nth-child(4n) .ic { background: var(--peach); }
.tool b { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.2; }
.tool .badge-new { justify-self: start; background: var(--lemon); color: #9a6f00; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.subj-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.method-steps { display: grid; gap: 10px; counter-reset: st; }
.method-steps li { list-style: none; background: #fff; border-radius: 18px; padding: 12px 14px 12px 14px; box-shadow: var(--shadow-sm); display: flex; gap: 10px; align-items: center; font-size: 18px; animation: popIn 0.4s both; }
.method-steps li::before { counter-increment: st; content: counter(st); flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--lav-d); color: #fff; font-weight: 800; }
.example-steps li { opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.4s; }
.example-steps li.show { opacity: 1; transform: none; }

/* לוח הכפל */
.mtable { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; direction: ltr; max-width: 460px; margin: 0 auto; font-size: clamp(11px, 2.4vw, 15px); font-weight: 700; }
.mtable span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; background: #fff; color: var(--ink-soft); transition: background 0.3s, transform 0.3s; }
.mtable span.h { background: var(--lav); color: var(--lav-dd); }
.mtable span.row, .mtable span.col { background: var(--lemon); color: var(--ink); }
.mtable span.hit { background: linear-gradient(180deg, #ffd35c, #ffb02e); color: #4a3500; transform: scale(1.25); box-shadow: 0 4px 10px rgba(229, 168, 0, 0.4); z-index: 1; }

/* מפת המסע */
.journey { position: relative; padding: 20px 14px 22px; margin-top: 18px; }
.journey h3 { margin: 0 8px 14px; font-size: 22px; }
.journey svg.path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.nodes { position: relative; display: grid; row-gap: 22px; }
.node-row { display: grid; grid-template-columns: repeat(5, 1fr); justify-items: center; align-items: center; position: relative; }
.node-row::before { content: ''; position: absolute; inset-inline: 6%; top: 50%; height: 6px; margin-top: -3px; border-radius: 6px; background: repeating-linear-gradient(90deg, #e4ddfb 0 10px, transparent 10px 18px); z-index: 0; }
.node { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; position: relative; z-index: 1; border: 0; transition: transform 0.2s; color: #fff; font-family: var(--display); }
.node.done { background: #ffc21a; color: #3d2a00; box-shadow: 0 4px 0 #d99300; }
.node.done::after { content: '★'; position: absolute; top: -9px; inset-inline-end: -5px; font-size: 18px; color: #ffb000; text-shadow: 0 2px 0 #fff; }
.node.today { background: var(--lav-d); box-shadow: 0 4px 0 #4a2fd0, 0 0 0 8px rgba(124, 92, 255, 0.2); animation: pulse 1.6s infinite; width: 66px; height: 66px; cursor: pointer; font-size: 22px; }
.node.future { background: #f4f1ff; color: #b1a6dd; box-shadow: 0 3px 0 #e2dbfb; }
.node.chest { width: 72px; height: 72px; background: var(--pink-d); box-shadow: 0 5px 0 #d63a83; font-size: 34px; }
.node .mini { position: absolute; bottom: 64px; width: 58px; pointer-events: none; animation: bob 2.6s ease-in-out infinite; filter: drop-shadow(0 6px 6px rgba(0,0,0,.15)); }
@media (max-width: 480px) { .node { width: 50px; height: 50px; font-size: 16px; } .node.today { width: 58px; height: 58px; } .node.chest { width: 64px; height: 64px; font-size: 30px; } }

.kid-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; margin-top: 18px; }
@media (max-width: 820px) { .kid-grid { grid-template-columns: 1fr; } }
.reward-box { display: flex; align-items: center; gap: 14px; padding: 18px; }
.reward-box .emo { font-size: 50px; width: 84px; height: 84px; display: grid; place-items: center; background: var(--pink); border-radius: 26px; animation: bob 2.6s ease-in-out infinite; flex: none; }

/* פאזל */
.puzzle { position: relative; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, #ffe08a, #ffb38a 50%, #ff9cca); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.6); }
.puzzle .art { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(70px, 16vw, 140px); background-size: cover; background-position: center; }
.puzzle .covers { position: absolute; inset: 0; display: grid; gap: 4px; padding: 4px; }
.puzzle .cv { border-radius: 10px; display: grid; place-items: center; color: rgba(255, 255, 255, 0.85); font-size: 16px; transition: transform 0.6s, opacity 0.6s; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.07), inset 0 2px 0 rgba(255, 255, 255, 0.6); }
.puzzle .cv:nth-child(4n+1) { background: #c9b8ff; } .puzzle .cv:nth-child(4n+2) { background: #a9dcff; } .puzzle .cv:nth-child(4n+3) { background: #a6ecc9; } .puzzle .cv:nth-child(4n) { background: #ffd0b5; }
.puzzle .cv.open { opacity: 0; transform: scale(0.4) rotate(20deg); }
.puzzle .cv.fresh { animation: reveal 1.5s 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
@keyframes reveal { 0% { opacity: 1; transform: none; } 40% { transform: scale(1.3) rotate(-10deg); background: #ffd35c; } 100% { opacity: 0; transform: scale(0.2) rotate(40deg) translateY(-30px); } }
.puzzle-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-weight: 700; }

/* המפגש */
.lesson { max-width: 780px; margin: 0 auto; padding: 0 12px 14px; display: flex; flex-direction: column; height: calc(100vh - 84px); height: calc(100dvh - 84px); }
.lesson-top { display: flex; align-items: center; gap: 10px; margin: 10px 0 8px; }
.lesson-top .topic { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.track { flex: 1; height: 14px; background: #fff; border-radius: 999px; overflow: hidden; box-shadow: inset 0 2px 4px rgba(90, 70, 170, 0.1); }
.track b { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #7fe6bb, #3cc28c); transition: width 0.8s cubic-bezier(0.2, 1, 0.3, 1); position: relative; }
.track b::after { content: ''; position: absolute; inset: 3px 6px auto; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.6); }
.stages { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.stages span { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); font-weight: 700; }
.stages span.on { background: var(--lav-d); border-color: var(--lav-d); color: #fff; box-shadow: 0 4px 12px rgba(124, 92, 255, 0.3); }
.stages span.done { border-color: transparent; }
.stages span.done { background: var(--mint); color: var(--mint-dd); }
.chat { flex: 1; overflow-y: auto; padding: 8px 4px; scroll-behavior: smooth; }
.bubble-row { display: flex; gap: 8px; align-items: flex-end; margin: 12px 0; animation: popIn 0.35s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.bubble-row.child { flex-direction: row-reverse; }
.face { width: 50px; height: 50px; border-radius: 50%; background: var(--lav) url('/brand/pazelo-wave.png') 50% 4% / 210% auto no-repeat; flex: none; box-shadow: 0 0 0 3px #fff, var(--shadow-sm); display: grid; place-items: center; font-size: 26px; }
.face.kid { background: var(--lemon); }
.bubble { max-width: 80%; padding: 13px 17px; border-radius: 24px; font-size: clamp(17px, 2.8vw, 20px); white-space: pre-line; line-height: 1.5; box-shadow: var(--shadow-sm); }
.bubble-row.tutor .bubble { background: #fff; border: 1px solid var(--line); border-end-start-radius: 8px; }
.bubble-row.child .bubble { background: var(--lav-d); color: #fff; border-end-end-radius: 8px; box-shadow: 0 6px 16px rgba(124, 92, 255, 0.25); }
.speak { background: var(--lav); border: 0; cursor: pointer; font-size: 14px; border-radius: 999px; width: 30px; height: 30px; margin-inline-start: 6px; vertical-align: middle; }
.typing { display: inline-flex; gap: 6px; padding: 16px 20px; }
.typing i { width: 10px; height: 10px; background: var(--lav-d); border-radius: 50%; animation: dots 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; background: var(--sky-d); } .typing i:nth-child(3) { animation-delay: 0.3s; background: var(--mint-d); }
@keyframes dots { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-7px); opacity: 1; } }
.composer { display: flex; gap: 8px; padding: 8px; margin-top: 8px; border-radius: 26px; box-shadow: var(--shadow-lg); }
.composer:focus-within { border-color: var(--lav-d); box-shadow: 0 0 0 4px var(--lav), var(--shadow-lg); }
.composer input { flex: 1; border-radius: 999px; border: 0; padding: 14px 18px; font-size: 18px; background: transparent; outline: none; min-width: 0; }
.helpers { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 8px; }
.helpers button, .helpers label { border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 15px; font-weight: 600; box-shadow: var(--shadow-sm); }
.helpers .h1 { background: var(--sky); color: var(--sky-dd); } .helpers .h2 { background: var(--lemon); color: #9a6f00; } .helpers .h3 { background: var(--mint); color: var(--mint-dd); }
.advance { text-align: center; padding-top: 10px; }
.icon-btn.mic { width: 50px; height: 50px; font-size: 22px; border-radius: 50%; background: var(--sky); flex: none; transition: transform 0.2s; }
.icon-btn.mic.listening { background: var(--red); animation: micpulse 1.1s ease-in-out infinite; }
@keyframes micpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(240, 90, 100, 0.5); transform: scale(1); } 50% { box-shadow: 0 0 0 14px rgba(240, 90, 100, 0); transform: scale(1.08); } }

/* חידון */
.quiz { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.quiz .count { display: flex; justify-content: center; gap: 8px; align-items: center; font-weight: 800; color: var(--lav-dd); }
.combo { background: var(--peach); color: var(--peach-dd); padding: 4px 12px; border-radius: 999px; animation: popIn 0.4s cubic-bezier(0.2, 1.5, 0.4, 1); }
.quiz .q { background: #fff; border-radius: 30px; padding: 28px 20px; text-align: center; font-size: clamp(22px, 4.6vw, 32px); font-family: var(--display); box-shadow: var(--shadow); animation: popIn 0.45s both; }
.quiz .qtype { display: block; font-family: var(--font); font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.options button { border: 0; border-radius: 24px; padding: 20px 12px; font-size: clamp(19px, 3.6vw, 26px); font-weight: 800; cursor: pointer; color: #fff; position: relative; overflow: hidden; transition: transform 0.15s; animation: popIn 0.4s both; }
.options button:nth-child(1) { background: #3d97ff; box-shadow: 0 6px 0 #1d6fd6; animation-delay: 0.05s; }
.options button:nth-child(2) { background: #ff8a4c; box-shadow: 0 6px 0 #d8611f; animation-delay: 0.1s; }
.options button:nth-child(3) { background: #22c58b; box-shadow: 0 6px 0 #0f9465; animation-delay: 0.15s; }
.options button:nth-child(4) { background: #ff5fa8; box-shadow: 0 6px 0 #d63a83; animation-delay: 0.2s; }
.options button:active { transform: translateY(4px); }
.options button.right { outline: 5px solid var(--mint-d); outline-offset: 3px; transform: scale(1.05); }
.options button.wrong { animation: shake 0.45s; opacity: 0.55; }
@media (max-width: 420px) { .options { grid-template-columns: 1fr; } }
.answer-box { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.answer-box input, .answer-box textarea { width: 100%; max-width: 460px; border: 3px solid #fff; border-radius: 22px; padding: 16px; font-size: 26px; text-align: center; background: #fff; box-shadow: var(--shadow); outline: none; font-weight: 700; color: var(--ink); }
.answer-box textarea { font-size: 19px; text-align: start; min-height: 110px; font-weight: 500; resize: none; }
.answer-box input:focus, .answer-box textarea:focus { border-color: var(--lav-d); }
.answer-box.ok input, .answer-box.ok textarea { border-color: var(--mint-d); background: var(--mint); }
.answer-box.bad input, .answer-box.bad textarea { border-color: var(--red); animation: shake 0.45s; }
.keypad, .pin-pad { direction: ltr; }
.keypad { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; width: 100%; max-width: 460px; }
.keypad button { height: 50px; border: 0; border-radius: 14px; background: #fff; font-size: 22px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 0 #e3dcfa; color: var(--ink); }
.keypad button:active { transform: translateY(3px); box-shadow: 0 1px 0 #e3dcfa; }
.feedback { text-align: center; font-size: 20px; font-weight: 700; min-height: 30px; padding: 0 10px; }
.feedback.ok { color: var(--mint-dd); } .feedback.bad { color: var(--peach-dd); }

/* סיום */
.celebrate { text-align: center; padding-top: 4px; }
.celebrate h1 { font-size: clamp(30px, 6vw, 46px); margin: 6px 0; }
.score-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.score { display: inline-flex; gap: 6px; align-items: center; background: #fff; border-radius: 999px; padding: 8px 18px; font-weight: 800; font-size: 19px; box-shadow: var(--shadow-sm); }
.meter { max-width: 420px; margin: 14px auto 0; text-align: start; }
.fly-piece { position: fixed; z-index: 60; width: 96px; height: 96px; background: linear-gradient(180deg, #ffd35c, #ffb02e); pointer-events: none; -webkit-mask: url('/brand/piece.svg') center / contain no-repeat; mask: url('/brand/piece.svg') center / contain no-repeat; animation: flyIn 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes flyIn { 0% { top: 22%; left: 50%; transform: translate(-50%, 0) scale(0) rotate(0); } 30% { transform: translate(-50%, 0) scale(1.5) rotate(-20deg); } 100% { top: 68%; left: 50%; transform: translate(-50%, 0) scale(0.3) rotate(220deg); opacity: 0.1; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.stars { position: fixed; pointer-events: none; z-index: 55; }
.stars i { position: absolute; font-style: normal; font-size: 26px; animation: burst 0.9s ease-out forwards; }
@keyframes burst { from { transform: translate(0, 0) scale(0.4); opacity: 1; } to { transform: translate(var(--x), var(--y)) scale(1.2); opacity: 0; } }
.levelup { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(251, 249, 255, 0.75); backdrop-filter: blur(6px); animation: popIn 0.4s both; }
.levelup .box { text-align: center; padding: 30px 40px; }
.levelup .box b { font-family: var(--display); font-size: 54px; color: var(--lav-dd); display: block; }

/* כניסת ילד */
.pin-pad { display: grid; grid-template-columns: repeat(3, 80px); gap: 12px; justify-content: center; margin-top: 16px; }
.pin-pad button { height: 80px; border-radius: 26px; border: 0; background: #fff; font-size: 30px; font-weight: 800; cursor: pointer; box-shadow: 0 5px 0 #e3dcfa, var(--shadow-sm); color: var(--ink); transition: transform 0.1s; }
.pin-pad button:active { transform: translateY(4px); box-shadow: 0 1px 0 #e3dcfa; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin-top: 10px; }
.pin-dots i { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--lav-d); }
.pin-dots i.on { background: var(--lav-d); }
.pin-dots.bad { animation: shake 0.45s; }
.kid-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.kid-pick button { background: #fff; border: 0; border-radius: 28px; padding: 20px 10px; cursor: pointer; font-size: 20px; font-weight: 800; box-shadow: var(--shadow); transition: transform 0.2s cubic-bezier(0.2, 1.4, 0.4, 1); color: var(--ink); }
.kid-pick button:hover { transform: translateY(-5px) rotate(-1deg); }
.kid-pick .e { font-size: 46px; display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 8px; border-radius: 24px; background: var(--lemon); }
.kid-pick button:nth-child(3n+2) .e { background: var(--sky); } .kid-pick button:nth-child(3n) .e { background: var(--mint); }
.kid-input { width: 100%; max-width: 320px; text-align: center; font-size: 28px; letter-spacing: 6px; text-transform: uppercase; padding: 14px; border-radius: 22px; border: 3px solid #fff; box-shadow: var(--shadow); color: var(--ink); font-weight: 800; outline: none; }
.kid-input:focus { border-color: var(--lav-d); }

/* ---------- הורה בטלפון ---------- */
.bottom-nav { display: none; }
@media (max-width: 720px) {
  .parent-area .page { padding-bottom: 100px; }
  .topbar .bell[href] { display: none; }
  .bottom-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--ink-soft); font-size: 12px; font-weight: 600; padding: 4px; border-radius: 14px; }
  .bottom-nav a span { font-size: 22px; position: relative; }
  .bottom-nav a span b { position: absolute; top: -4px; inset-inline-start: -10px; background: var(--red); color: #fff; font-size: 10px; border-radius: 999px; padding: 0 5px; }
  .bottom-nav a.on { color: var(--lav-dd); background: var(--lav); }
  .topbar .bell, .topbar [data-logout] { display: none; }
  .grid-kids { grid-template-columns: 1fr; }
  .day-row { grid-template-columns: 1fr 1fr; }
  .day-row label { grid-column: 1 / -1; }
  .plan-item { grid-template-columns: 1fr auto; }
  .plan-item > .stack:first-child { display: none; }
  .btn { min-height: 44px; }
  .btn.sm { min-height: 36px; }
  .row > .input, .row > select.input { max-width: none !important; }
  .page h2 { font-size: 24px; }
  .transcript .msg { max-width: 92%; }
  .mastery-row { grid-template-columns: 1fr 80px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- מעבדת חשבון ---------- */
.lab-banner { display: flex; align-items: center; gap: 14px; width: 100%; margin: 4px 0 16px; padding: 14px 18px; border: 2px dashed #ffb48a; border-radius: 22px; background: #fff7f1; cursor: pointer; text-align: start; color: var(--ink); }
.lab-banner > span:first-child { font-size: 34px; }
.lab-banner b { font-family: var(--display); font-size: 19px; display: block; }
.lab-banner small { color: var(--ink-soft); }
.lab-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 14px; margin-top: 18px; }
.lab-tool { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 18px; text-align: start; cursor: pointer; display: grid; gap: 6px; box-shadow: var(--shadow); color: var(--ink); transition: transform 0.2s cubic-bezier(0.2, 1.4, 0.4, 1), box-shadow 0.2s; }
.lab-tool::before { content: ''; position: absolute; inset: 0 0 auto; height: 6px; background: var(--lc); }
.lab-tool:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lab-tool .ic { font-size: 36px; width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; background: color-mix(in srgb, var(--lc) 16%, #fff); }
.lab-tool b { font-family: var(--display); font-size: 21px; }
.lab-tool small { color: var(--ink-soft); line-height: 1.45; }
.lab-tool .badge-new { justify-self: start; background: var(--lemon); color: #9a6f00; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.lab-tool.later { opacity: 0.8; }
.lab-top { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; font-family: var(--display); font-size: 19px; }
.lab-dots { display: flex; gap: 6px; }
.lab-dots i { width: 14px; height: 14px; border-radius: 50%; background: #e7e1f8; }
.lab-dots i.done { background: var(--mint-d); }
.lab-dots i.now { background: var(--lav-d); box-shadow: 0 0 0 4px var(--lav); }
.lab-prompt { padding: 16px 20px; font-family: var(--display); font-weight: 600; font-size: clamp(20px, 3.4vw, 28px); text-align: center; }
.lab-prompt b { color: var(--lav-dd); font-size: 1.15em; }
.lab-stage { margin-top: 12px; padding: 16px; min-height: 260px; display: grid; gap: 12px; align-content: start; }
.lab-readout { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.lab-readout span { color: var(--ink-soft); font-weight: 600; }
.lab-readout b { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--ink); }
.lab-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 12px; }
.lab-controls .jump { min-width: 64px; font-size: 18px; }
.lab-fb { text-align: center; margin-top: 12px; min-height: 28px; font-size: 18px; }
.lab-fb.ok { color: var(--mint-dd); }
.lab-fb.bad { color: var(--peach-dd); }
.lab-steps { list-style: none; padding: 0; margin: 8px auto 0; display: grid; gap: 6px; max-width: 520px; color: var(--ink); }
.lab-steps li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.lab-actions { margin: 14px 0 30px; }
.lab-legend { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; color: var(--ink-soft); font-weight: 600; font-size: 14px; }
.lab-legend .lg { display: inline-block; vertical-align: middle; margin-inline-end: 6px; border-radius: 3px; }
.flat-i { width: 16px; height: 16px; background: #ff8a4c; }
.rod-i { width: 6px; height: 18px; background: #3d97ff; }
.cube-i { width: 9px; height: 9px; background: #22c58b; }
/* קוביות */
.mat { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; justify-content: center; min-height: 170px; padding: 14px; border-radius: 18px; background: repeating-linear-gradient(0deg, #faf8ff 0 23px, #f1edfb 23px 24px); direction: ltr; }
.mat button { border: 0; padding: 0; cursor: pointer; background: none; animation: popIn 0.25s cubic-bezier(0.2, 1.5, 0.4, 1); }
.mat button:hover { filter: brightness(1.08); transform: translateY(-2px); }
.flat { display: grid; grid-template-columns: repeat(10, 1fr); gap: 1px; width: 110px; height: 110px; padding: 2px; border-radius: 6px; background: #d8611f !important; box-shadow: 0 3px 0 #b24c14; }
.flat i { background: #ff8a4c; border-radius: 1px; }
.rod { display: grid; grid-template-rows: repeat(10, 1fr); gap: 1px; width: 15px; height: 150px; padding: 1px; border-radius: 4px; background: #1d6fd6 !important; box-shadow: 0 3px 0 #1556aa; }
.rod i { background: #3d97ff; border-radius: 1px; }
.cubes { display: grid; grid-template-columns: repeat(5, 15px); gap: 3px; align-content: end; }
.cube { width: 15px; height: 15px; border-radius: 3px; background: #22c58b !important; box-shadow: 0 2px 0 #0f9465; }
.mat-empty { align-self: center; font-size: 14px; direction: rtl; }
/* ישר המספרים */
.nline { width: 100%; height: auto; overflow: visible; }
.nline .base { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.nline .tk { stroke: #9a93bd; stroke-width: 2; }
.nline .tk.big { stroke: var(--ink); stroke-width: 3; }
.nline .tl { font: 600 14px var(--font); fill: var(--ink-soft); text-anchor: middle; }
.nline .tl.big { font-weight: 800; fill: var(--ink); font-size: 16px; }
.nline .arc { fill: none; stroke: var(--lav-d); stroke-width: 3; stroke-linecap: round; }
.nline .arc.new { stroke-dasharray: 400; stroke-dashoffset: 400; animation: drawArc 0.5s ease-out forwards; }
@keyframes drawArc { to { stroke-dashoffset: 0; } }
.nline .al { font: 800 15px var(--font); fill: var(--lav-dd); text-anchor: middle; }
.nline .startdot { fill: var(--peach-d); }
.nline .roo { font-size: 30px; text-anchor: middle; transition: x 0.4s cubic-bezier(0.3, 1.4, 0.5, 1); }
.lab-eq { text-align: center; font-family: var(--display); font-size: 24px; color: var(--ink-soft); }
.lab-eq b { color: var(--ink); }
/* פיצה */
.pizza-wrap { display: grid; place-items: center; }
.pizza { width: min(300px, 80vw); height: auto; }
.pizza .crust { fill: #e9a95b; }
.pizza .dough { fill: #ffe7b0; }
.pizza .slice { fill: #ffe7b0; stroke: #e9a95b; stroke-width: 3; cursor: pointer; transition: fill 0.2s; }
.pizza .slice:hover { fill: #fff2cf; }
.pizza .slice.on { fill: #ff5fa8; }
.pizza .pz-hint { font: 600 15px var(--font); fill: #a8762f; text-anchor: middle; }
.frac { display: inline-grid; grid-template-rows: auto auto; text-align: center; vertical-align: middle; line-height: 1.05; margin: 0 4px; font-family: var(--display); }
.frac span:first-child { border-bottom: 3px solid currentColor; padding: 0 4px 2px; }
.frac span:last-child { padding-top: 2px; }
.lab-readout .frac { font-size: 30px; }
/* מערך */
.grid10 { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; width: min(360px, 88vw); margin: 0 auto; }
.grid10 .cell { aspect-ratio: 1; border: 0; border-radius: 6px; background: #efeafc; cursor: pointer; transition: background 0.15s, transform 0.15s; }
.grid10 .cell:hover { background: #ddd3fb; }
.grid10 .cell.on { background: var(--sky-d); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12); }
.lab-stage.locked { pointer-events: none; }
.lab-stage.locked .lab-readout b { color: var(--mint-dd); }
.lab-sub { font-size: 1.25em; color: var(--lav-dd); margin-top: 4px; letter-spacing: 1px; }

/* ---------- אבחון פתיחה ---------- */
.diag-tile { border: 2px solid var(--lemon-d); background: #fffbea; }
.diag-tile::after { opacity: 0.9; }
.diag-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.diag-facts .glass { padding: 14px 16px; display: grid; gap: 2px; }
.diag-facts b { font-family: var(--display); font-size: 18px; }
.diag-facts span { color: var(--ink-soft); font-size: 14px; }
@media (max-width: 640px) { .diag-facts { grid-template-columns: 1fr; } }
.diag .quiz .q { font-size: clamp(24px, 5vw, 36px); }
.diag-thanks { text-align: center; font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--mint-dd); animation: popIn 0.4s cubic-bezier(0.2, 1.5, 0.4, 1); }
/* דוח האבחון להורה: מפת מיומנויות לפי כיתה */
.skillmap { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.skillmap .col { display: grid; gap: 6px; align-content: start; }
.skillmap .col > b { text-align: center; font-size: 13px; color: var(--ink-soft); }
.skill { border-radius: 12px; padding: 6px 8px; font-size: 13px; font-weight: 600; text-align: center; line-height: 1.3; background: #f3f0fb; color: #9a93bd; border: 1px dashed #ddd6f5; }
.skill.mastered { background: var(--mint); color: var(--mint-dd); border: 0; }
.skill.partial { background: var(--lemon); color: #8a6200; border: 0; }
.skill.gap { background: var(--red-soft); color: var(--red); border: 0; }
.skill.root { box-shadow: 0 0 0 3px var(--red); }
.skill-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.skill-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: middle; margin-inline-end: 4px; }
@media (max-width: 720px) { .skillmap { grid-template-columns: repeat(3, 1fr); } }

/* ---------- תלמד את פאזלו ---------- */
.teach-bulbs { display: flex; align-items: center; gap: 6px; justify-content: center; margin: 0 0 6px; flex-wrap: wrap; }
.teach-bulbs span { font-size: 26px; filter: grayscale(1) opacity(0.35); transition: filter 0.4s, transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
.teach-bulbs span.on { filter: none; transform: scale(1.15); }
.teach-bulbs small { color: var(--ink-soft); font-weight: 600; margin-inline-start: 6px; }
.notebook { padding: 16px; margin-top: 8px; background: #fffdf5 !important; border: 1px solid #f1e6c6 !important; background-image: repeating-linear-gradient(#fffdf5 0 31px, #e8f0ff 31px 32px) !important; }
.nb-head { font-family: var(--display); font-weight: 600; font-size: 19px; margin-bottom: 10px; }
.nb-steps { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.nb-steps button { width: 100%; text-align: start; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; color: var(--ink); transition: border-color 0.15s, background 0.15s; }
.nb-steps button:hover { border-color: var(--peach-d); }
.nb-steps button.on { border-color: var(--red); background: var(--red-soft); }
.nb-steps .n { flex: none; font-size: 13px; font-weight: 800; color: var(--ink-soft); background: #f3f0fb; border-radius: 999px; padding: 2px 10px; }
.nb-fix { gap: 8px; flex-wrap: wrap; }
.nb-fix label { width: 100%; text-align: center; font-weight: 600; }
.teach .face.kid { font-size: 24px; }
.teach-log summary { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; cursor: pointer; padding: 8px 0; border-bottom: 1px solid var(--line); list-style: none; }
.teach-log summary::-webkit-details-marker { display: none; }
.teach-log .transcript { padding: 8px 0; }

/* ---------- מצב מבחן ---------- */
.exam-card.past { opacity: 0.85; }
.exam-count { flex: none; width: 66px; height: 66px; border-radius: 20px; background: var(--ink); color: var(--lemon-d); display: grid; place-items: center; align-content: center; line-height: 1; }
.exam-count b { font-family: var(--display); font-size: 30px; }
.exam-count small { font-size: 12px; color: #fff; opacity: 0.8; }
.exam-count.big { width: 78px; height: 78px; }
.exam-count.big b { font-size: 36px; }
.exam-ready { display: grid; justify-items: center; gap: 2px; }
.exam-ready small { color: var(--ink-soft); font-size: 12px; }
.ring { --p: 0; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--mint-d) calc(var(--p) * 1%), #ece8f7 0); }
.ring span { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.exam-plan { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.ep { flex: none; width: 150px; border-radius: 16px; padding: 10px 12px; background: #f7f5fd; border: 1px solid var(--line); display: grid; gap: 2px; }
.ep b { font-size: 14px; }
.ep span { font-size: 13px; font-weight: 600; color: var(--lav-dd); }
.ep small { font-size: 12px; color: var(--ink-soft); line-height: 1.35; }
.ep.today { border: 2px solid var(--lav-d); background: #fff; box-shadow: 0 0 0 4px var(--lav); }
.ep.done { background: var(--mint); border-color: transparent; }
.ep.missed { opacity: 0.6; }
.kid-exam { display: flex; gap: 16px; align-items: center; padding: 16px 18px; margin-top: 16px; flex-wrap: wrap; border: 2px solid var(--ink) !important; }
.kid-exam-actions { display: grid; gap: 8px; justify-items: center; }
@media (max-width: 560px) { .kid-exam-actions { width: 100%; grid-template-columns: 1fr 1fr; } .kid-exam-actions .btn { width: 100%; } }
.diag-options button { font-size: clamp(20px, 3.6vw, 26px); }
.diag-options button.picked { outline: 5px solid var(--lav-d); outline-offset: 3px; }
.diag .q.read-font { font-family: "Noto Sans Hebrew", "Rubik", sans-serif; font-weight: 700; line-height: 1.6; }

/* ---------- אימון להורה ---------- */
.coach { display: grid; gap: 14px; border: 2px solid var(--lemon); background: linear-gradient(180deg, #fffbea 0%, var(--card) 140px); }
.coach-head { display: flex; gap: 14px; align-items: flex-start; }
.coach-head h3 { margin: 2px 0 4px; font-family: var(--display); font-size: clamp(19px, 2.4vw, 23px); text-wrap: balance; }
.coach-head .eyebrow { font-size: 13px; font-weight: 600; color: var(--lemon-dd); }
.coach-badge { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--lemon); }
.coach-method { background: var(--lav); border-radius: 18px; padding: 14px 16px; display: grid; gap: 6px; }
.coach-steps { margin: 2px 0; padding-inline-start: 22px; display: grid; gap: 3px; }
.coach-steps li { text-wrap: pretty; }
.coach-ex { background: var(--card); border-radius: 14px; padding: 8px 12px; }
.coach-ex summary { cursor: pointer; font-weight: 600; color: var(--lav-dd); }
.coach-ex-q { font-size: 20px; font-weight: 700; margin: 8px 0 4px; }
.coach-ask ul, .coach-dodont ul { margin: 6px 0 0; padding-inline-start: 20px; display: grid; gap: 5px; }
.coach-ask li, .coach-dodont li { text-wrap: pretty; }
.coach-dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.coach-do, .coach-dont { border-radius: 16px; padding: 12px 14px; font-size: 15px; }
.coach-do { background: var(--mint); }
.coach-dont { background: var(--peach); }
.coach-life { display: flex; gap: 10px; align-items: flex-start; background: var(--sky); border-radius: 16px; padding: 12px 14px; font-size: 22px; }
.coach-life .small { font-size: 15px; }
.coach-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 640px) { .coach-dodont { grid-template-columns: 1fr; } }

.diag-sub { text-align: center; font-size: clamp(24px, 4.4vw, 34px); font-weight: 700; margin: 4px 0 14px; letter-spacing: .01em; }
.diag-sub .speak { font-size: 20px; vertical-align: middle; }

/* ---------- קריאה בקול באבחון ---------- */
.fluency-box { display: grid; gap: 10px; background: var(--pink); border-radius: 18px; padding: 14px 16px; }
.fluency-box .stat { background: var(--card); }
.flu-bar { position: relative; height: 12px; border-radius: 99px; background: var(--card); overflow: visible; }
.flu-bar b { display: block; height: 100%; border-radius: 99px; background: var(--sky-d); }
.flu-bar i { position: absolute; top: -4px; bottom: -4px; width: 3px; border-radius: 2px; background: var(--ink); }

/* ---------- הרפתקת סיפור ---------- */
.story-hero .eyebrow { color: #fff; opacity: .85; font-weight: 600; font-size: 14px; }
.story-title { font-family: var(--display); color: #fff; margin: 4px 0 10px; font-size: clamp(26px, 4vw, 40px); text-wrap: balance; }
.story-pieces { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; max-width: 360px; margin-bottom: 12px; }
.story-pieces span { aspect-ratio: 1; border-radius: 8px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-size: 16px; }
.story-pieces span.on { background: var(--lemon); }
.story-path { display: grid; gap: 10px; margin-top: 18px; }
.sp-node { --x: 0; display: flex; align-items: center; gap: 10px; width: min(330px, 70%); margin-inline-start: calc(var(--x) * (30% / 4)); background: var(--card); border-radius: 18px; padding: 10px 14px; box-shadow: var(--shadow-sm); position: relative; }
.sp-thumb { position: relative; width: 64px; height: 42px; border-radius: 12px; overflow: hidden; flex: none; background: var(--lav); }
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-thumb em { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 18px; }
.sp-node.locked .sp-thumb img { filter: grayscale(1) blur(2px); opacity: .6; }
.sp-node b { font-family: var(--display); font-weight: 600; }
.sp-node i { margin-inline-start: auto; font-style: normal; font-weight: 700; color: var(--mint-dd); }
.sp-node.next { outline: 3px solid var(--lemon-d); animation: pulse 1.6s infinite; }
.sp-node.locked { opacity: .55; }
.story-scene { display: grid; gap: 12px; margin: 14px 0 8px; }
.story-img { width: 100%; aspect-ratio: 16 / 10; max-height: 300px; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); display: block; animation: storyIn .5s ease-out; }
.story-scene.compact .story-img { max-height: 120px; aspect-ratio: auto; height: 120px; }
@keyframes storyIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.story-speech { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.55; text-wrap: pretty; }
.story-dots { display: flex; gap: 6px; }
.story-dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.story-dots span.on { background: var(--mint-d); }
.story-dots span.now { background: var(--lemon-d); }
.story-fb { border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; }
.story-fb.hint { background: var(--lemon); font-weight: 600; text-align: center; }
.story-fb.bad { background: var(--peach); display: grid; gap: 8px; }
.story-fb ol { margin: 0; padding-inline-start: 22px; }
.tile.story-ready { outline: 3px solid var(--lemon-d); }
@media (max-width: 640px) { .story-img { max-height: 210px; } .sp-node { width: 82%; margin-inline-start: calc(var(--x) * (18% / 4)); } }

/* ---------- מנוי ותשלום ---------- */
.bill-lines { display: grid; gap: 6px; background: var(--lav); border-radius: 16px; padding: 12px 14px; }
.bill-kid .avatar-sm { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--lemon); flex: none; }
.conn-box { background: var(--lemon); border-radius: 18px; padding: 14px 16px; margin-top: 4px; }
.conn-box .check { align-items: flex-start; }
.demo-pay { border: 2px dashed var(--lemon-d); }
.legal mark { background: var(--lemon); border-radius: 6px; padding: 0 4px; }
.legal h3 { margin: 18px 0 4px; }
.legal p, .legal li { line-height: 1.7; text-wrap: pretty; }
.consent-bar { position: fixed; inset-inline: 12px; bottom: 84px; z-index: 60; display: flex; gap: 12px; align-items: center; background: var(--card); border: 2px solid var(--lemon-d); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow-lg); max-width: 760px; margin-inline: auto; }

/* ---------- נגישות ---------- */
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.a11y-btn { position: fixed; inset-inline-end: 14px; bottom: 90px; z-index: 70; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #1f74e0; color: #fff; font-size: 24px; box-shadow: var(--shadow); cursor: pointer; }
.a11y-btn:focus-visible, .a11y-opt:focus-visible { outline: 3px solid var(--lemon-d); outline-offset: 2px; }
.a11y-panel[hidden] { display: none; }
.a11y-panel { position: fixed; inset-inline-end: 14px; bottom: 144px; z-index: 71; width: min(300px, calc(100vw - 28px)); background: var(--card); border-radius: 20px; padding: 14px; box-shadow: var(--shadow-lg); display: grid; gap: 8px; }
.a11y-opt { display: flex; gap: 10px; align-items: center; width: 100%; text-align: start; border: 2px solid var(--line); background: var(--card); border-radius: 14px; padding: 10px 12px; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }
.a11y-opt.on { border-color: #1f74e0; background: var(--sky); }
html.a11y-big body { zoom: 1.15; }
html.a11y-bigger body { zoom: 1.3; }
html.a11y-big.a11y-bigger body { zoom: 1.3; }
html.a11y-contrast { --ink: #000; --ink-soft: #1b1b1b; --line: #000; --card: #fff; --bg: #fff; }
html.a11y-contrast body, html.a11y-contrast .card, html.a11y-contrast .glass { background: #fff !important; color: #000 !important; }
html.a11y-contrast .btn, html.a11y-contrast .tile, html.a11y-contrast .chip { outline: 2px solid #000; }
html.a11y-contrast .muted, html.a11y-contrast .small { color: #000 !important; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px dashed #1f74e0; outline-offset: 2px; }
html.a11y-readable body, html.a11y-readable button, html.a11y-readable input { font-family: Arial, 'Rubik', sans-serif !important; letter-spacing: .02em; word-spacing: .08em; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (min-width: 900px) { .a11y-btn { bottom: 20px; } .a11y-panel { bottom: 74px; } .consent-bar { bottom: 20px; } }

/* ---------- כניסה עם Google ---------- */
.google-wrap { display: grid; justify-items: center; gap: 6px; min-height: 44px; }
.or-line { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 13px; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }
