/* =====================================================================
   אבישי — מערכת העיצוב. ארבעה עולמות דרך data-theme על <html>:
   space (ברירת מחדל ומותג) · notebook · city · comic
   כל רכיב משתמש רק בטוקנים — אין צבע קשיח ברכיבים.
   מקור: docs/design/canvas-v2.html (אושר ע"י רוני 20.10.2026: "כולם, בחירה בהגדרות")
   ===================================================================== */

/* ─── טוקנים ─────────────────────────────────────────────────────────── */
:root,
[data-theme="space"] {
  --bg: #0e0c33;
  --bg-img: radial-gradient(90% 70% at 80% -10%, #3d2ca6 0%, #1a1550 45%, #0e0c33 100%);
  --stars: radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 33% 64%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 52% 12%, #ffe9a8 50%, transparent 51%), radial-gradient(1px 1px at 71% 48%, #fff 50%, transparent 51%), radial-gradient(1.8px 1.8px at 88% 82%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 6% 90%, #c9c2ff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 44% 92%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 22% 44%, #fff 50%, transparent 51%);
  --ink: #f3f0ff;
  --muted: #c9c2ff;
  --surface: rgba(255, 255, 255, .07);
  --surface-solid: #221d63;
  --surface-ink: #f3f0ff;
  --line: rgba(201, 194, 255, .35);
  --paper: #f3f0ff;            /* בועת דיבור / כרטיס בהיר */
  --paper-ink: #17134a;
  --accent: #ffd23f;           /* כפתור ראשי */
  --accent-ink: #1b1400;
  --accent-shadow: 0 5px 0 #b58a00;
  --accent-2: #ff7a1a;
  --accent-3: #5b3fd9;
  --ok: #3ee6b5;
  --ok-ink: #032;
  --err: #ff8fa3;
  --carry: #ff9b54;
  --slot: #3ee6b5;
  --key: #2b2670;
  --key-shadow: 0 4px 0 #120f3d;
  --display: 'Secular One', 'Rubik', sans-serif;
  --body: 'Rubik', sans-serif;
  --digits: 'Secular One', 'Rubik', sans-serif;
  --r: 20px;
  --r-sm: 14px;
  --border: 1.5px solid var(--line);
  --card-shadow: none;
}

[data-theme="notebook"] {
  --bg: #fbfdff;
  --bg-img: linear-gradient(#cfe0f5 1px, transparent 1px), linear-gradient(90deg, #cfe0f5 1px, transparent 1px);
  --stars: none;
  --ink: #14287a;
  --muted: #6a7bb8;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-ink: #14287a;
  --line: #9fb3e6;
  --paper: #fff59d;
  --paper-ink: #3d3300;
  --accent: #1f3fbf;
  --accent-ink: #ffffff;
  --accent-shadow: 4px 5px 0 #14287a;
  --accent-2: #e2383f;
  --accent-3: #ffe45c;
  --ok: #1f9d55;
  --ok-ink: #fff;
  --err: #e2383f;
  --carry: #e2383f;
  --slot: #ffe45c;
  --key: #ffffff;
  --key-shadow: 3px 3px 0 #9fb3e6;
  --display: 'Playpen Sans Hebrew', 'Rubik', sans-serif;
  --body: 'Rubik', sans-serif;
  --digits: 'Playpen Sans Hebrew', 'Rubik', sans-serif;
  --r: 14px;
  --r-sm: 10px;
  --border: 2px dashed var(--line);
  --card-shadow: none;
}

[data-theme="city"] {
  --bg: #bfe9ff;
  --bg-img: linear-gradient(#7fd3ff 0%, #c6ecff 100%);
  --stars: none;
  --ink: #1d2340;
  --muted: #3b4470;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-ink: #1d2340;
  --line: #1d2340;
  --paper: #fff3c4;
  --paper-ink: #1d2340;
  --accent: #ff4f6d;
  --accent-ink: #ffffff;
  --accent-shadow: 0 5px 0 #1d2340;
  --accent-2: #ffc531;
  --accent-3: #3da5ff;
  --ok: #2fbf71;
  --ok-ink: #fff;
  --err: #ff4f6d;
  --carry: #ff4f6d;
  --slot: #ffc531;
  --key: #ffffff;
  --key-shadow: 0 4px 0 #1d2340;
  --display: 'Fredoka', 'Rubik', sans-serif;
  --body: 'Rubik', sans-serif;
  --digits: 'Fredoka', 'Rubik', sans-serif;
  --r: 22px;
  --r-sm: 16px;
  --border: 4px solid #1d2340;
  --card-shadow: 0 6px 0 #1d2340;
}

[data-theme="comic"] {
  /* קומיקס מודפס (רוני 21.10: לא להיראות כמו mayachat — בלי צהוב ושחור, בלי צל קשיח באלכסון).
     צבעי דפוס: דיו כחול-כהה, ציאן ומג'נטה על נייר בהיר עם רשת נקודות. פאנלים, תיבות קריינות, בועות ופיצוצים. */
  --bg: #eaf2fb;
  --bg-img: radial-gradient(rgba(0,150,214,.17) 1.5px, transparent 1.6px);
  --stars: none;
  --ink: #1a2350;
  --muted: #4b5689;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-ink: #1a2350;
  --line: #1a2350;
  --paper: #ffffff;
  --paper-ink: #1a2350;
  --accent: #e6007e;
  --accent-ink: #ffffff;
  --accent-shadow: 0 4px 0 #1a2350;
  --accent-2: #0096d6;
  --accent-3: #e6007e;
  --ok: #0096d6;
  --ok-ink: #fff;
  --err: #e6007e;
  --carry: #e6007e;
  --slot: #0096d6;
  --key: #ffffff;
  --key-shadow: 0 3px 0 #1a2350;
  --display: 'Karantina', 'Rubik', sans-serif;
  --body: 'Rubik', sans-serif;
  --digits: 'Rubik', sans-serif;
  --r: 6px;
  --r-sm: 6px;
  --border: 2.5px solid #1a2350;
  --card-shadow: none;
}

/* ─── בסיס ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--bg);
  min-height: 100vh;
  font-size: 17px;
  line-height: 1.55;
}
/* רקע העולם בשכבה קבועה (לא background-attachment:fixed, שנשבר בגלילה ובאייפון) */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background-image: var(--bg-img); pointer-events: none; }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; background-image: var(--stars); background-size: 420px 380px; pointer-events: none; opacity: .85; }
[data-theme="notebook"] body::before { background-size: 28px 28px; }
[data-theme="comic"] body::before { background-size: 12px 12px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 99; border-radius: 8px; }
.skip:focus { inset-inline-start: 8px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ─── כפתורים ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 999px; padding: 11px 22px; min-height: 46px;
  font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  box-shadow: var(--accent-shadow); transition: transform .08s;
}
[data-theme="city"] .btn, [data-theme="comic"] .btn { border: var(--border); }
[data-theme="comic"] .btn { border-radius: 999px; font-weight: 800; }
.btn:active { transform: translateY(3px); box-shadow: none; }
.btn-big { font-size: 21px; padding: 15px 32px; min-height: 58px; font-family: var(--display); font-weight: 400; }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: none; border: var(--border); }
.btn-ok { background: var(--ok); color: var(--ok-ink); }
.linkish { background: none; border: 0; text-decoration: underline; cursor: pointer; color: var(--muted); padding: 6px; }

/* ─── טפסים ──────────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 14px; text-align: start; }
.form fieldset { border: var(--border); border-radius: var(--r-sm); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.form legend { padding: 0 8px; font-weight: 700; color: var(--muted); }
.form label { display: flex; flex-direction: column; gap: 5px; font-weight: 500; font-size: 15px; }
.form label small { color: var(--muted); font-weight: 400; }
.form input:not([type=radio]):not([type=checkbox]), .form select, .form textarea {
  background: #fff; color: #17134a; border: 2px solid #c9c2ff; border-radius: 12px; padding: 11px 14px; min-height: 48px; font-size: 17px; width: 100%;
}
.form input:focus, .form select:focus { border-color: var(--accent-3); outline: none; box-shadow: 0 0 0 3px rgba(91,63,217,.3); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.seg { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-height: 48px; }
.seg-l { font-weight: 500; font-size: 15px; }
.seg label { flex-direction: row !important; align-items: center; gap: 6px !important; cursor: pointer; }
.seg input { width: 20px; height: 20px; accent-color: var(--accent-3); }
.fine { font-size: 14px; color: var(--muted); text-align: center; }
.fine a { color: var(--ink); font-weight: 700; }
.flash { border-radius: 12px; padding: 12px 16px; margin: 0 0 14px; font-weight: 500; }
.flash-error { background: #ffe1e6; color: #8a1129; border: 2px solid #ff8fa3; }
.flash-ok { background: #d9fbef; color: #0b5b42; border: 2px solid #3ee6b5; }

/* ─── סרגל עליון ציבורי ──────────────────────────────────────────────── */
.pnav { display: flex; align-items: center; gap: 20px; padding: 18px clamp(16px, 4vw, 48px); position: relative; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 30px; }
.brand img { border-radius: 50%; background: var(--surface); }
.brand b { color: var(--accent); }
.pnav nav { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pnav nav > a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.pnav nav > a:not(.btn):hover { color: var(--ink); }

/* ─── הרשמה / כניסה ──────────────────────────────────────────────────── */
.auth { display: flex; justify-content: center; padding: 10px 16px 60px; }
.auth-card { width: min(520px, 100%); background: var(--surface); border: var(--border); border-radius: 28px; padding: 26px clamp(18px, 4vw, 36px) 30px; text-align: center; backdrop-filter: blur(6px); }
.auth-card.wide { width: min(760px, 100%); }
.auth-av { margin: -10px auto 6px; height: 210px; width: auto; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); }
.auth-card h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; }
.lead { color: var(--muted); font-size: 18px; margin: 8px 0 18px; }

/* קוד כיתה + סיסמת תמונות */
.code-form { align-items: center; }
.code-in { font-family: var(--digits); font-size: 40px !important; letter-spacing: 10px; text-align: center; text-transform: uppercase; max-width: 340px; }
.names { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 10px 0 16px; }
.name-btn { width: 100%; min-height: 64px; border-radius: 16px; border: var(--border); background: var(--surface); color: var(--ink); font-size: 20px; font-weight: 700; cursor: pointer; }
.name-btn:hover { background: var(--accent); color: var(--accent-ink); }
.pic-slots { display: flex; justify-content: center; gap: 14px; margin: 6px 0 18px; }
.pic-slots span { width: 74px; height: 74px; border-radius: 18px; border: 3px dashed var(--slot); display: flex; align-items: center; justify-content: center; font-size: 44px; }
.pic-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; max-width: 600px; margin: 0 auto 10px; }
.pic { aspect-ratio: 1; border-radius: 18px; border: var(--border); background: var(--surface); font-size: 44px; cursor: pointer; }
.pic:active { transform: scale(.94); background: var(--accent); }

/* ─── מי מתרגל היום ──────────────────────────────────────────────────── */
.who { max-width: 1100px; margin: 0 auto; padding: 18px 24px 60px; min-height: 100vh; box-sizing: border-box; }
.who-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.who-acts { margin-inline-start: auto; display: flex; gap: 10px; }
.who-acts .btn { white-space: nowrap; }
.who-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: end; margin-top: 4vh; }
.who-main { min-width: 0; }
.who h1 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 5vw, 64px); margin: 10px 0 6px; }
.who-sub { color: var(--muted); font-size: 19px; margin: 0 0 26px; }
.kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.kid > button, .kid > summary { width: 100%; box-sizing: border-box; list-style: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 14px; background: var(--surface); border: var(--border); border-radius: 26px; color: var(--ink); transition: transform .12s; }
.kid > summary::-webkit-details-marker { display: none; }
.kid > button:hover, .kid > summary:hover { transform: translateY(-4px); }
.kid-ava { width: 96px; height: 96px; border-radius: 50%; background: var(--accent-3); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.kid-name { font-family: var(--display); font-size: 28px; }
.kid-meta { color: var(--muted); font-size: 15px; }
/* טופס ההוספה הפתוח: כרטיס רחב אחד, הכפתור והטופס זה לצד זה */
.kid-add[open] { grid-column: 1 / -1; display: grid; grid-template-columns: 220px minmax(0, 1fr); background: var(--surface); border: var(--border); border-radius: 26px; overflow: hidden; }
.kid-add[open] > summary { background: transparent; border: 0; border-radius: 0; justify-content: center; border-inline-end: var(--border); }
.kid-add[open] > summary:hover { transform: none; }
.kid-add .form { margin: 0; padding: 24px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; align-items: end; background: transparent; }
.kid-add .form label { margin: 0; }
.kid-add .form .seg { grid-column: 1 / -1; margin: 0; }
.kid-add .form > .btn { grid-column: 1 / -1; justify-self: start; min-width: 200px; }
.who-av { height: 380px; width: auto; justify-self: center; pointer-events: none; }
@media (max-width: 900px) {
  .who-body { grid-template-columns: 1fr; margin-top: 0; }
  .who-av { display: none; }
}
@media (max-width: 600px) {
  .kid-add[open] { grid-template-columns: 1fr; }
  .kid-add[open] > summary { border-inline-end: 0; border-bottom: var(--border); }
  .kid-add .form { grid-template-columns: 1fr; padding: 18px; }
  .kid-add .form > .btn { justify-self: stretch; }
  .who-acts { gap: 6px; }
  .who-acts .btn { padding-inline: 14px; font-size: 15px; }
}

/* ─── דף הבית (נחיתה) ────────────────────────────────────────────────── */
.land main { overflow-x: clip; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; max-width: 1280px; margin: 0 auto; padding: 20px clamp(16px, 4vw, 48px) 40px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6vw, 84px); line-height: .98; }
.hero p.lead { font-size: 21px; max-width: 34ch; margin: 18px 0 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-facts { display: flex; gap: 18px; margin-top: 22px; color: var(--muted); font-size: 15px; flex-wrap: wrap; }
.hero-facts span::before { content: "✦ "; color: var(--accent); }
.stage { position: relative; min-height: 560px; }
.stage .av { position: absolute; bottom: 0; inset-inline-start: -30px; height: 500px; width: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); z-index: 1; }
.demo { position: absolute; top: 40px; inset-inline-end: 0; width: 370px; background: rgba(8,6,36,.86); border: 2px solid #5b52c9; border-radius: 26px; padding: 18px 18px 14px; z-index: 2; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.demo .lm { display: grid; grid-template-columns: repeat(6, 46px); grid-auto-rows: 48px; justify-content: center; direction: ltr; font-family: var(--digits); font-size: 36px; }
.lm span { display: flex; align-items: center; justify-content: center; }
.lm .c { font-size: 17px; color: var(--carry); align-items: flex-end; }
.lm .ul { border-bottom: 3px solid currentColor; }
.lm .dim { opacity: .55; }
.lm .hl { color: var(--accent); }
.lm .slot { border: 3px dashed var(--slot); border-radius: 10px; margin: 4px; color: var(--slot); font-size: 26px; }
.demo .say { margin-top: 12px; background: var(--paper); color: var(--paper-ink); border-radius: 18px 18px 4px 18px; padding: 12px 14px; font-size: 16px; min-height: 74px; }
.demo .say b { color: var(--accent-3); }
.pop { animation: pop .35s ease-out; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }

.sec { max-width: 1180px; margin: 0 auto; padding: 70px clamp(16px, 4vw, 40px); }
.sec h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; max-width: 22ch; }
.sec .sub { color: var(--muted); font-size: 19px; margin-top: 10px; max-width: 60ch; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.feat { background: var(--surface); border: var(--border); border-radius: 26px; padding: 22px 22px 24px; position: relative; overflow: hidden; }
.feat img { height: 150px; width: auto; margin: -6px auto 8px; }
.feat h3 { font-family: var(--display); font-weight: 400; font-size: 26px; }
.feat p { color: var(--muted); margin-top: 6px; }
.worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.world { border-radius: 22px; overflow: hidden; min-height: 230px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; text-decoration: none; }
.world b { font-size: 22px; position: relative; z-index: 1; }
.world span { position: relative; z-index: 1; font-size: 14px; }
.world img { position: absolute; top: 8px; inset-inline-end: 8px; height: 150px; width: auto; }
.w-space { background: radial-gradient(circle at 70% 20%, #3d2ca6, #0e0c33); color: #fff; font-family: 'Secular One'; }
.w-notebook { background-color: #fbfdff; background-image: linear-gradient(#cfe0f5 1px, transparent 1px), linear-gradient(90deg, #cfe0f5 1px, transparent 1px); background-size: 20px 20px; color: #14287a; font-family: 'Playpen Sans Hebrew'; border: 2px solid #9fb3e6; }
.w-city { background: linear-gradient(#7fd3ff 60%, #ffd77a 60%); color: #1d2340; font-family: 'Fredoka'; border: 4px solid #1d2340; }
.w-comic { background-color: #eaf2fb; background-image: radial-gradient(rgba(0,150,214,.3) 1.6px, transparent 1.7px); background-size: 10px 10px; color: #1a2350; font-family: 'Karantina', 'Rubik'; border: 2.5px solid #1a2350; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.panel { background: var(--surface); border: var(--border); border-radius: 26px; padding: 26px; }
.ticks { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.ticks li { padding-inline-start: 30px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--ok); font-weight: 900; }
.fact-card { background: linear-gradient(135deg, #ff7a1a, #ffb02e); color: #1b0f00; border-radius: 22px; padding: 20px 22px; font-size: 18px; }
.fact-card b { display: block; font-size: 19px; margin-bottom: 4px; }
.faq details { background: var(--surface); border: var(--border); border-radius: 18px; padding: 16px 20px; margin-top: 12px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.faq p { color: var(--muted); margin-top: 8px; }
.foot { text-align: center; color: var(--muted); padding: 40px 16px 30px; font-size: 14px; border-top: 1px solid var(--line); }
.foot nav { display: flex; justify-content: center; gap: 18px; margin-bottom: 10px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .hero, .split { grid-template-columns: 1fr; }
  .stage { min-height: 460px; }
  .stage .av { height: 400px; }
  .feats { grid-template-columns: 1fr; }
  .worlds { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .pnav { padding: 12px 14px; gap: 10px; }
  .pnav nav { gap: 8px; flex-wrap: nowrap; }
  .pnav nav > a:not(.btn) { display: none; }
  .pnav .btn { padding: 8px 14px; min-height: 40px; font-size: 15px; white-space: nowrap; }
  .pnav .btn-ghost[href$="class.php"] { display: none; }
  .brand { font-size: 24px; }
  .brand img { width: 34px; height: 34px; }
}
@media (max-width: 560px) {
  .demo { position: relative; width: 100%; top: 0; }
  .stage .av { position: relative; height: 300px; margin: 0 auto; }
  .stage { min-height: 0; display: flex; flex-direction: column-reverse; }
  .row2 { grid-template-columns: 1fr; }
  .pic-grid { grid-template-columns: repeat(4, 1fr); }
  .worlds { grid-template-columns: 1fr; }
}
[hidden] { display: none !important; }

/* מקצועות בדף הבית */
.subjects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 10px; padding-bottom: 10px; }
.subj { border-radius: 26px; padding: 22px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; color: #17134a; min-height: 170px; }
.subj span { font-size: 44px; }
.subj b { font-family: var(--display); font-weight: 400; font-size: 32px; }
.subj small { font-size: 16px; line-height: 1.45; }
.s-math { background: linear-gradient(135deg, #ffd23f, #ff9f2e); }
.s-en { background: linear-gradient(135deg, #7af0c8, #3da5ff); }
.s-sci { background: linear-gradient(135deg, #c9c2ff, #8f7cff); }
@media (max-width: 760px) { .subjects { grid-template-columns: 1fr; } .subj { min-height: 0; } }

/* רקעים מאוירים לעולמות (ChatGPT של רוני) — שכבה קבועה מתחת לתוכן, עם הכהיה לקריאות */
[data-theme="space"] body::before { background-image: linear-gradient(rgba(14,12,51,.55), rgba(14,12,51,.78)), url('../img/bg/space3.webp'); background-size: cover; background-position: center top; }
[data-theme="space"] body::after { opacity: .35; }
[data-theme="city"] body::before { background-image: linear-gradient(rgba(198,236,255,.55), rgba(255,255,255,.75) 70%), url('../img/bg/city.webp'); background-size: cover; background-position: center bottom; }

/* ─── דסקטופ: טופס + איור גדול (לא "עמודת נייד" באמצע מסך ענק) ─── */
.auth-art { display: none; }
@media (min-width: 1000px) {
  .auth-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(460px, 560px); gap: 48px; align-items: center; max-width: 1320px; margin: 0 auto; padding: 20px 48px 60px; min-height: calc(100vh - 90px); }
  .auth-split .auth-card { width: 100%; }
  .auth-split .auth-card .auth-av { display: none; }
  .auth-art { display: flex; flex-direction: column; gap: 26px; }
  .auth-art img { width: 100%; max-width: 640px; border-radius: 32px; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
  .auth-art h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 3.2vw, 50px); line-height: 1.05; }
  .auth-art ul { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 19px; color: var(--muted); }
  .auth-art li::before { content: "✦ "; color: var(--accent); }
  .brand { font-size: 34px; }
  .brand img { width: 56px; height: 56px; }
  .pnav { padding: 20px 48px; }
}

/* שבר אמיתי: מונה, קו, מכנה (assets/js/app/frac.js) — בכל עמוד */
.fr { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.05; margin: 0 .14em; font-size: .82em; direction: ltr; unicode-bidi: isolate; }
.fr b { font-weight: inherit; padding: 0 .16em .07em; border-bottom: .09em solid currentColor; min-width: .7em; text-align: center; }
.fr i { font-style: normal; padding: .07em .16em 0; text-align: center; }

/* ═══ המותג "שלבים" (21.10.2026): המילה גדולה, ומתחת "עם אבישי ונעמי" (או "המסע של <שם>" באפליקציה). צבע לפי עולם ═══ */
.bw { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1; }
.bw b { font: 700 1em/1 'Fredoka', 'Rubik', sans-serif; color: #ffd23f; text-shadow: 0 1px 0 #ff9a2e, 0 2px 0 #f2606a, 0 3px 0 #b8325e; }
.bw small { font: 500 12px/1.15 'Rubik', sans-serif; color: var(--muted); white-space: nowrap; }
[data-theme="space"][data-mode="light"] .bw b { color: #ff6b4f; text-shadow: 0 2px 0 #f2557d, 0 3px 0 #b8325e; }
[data-theme="notebook"] .bw b { font-family: 'Playpen Sans Hebrew', 'Rubik', sans-serif; font-weight: 800; color: #14287a; text-shadow: none; border-bottom: 4px solid #ffb648; padding-bottom: 1px; }
[data-theme="city"] .bw b { color: #ffffff; -webkit-text-stroke: 2px #1d2340; paint-order: stroke fill; text-shadow: 0 3px 0 #1d2340; }
[data-theme="comic"] .bw b { font-family: 'Karantina', 'Rubik', sans-serif; font-size: 1.3em; color: #e6007e; -webkit-text-stroke: 1.5px #1a2350; paint-order: stroke fill; text-shadow: none; }
