/* ═══════════════════════════════════════════════════════
   EyeFocus — styles.css
   שפה עיצובית: Light Premium Wellness (רגוע-פרימיום)
   פונטים: Assistant (body/UI) + Rubik (כותרות/אקצנט).
   פלטה: Soft Blue-Grey / Sky Blue / Healing Mint-Teal / Coral-Rose.
═══════════════════════════════════════════════════════ */
/* טעינת הגופנים הועברה ל-<head> ב-index.html (preconnect + link לא-חוסם רינדור,
   QA audit / Lighthouse 2026-07-15) — @import כאן היה יוצר שרשרת בקשות טורית
   שחוסמת רינדור. ראו הערה מקבילה ב-index.html. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
































:root {
  /* ── Core Color Palette ── */
  --bg: #F0F4F8;              /* Soft Blue-Grey — רקע בסיס */
  --white: #FFFFFF;           /* Pristine White — כרטיסיות/פאנלים */
  --border: #E2E8F0;
  --circle-bg: #E1E8F0;
  --circle-rim: #B9C6D6;
  --text: #1E293B;            /* Deep Slate — טקסט מוביל */
  /* Muted Slate — טקסט משני. הוכהה מ-#64748B ל-#526079 (QA audit 2026-07-15):
     הגרסה הקודמת נתנה רק 4.31:1 מול הרקע --bg — מתחת לסף WCAG AA (4.5:1).
     המשתמש עדיין נראה "מוחלש" אבל קריא בבטחה בכל מקום שמשתמש במשתנה הזה
     (פוטר, טולטיפים, day-cell, ותוויות משניות נוספות). */
  --muted: #526079;
  --gold: #e8b800;
  --gold-dark: #c09600;
  --green: #14B8A6;           /* Healing Mint-Teal — נקודות ריפוי/תקין */
  --yellow-m: #d4a000;
  --orange-m: #e07020;
  --red-m: #F43F5E;           /* Active Coral-Rose — מיקוד/חולשה */
  --accent: #0EA5E9;          /* Serene Sky Blue — מותג ראשי */
  --accent-dark: #0284C7;
  --accent-soft: rgba(14,165,233,0.08);
  /* גרסאות כהות של accent/green, מיועדות אך ורק לשימוש כצבע טקסט (QA audit
     2026-07-15, אושר ע"י לאה): --accent ו---green עצמם (2.77:1 / 2.49:1 על
     רקע לבן) נשארים ללא שינוי לכל שימוש אחר — כפתורים, רקעים, גבולות, badges —
     כדי לא לגעת במיתוג. המשתנים האלה משמשים רק את ~20 המקומות שבהם accent/green
     שימשו כצבע טקסט על רקע בהיר, וכעת עומדים ב-WCAG AA (4.5:1+). */
  --accent-text: #0369A1;      /* 5.93:1 על לבן, 5.37:1 על --bg */
  --green-text: #0F766E;       /* 5.47:1 על לבן, 4.95:1 על --bg */
  /* אותו דבר עבור --red-m כטקסט (התגלה תוך כדי אותה בדיקה — 3.67:1 על לבן,
     3.32:1 על --bg — נכנס לאותה קטגוריה שלאה אישרה): */
  --red-text: #BE123C;         /* 6.29:1 על לבן, 5.69:1 על --bg */
  /* --yellow-m/--orange-m כטקסט — התגלה ב-results.js setGK() (el.style.color
     inline, עוקף את המחלקות) בזמן תיקון חפיפת הכוכבים (2026-07-15): */
  --yellow-text: #8A6000;      /* 5.59:1 על לבן, 5.06:1 על --bg */
  --orange-text: #A04C17;      /* 5.93:1 על לבן, 5.37:1 על --bg */
































  /* ── טוקני מותג נוספים ── */
  --navy: #1E293B;
  --indigo-deep: #1E1B4B;     /* כפתור משני כהה */
  --teal: #14B8A6;
  --cyan: #0EA5E9;
  --azure: #0EA5E9;
  --violet: #1E1B4B;
  --gradient-brand: linear-gradient(135deg, #0EA5E9 0%, #14B8A6 100%);
  --gradient-focus: linear-gradient(90deg, #0EA5E9 0%, #14B8A6 100%);
  /* גרדיאנט הכפתור הראשי (Primary CTA): Sky Blue → Healing Teal */
  --gradient-cta: linear-gradient(135deg, #0EA5E9 0%, #14B8A6 100%);
































  /* ── טיפוגרפיה ── */
  --font-body: 'Assistant', sans-serif;
  --font-ui: 'Rubik', sans-serif;
































  /* ── הילות ריפוי (Healing Glows) — עמומות, לא ניאון ── */
  --glow-primary: 0 0 25px rgba(14,165,233,0.2), 0 4px 12px rgba(14,165,233,0.15);
  --glow-accent: 0 0 25px rgba(20,184,166,0.25), 0 4px 12px rgba(20,184,166,0.15);
































  /* ── זכוכית רגועה (Glassmorphic Panels) ── */
  --glass-bg: rgba(255,255,255,0.85);
  --glass-border: rgba(255,255,255,0.6);
}
































html, body {
  height: 100%; width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
































.t-dark { color: var(--text); }
.t-accent { color: var(--accent-text); }
































/* ══ SCREENS ══ */
.screen { display: none; position: absolute; inset: 0; flex-direction: column; }
.screen.active {
  display: flex;
  animation: screenFadeIn 350ms cubic-bezier(0.16, 1, 0.3, 1);
}
/* מעבר מסכים — פיזיקלי, יוקרתי ורגוע (סטנדרט Apple: 350ms, easing חלק) */
@keyframes screenFadeIn {
  from { opacity: 0; transform: translateY(6px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
































/* ══ AUTH ══ */
#auth {
  background: var(--bg);
  align-items: center; justify-content: center;
  overflow-y: auto; padding: 28px 24px 40px;
}
.auth-top { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 28px; }
.auth-logo-img, .intro-logo-img {
  border-radius: 18px; display: block;
  object-fit: contain; background: #fff;
  box-shadow: 0 4px 20px rgba(42,117,208,0.12); flex-shrink: 0;
}
.auth-logo-img { width: 170px; height: 170px; }
/* לוגו מלבני (אייקון + EyeFocus + by NeuPractix) — גובה אוטומטי לפי יחס הרוחב/גובה האמיתי של הקובץ, כדי שלא יהיה מתיחה/חתך */
.intro-logo-img { width: 230px; height: auto; }
.auth-top h1 { font-size: 24px; font-weight: 900; color: var(--text); text-align: center; line-height: 1.2; }
.auth-top h1 em { font-style: normal; color: var(--accent-text); }
.auth-top p { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.5; max-width: 260px; }
.beta-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(14,165,233,0.10); border: 1px solid rgba(14,165,233,0.25);
  color: var(--accent-dark); font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
}
































.name-input-row { width: 100%; max-width: 340px; display: flex; gap: 8px; margin-bottom: 20px; }
.auth-input {
  flex: 1; padding: 13px 16px; background: var(--white);
  border: 1.5px solid var(--border); border-radius: 14px; color: var(--text);
  font-family: var(--font-body); font-size: 15px; font-weight: 600; outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-user-select: auto; user-select: auto;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.auth-input::placeholder { color: var(--muted); font-weight: 400; }
.auth-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(42,117,208,0.1); }
.auth-input.err { border-color: var(--red-m); box-shadow: 0 0 0 3px rgba(244,63,94,0.1); }
































.auth-btn {
  /* שדרוג לסגנון "כפתור פעולה ראשי" — גרדיאנט מלא + טקסט כהה, כמו כפתור
     ה"מוכן — התחל" במסך הספירה (בקשת לאה 2026-07-15). נבדקה ניגודיות: טקסט
     --navy (#1E293B) על שני קצוות ה-gradient-cta נותן 5.27:1 (קצה כחול) /
     5.88:1 (קצה טורקיז) — עומד ב-WCAG AA (4.5:1). טקסט לבן על אותו רקע היה
     נותן רק ~2.5-2.8:1, לכן לא נעשה בו שימוש. זו הפעולה היחידה במסך הזה. */
  padding: 14px 18px; background: var(--gradient-cta); color: var(--navy);
  border: none; border-radius: 999px;
  font-family: var(--font-ui); font-size: 15px; font-weight: 900;
  cursor: pointer; white-space: nowrap;
  box-shadow: var(--glow-primary);
  transition: transform .12s, filter .15s; flex-shrink: 0;
}
.auth-btn:hover { filter: brightness(0.95); }
.auth-btn:active { transform: scale(0.96); }
































.err-msg {
  font-size: 12px; color: var(--red-text);
  margin-top: -14px; margin-bottom: 8px; padding-right: 4px;
  display: none; width: 100%; max-width: 340px;
}
.err-msg.show { display: block; }
































.section-label {
  width: 100%; max-width: 340px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
  color: var(--muted); text-transform: uppercase;
  margin-bottom: 10px; padding-right: 2px;
}
































.users-list { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 8px; }
.user-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--white); border: 1.5px solid var(--border); border-radius: 14px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.user-row:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(42,117,208,0.12); }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft); border: 1.5px solid rgba(42,117,208,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; color: var(--accent-text); flex-shrink: 0;
}
button.user-avatar { cursor: pointer; padding: 0; font-family: inherit; }
button.user-avatar:hover { filter: brightness(0.95); }
.user-info { flex: 1; }
.user-name { font-size: 14px; font-weight: 700; color: var(--text); }
.user-meta { font-size: 11px; color: var(--muted); margin-top: 1px; }
.user-arrow { font-size: 18px; color: var(--border); }
































.empty-state {
  width: 100%; max-width: 340px; text-align: center; padding: 28px 16px;
  background: var(--white); border: 1.5px dashed var(--border); border-radius: 14px;
  color: var(--muted); font-size: 13px; line-height: 1.6;
}
.empty-state .es-icon { font-size: 26px; margin-bottom: 8px; display: block; }
































.auth-toast {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  /* רקע כהה מ---red-m הרגיל, רק לתגית הזו (QA audit 2026-07-15): לבן על
     --red-m נתן רק 3.67:1 — מתחת לסף ה-WCAG AA. הגוון הזה (#BE123C, כבר
     קיים בפלטה כ-border-color ב-.dir-btn.hit-wrong) נותן 6.29:1, בלי לגעת
     ב-—red-m עצמו ובכל שאר המקומות שמשתמשים בו. */
  background: #BE123C; color: #fff; padding: 10px 20px; border-radius: 10px;
  font-size: 13px; font-weight: 700; z-index: 999; opacity: 0;
  transition: opacity .25s; white-space: nowrap; pointer-events: none;
}
.auth-toast.show { opacity: 1; }
/* טקסט כהה במקום לבן על --green (QA audit 2026-07-15): לבן נתן רק 2.49:1;
   --navy על --green נותן 5.88:1 (כמו ב-.auth-btn/.start-btn וכו'). */
.auth-toast.success { background: var(--green); color: var(--navy); }
































/* ══ USER TOPBAR ══ */
.user-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: var(--white);
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.ut-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  /* טקסט כהה במקום לבן — ראו הערת ניגודיות ב-.auth-btn (QA audit 2026-07-15) */
  font-size: 14px; font-weight: 900; color: var(--navy); flex-shrink: 0;
}
.ut-name { flex: 1; font-size: 13px; font-weight: 700; color: var(--text); }
.ut-logout {
  font-size: 12px; color: var(--muted); background: none; border: none;
  font-family: var(--font-body); cursor: pointer; padding: 4px 8px;
  border-radius: 8px; transition: background .15s;
}
.ut-logout:hover { background: var(--bg); }
/* כפתורי ייצוא/מחיקת נתונים (QA audit 2026-07-15 — GDPR Art.15/17, CCPA) */
.ut-icon-btn {
  font-size: 14px; background: none; border: none; cursor: pointer;
  padding: 4px 7px; border-radius: 8px; transition: background .15s; flex-shrink: 0;
  line-height: 1;
}
.ut-icon-btn:hover { background: var(--bg); }
































/* ══ INTRO ══ */
#intro { background: var(--bg); }
.intro-body {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; padding: 20px 28px 36px; overflow-y: auto;
}
.intro-explain { text-align: center; font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 300px; }
.intro-warning { font-size: 12px; color: var(--muted); text-align: center; max-width: 280px; }
































.glasses-note {
  width: 100%; max-width: 340px; background: #fffbea;
  border: 1.5px solid #e8d800; border-radius: 14px; padding: 11px 14px;
  display: flex; align-items: center; gap: 10px;
}
.gn-icon { font-size: 20px; }
.gn-text { font-size: 13px; color: #7a6800; line-height: 1.4; }
.gn-text strong { color: #5a4a00; }
































.preview-circle {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--circle-bg); border: 5px solid var(--circle-rim);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.1), 0 4px 16px rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 4px; }
.preview-e { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; }
































.info-cards { display: flex; gap: 10px; width: 100%; max-width: 340px; }
.info-card {
  flex: 1; background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 8px; text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.info-card .ic-icon { font-size: 18px; margin-bottom: 4px; }
.info-card .ic-txt { font-size: 11px; color: var(--muted); line-height: 1.4; }
































.start-btn {
  /* שדרוג לסגנון "כפתור פעולה ראשי" — גרדיאנט מלא + טקסט כהה (בקשת לאה
     2026-07-15), ראו הערת ניגודיות מפורטת ב-.auth-btn. זו הפעולה העיקרית
     במסך, לכן צל חזק (glow-primary) כדי שתישאר הכי בולטת. */
  width: 100%; max-width: 340px; padding: 18px;
  background: var(--gradient-cta); color: var(--navy);
  border: none; border-radius: 999px;
  font-size: 17px; font-weight: 900; font-family: var(--font-ui);
  cursor: pointer; box-shadow: var(--glow-primary);
  transition: transform .12s, filter .2s; flex-shrink: 0;
}
.start-btn:hover { filter: brightness(0.95); }
.start-btn:active { transform: scale(0.97); }
.start-btn:disabled { background: var(--border); color: var(--muted); border-color: var(--border); box-shadow: none; cursor: default; }
































/* בועה משנית ושקטה יותר מ-.start-btn — זו פעולה משלימה (צפייה בתוצאה קודמת),
   לא הפעולה הראשית של המסך (בקשת לאה 2026-07-15). */
.history-badge {
  display: flex; align-items: center; gap: 10px;
  background: rgba(14,165,233,0.08); border: 1.5px solid rgba(14,165,233,0.25);
  border-radius: 999px; padding: 10px 16px; width: 100%; max-width: 340px;
  box-shadow: none; cursor: pointer;
  transition: transform .1s, background .15s;
}
.history-badge:hover { background: rgba(14,165,233,0.14); }
.history-badge:active { transform: scale(0.98); }
.hb-icon { font-size: 18px; }
.hb-text { flex: 1; }
.hb-title { font-size: 12px; font-weight: 700; color: var(--accent-text); }
.hb-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.hb-arrow { font-size: 18px; color: var(--accent-text); margin-right: auto; }
































/* מד רצף ימים — בולט במסך הבית כדי לעודד חזרה יומית */
.streak-badge {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  background: linear-gradient(90deg, #FFF3E0, #FFE8CC); border: 1px solid #FFD8A8;
  border-radius: 14px; padding: 10px 16px; width: 100%; max-width: 340px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.sb-icon { font-size: 20px; }
.sb-text { font-size: 13px; font-weight: 800; color: #B54708; }
































/* ══ TEST ══ */
#test { background: var(--bg); }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px 12px; background: var(--white);
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.tb-group { text-align: center; }
.tb-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.tb-val { font-size: 20px; font-weight: 900; color: var(--text); margin-top: 1px; }
.tb-val.blue { color: var(--accent-text); }
































.step-dots { display: flex; justify-content: center; gap: 7px; padding: 10px 20px 4px; flex-shrink: 0; flex-wrap: wrap; }
.step-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: background .3s, transform .2s; }
.step-dot.done { background: var(--green); }
.step-dot.active { background: var(--accent); transform: scale(1.3); }
































/* פס התקדמות רציף — במתכוון בלי לחשוף שלבים למשתמש (FLOW אחיד) */
.progress-track { width: 100%; max-width: 320px; margin: 0 auto; padding: 10px 20px 4px; height: 6px; background: var(--border); border-radius: 6px; overflow: hidden; flex-shrink: 0; box-sizing: content-box; }
.progress-fill { height: 100%; width: 0%; background: var(--gradient-cta, var(--accent)); border-radius: 6px; transition: width .5s ease; }
































.size-label { text-align: center; font-size: 12px; color: var(--muted); letter-spacing: 0.5px; padding: 2px 20px 6px; flex-shrink: 0; }
































.arena { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; }
































.vision-circle {
  position: relative; border-radius: 50%; box-sizing: border-box;
  background: var(--circle-bg); border: 7px solid var(--circle-rim);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 3px 10px rgba(0,0,0,0.13), 0 8px 32px rgba(0,0,0,0.1);
  transition: border-color .15s;
  max-width: 100%;
}
.vision-circle.flash-ring {
  border-color: var(--accent);
  box-shadow: inset 0 3px 10px rgba(0,0,0,0.13), 0 0 0 4px rgba(42,117,208,0.18), 0 8px 32px rgba(0,0,0,0.1);
}
.e-grid { display: grid; opacity: 0; transition: opacity .04s; }
.e-cell { display: flex; align-items: center; justify-content: center; }
.circle-feedback {
  position: absolute; inset: -7px; border-radius: 50%;
  border: 7px solid transparent; pointer-events: none;
  opacity: 0; transition: opacity .15s;
}
.circle-feedback.correct { border-color: var(--green); opacity: 1; }
.circle-feedback.wrong { border-color: var(--red-m); opacity: 1; }
































.dir-btn {
  position: absolute; width: 50px; height: 50px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--gold-dark); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(200,160,0,0.3);
  transition: transform .1s, background .1s;
  -webkit-tap-highlight-color: transparent; padding: 0;
}
.dir-btn:active { transform: scale(0.87) !important; }
.dir-btn.hit-correct { background: var(--green); border-color: #0F8F80; }
.dir-btn.hit-wrong { background: var(--red-m); border-color: #BE123C; }
.btn-e { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; }
































.instruction {
  flex-shrink: 0; text-align: center; font-size: 14px; color: var(--muted);
  padding: 10px 20px 24px; line-height: 1.5;
  background: var(--white); border-top: 1px solid var(--border);
}
.instruction strong { color: var(--text); }
































/* ══ COUNTDOWN ══ */
.countdown-overlay {
  position: absolute; inset: 0; z-index: 20; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
}
.cd-instruction { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 0 32px; text-align: center; }
.cd-instruction-icon { font-size: 48px; }
.cd-instruction-title { font-size: 20px; font-weight: 900; color: var(--text); line-height: 1.25; }
.cd-instruction-body { font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 280px; }
.cd-start-btn {
  /* טקסט כהה במקום לבן — ראו הערת ניגודיות ב-.auth-btn (QA audit 2026-07-15) */
  padding: 16px 48px; background: var(--gradient-cta); color: var(--navy);
  border: none; border-radius: 18px;
  font-family: var(--font-ui); font-size: 18px; font-weight: 900;
  cursor: pointer; box-shadow: var(--glow-primary);
  transition: transform .12s; animation: popIn .4s ease;
}
.cd-start-btn:active { transform: scale(0.95); }
.countdown-num { font-size: 96px; font-weight: 900; color: var(--accent-text); line-height: 1; animation: popIn .35s ease; }
@keyframes popIn { from { transform: scale(1.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.countdown-hint { font-size: 14px; color: var(--muted); text-align: center; line-height: 1.5; }
.countdown-go {
  font-size: 72px; font-weight: 900; color: var(--green-text);
  animation: popIn .3s ease; cursor: pointer; padding: 12px 32px;
  border-radius: 20px; background: rgba(20,184,166,0.10);
  border: 2.5px solid rgba(20,184,166,0.3); user-select: none;
}
.countdown-go-hint { font-size: 13px; color: var(--green-text); opacity: .7; animation: fadeIn .5s ease .3s both; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: .7 } }
































.fixation-cross {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 18px; font-weight: 300; color: #8a90a8; opacity: 0;
  transition: opacity .1s; pointer-events: none; z-index: 5;
  line-height: 1; user-select: none; letter-spacing: -2px;
}
































/* ══ RESULTS ══ */
#results { align-items: stretch; padding: 0; background: var(--bg); overflow-y: auto; }
































/* כל מסכי האפליקציה בדסקטופ: נראים כמו "מסך טלפון" ממורכז, לא נמרחים על
   כל הרוחב. כל .screen הוא position:absolute; inset:0 — הטכניקה התקנית
   למרכוז קופסה כזו היא max-width + margin:auto (הדפדפן פותר את
   left/right האוטומטיים סביב הרוחב הקבוע, גם כששניהם מוגדרים ל-0 —
   over-constrained resolution לפי CSS2.1 §10.3.7). ב-mobile (מתחת ל-640px)
   אין שינוי בפועל כי הרוחב הזמין ממילא קטן מ-480px. הרקע האפור מסביב
   מבדיל חזותית בין "מסגרת הטלפון" לשאר המסך. */
@media (min-width: 640px) {
  html, body { background: #d7dbe3; }
  .screen {
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 0 0 1px var(--border), 0 12px 60px rgba(0,15,71,0.16);
  }
}
































.res-dash-header {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 16px 20px 14px; display: flex; align-items: center; gap: 14px; flex-shrink: 0;
}
.rdh-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.rdh-title { font-size: 24px; font-weight: 800; font-family: var(--font-ui); color: var(--text); }
.rdh-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.rdh-badge { margin-right: auto; padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 900; flex-shrink: 0; }
































.gauge-card {
  background: var(--white); margin: 12px 14px 0;
  border-radius: 18px; border: 1px solid var(--border);
  padding: 16px 16px 14px; display: flex; flex-direction: column;
  align-items: center; gap: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.gauge-card-title { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
/* אייקוני "מה זה?" ליד מדדי התוצאות + ההסבר שנפתח בלחיצה */
.info-row { display: flex; align-items: center; justify-content: center; gap: 5px; }
.info-btn {
  width: 15px; height: 15px; flex-shrink: 0; border-radius: 50%;
  border: 1.3px solid var(--muted); background: none; color: var(--muted);
  font-size: 10px; font-style: italic; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 0; cursor: pointer; transition: transform .1s, border-color .15s, color .15s;
}
.info-btn:hover, .info-btn:focus-visible { border-color: var(--accent); color: var(--accent-text); }
.info-btn:active { transform: scale(0.9); }
/* כשמדד מציג "לא נבדק" — מדגישים בעדינות את כפתור "מה זה?" עם פעימה,
   כדי שהמשתמש ילחץ ויקבל הסבר, במקום לחשוב שזו תקלה. */
.info-btn-hint {
  border-color: var(--accent); color: var(--accent-text);
  animation: infoHintPulse 1.8s ease-in-out infinite;
}
@keyframes infoHintPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(42,117,208,0.35); }
  50% { box-shadow: 0 0 0 5px rgba(42,117,208,0); }
}
.info-pop { font-size: 11.5px; line-height: 1.4; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 7px 10px; margin-top: 4px; text-align: start; }
.gauge-wrap { position: relative; width: 200px; height: 108px; }
#gaugeCanvas { position: absolute; top: 0; left: 0; }
/* המספר יושב מתחת לקשת/למחוג לגמרי (לא בתוכה) — כדי שהמחוג לא יעבור דרכו בשום אחוז */
.gauge-center { margin-top: -4px; text-align: center; white-space: nowrap; }
.gauge-pct { font-size: 30px; font-weight: 900; color: var(--text); line-height: 1; }
.gauge-lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }
.gauge-verdict { font-size: 13px; color: var(--muted); text-align: center; }
































.thresh-card {
  margin: 12px 14px 0; background: var(--white);
  border: 1.5px solid var(--border); border-radius: 16px; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.thresh-left { display: flex; align-items: center; gap: 10px; }
.thresh-icon { font-size: 22px; }
.thresh-title { font-size: 13px; font-weight: 700; color: var(--text); }
.thresh-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.thresh-val { font-size: 24px; font-weight: 900; color: var(--accent-text); }
































.game-kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 14px 0; }
.game-kpi {
  position: relative; min-height: 80px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 14px 12px 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04); text-align: center;
}
/* כוכבים בפינה השמאלית העליונה (RTL) — כדי לא להתנגש עם הטקסט המרכזי */
/* תוקן (בקשת לאה 2026-07-15): הכוכבים היו position:absolute בפינה, וקפצו מעל
   התווית/הערך המרוכזים בכרטיס. הוסר המיקום המוחלט — עכשיו זה ילד רגיל בטור
   ה-flex של .game-kpi, כך שהכוכבים תמיד יושבים מעל המלל ולא עליו. */
.gk-stars { font-size: 12px; letter-spacing: 1px; line-height: 1; min-height: 14px; }
.gk-label { font-size: 10px; font-weight: 800; font-family: var(--font-ui); letter-spacing: 0.5px; color: var(--muted); text-transform: uppercase; }
.gk-val { font-size: 22px; font-weight: 900; color: var(--text); line-height: 1; }
.gk-val-word { font-size: 15px; font-weight: 800; }
































.train-card {
  margin: 10px 14px 0; background: var(--white);
  border: 1.5px solid #b8e6c8; border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(20,184,166,0.08);
}
.train-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.train-icon { font-size: 20px; }
.train-title { font-size: 14px; font-weight: 900; color: var(--text); }
.train-teaser-text { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 12px; }
.train-cta-btn {
  /* שדרוג לסגנון "כפתור פעולה ראשי" — גרדיאנט מלא + טקסט כהה (בקשת לאה
     2026-07-15), ראו הערת ניגודיות מפורטת ב-.auth-btn. זו הפעולה העיקרית
     במסך התוצאות, לעומת .replay-btn המשני שנשאר בועה בהירה. */
  width: 100%; padding: 14px; background: var(--gradient-cta); color: var(--navy);
  border: none; border-radius: 999px;
  font-family: var(--font-body); font-size: 15px; font-weight: 900;
  cursor: pointer; box-shadow: var(--glow-primary);
  transition: transform .12s, filter .15s;
}
.train-cta-btn:hover { filter: brightness(0.95); }
.train-cta-btn:active { transform: scale(0.97); }
































/* ══ Light Premium Wellness — זכוכית רגועה + כותרות Rubik ══
   אפקט זכוכית רגועה ועדין על כל הפאנלים/כרטיסיות המרחפות באפליקציה. */
.gauge-card, .thresh-card, .game-kpi, .train-card,
.streak-badge, .lock-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-color: var(--glass-border);
}
/* .history-badge הוסר מהרשימה למעלה (בקשת לאה 2026-07-15): הכרטיס הזה עכשיו
   "בועה" כחולה ייעודית משלו (רקע/border כחולים רכים), לא כרטיס זכוכית לבן
   גנרי כמו השאר — אחרת ה-cascade היה דורס את הרקע/border שהוגדרו לו למעלה. */
.gauge-card-title, .thresh-title, .train-title,
.tb-label, .sb-text, .hb-title {
  font-family: var(--font-ui);
}
.thresh-title, .train-title { font-weight: 700; }
































.diag-rows { display: flex; flex-direction: column; gap: 10px; }
.diag-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: var(--bg); border-radius: 11px; }
.diag-row-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.diag-row-body { flex: 1; }
.diag-row-label { font-size: 10px; font-weight: 700; letter-spacing: 0.6px; color: var(--muted); text-transform: uppercase; }
.diag-row-val { font-size: 14px; font-weight: 700; color: var(--text); margin-top: 2px; line-height: 1.4; }
.diag-row-val.green { color: var(--green-text); }
.diag-row-val.orange { color: var(--orange-m); }
.diag-row-val.red { color: var(--red-text); }
































.rel-bar-bg { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 5px; }
.rel-bar-fill { height: 100%; border-radius: 3px; background: var(--accent); transition: width 1.2s ease; width: 0; }
































/* ══ BREAKDOWN ══ */
.breakdown-details {
  margin: 10px 14px 0; background: var(--white);
  border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden;
}
.breakdown-details summary {
  padding: 12px 14px; font-size: 13px; font-weight: 700; color: var(--muted);
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px;
}
.breakdown-details summary::before { content: '▶'; font-size: 10px; transition: transform .2s; }
.breakdown-details[open] summary::before { transform: rotate(90deg); }
.breakdown-rows { display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 12px; }
.brow {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 9px 14px;
  display: flex; align-items: center; gap: 10px;
}
.brow-label { font-size: 13px; font-weight: 700; flex: 1; }
.brow-score { font-size: 13px; font-weight: 900; flex-shrink: 0; min-width: 40px; text-align: left; }
.brow-bar-bg { flex: 1.8; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.brow-bar-fill { height: 100%; border-radius: 3px; width: 0; transition: width 1.1s ease; }
































.dash-btns { padding: 14px 14px 32px; display: flex; flex-direction: column; gap: 10px; }
/* בועה שקטה יותר מ-.train-cta-btn — "בדיקה חוזרת" היא פעולה משנית במסך
   התוצאות, לא הפעולה הראשית (בקשת לאה 2026-07-15). */
.replay-btn {
  width: 100%; padding: 13px; background: rgba(30,27,75,0.07); color: var(--indigo-deep);
  border: 1.5px solid rgba(30,27,75,0.22); border-radius: 999px;
  font-size: 14px; font-weight: 800; font-family: var(--font-ui);
  cursor: pointer; box-shadow: none;
  transition: transform .12s, background .15s;
}
.replay-btn:hover { background: rgba(30,27,75,0.12); }
.replay-btn:active { transform: scale(0.97); }
.home-link { font-size: 14px; color: var(--muted); text-align: center; background: none; border: none; font-family: var(--font-body); cursor: pointer; transition: transform .1s; }
.home-link:active { transform: scale(0.96); }
.recommended-tag {
  display: inline-block; font-size: 11px; font-weight: 900;
  background: var(--accent-soft); color: var(--accent-text);
  border: 1.5px solid rgba(42,117,208,0.2); border-radius: 999px;
  padding: 2px 8px; margin-inline-end: 6px; vertical-align: middle;
}
































/* קישור "תוצאות האבחון האחרון" ממסך תוכנית האימונים — נראה כמו כפתור/פיל קל
   כדי שיהיה ברור שהוא לחיץ (ולא רק טקסט אפור). */
.home-link-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 800; color: var(--accent-text);
  background: var(--accent-soft); border: 1.5px solid rgba(14,165,233,0.3);
  border-radius: 20px; padding: 8px 18px; text-align: center;
  font-family: var(--font-body); cursor: pointer; transition: transform .1s, background .15s;
}
.home-link-cta:hover { background: rgba(14,165,233,0.16); }
.home-link-cta:active { transform: scale(0.96); }
#training.dark-session .home-link-cta { color: #7DD3FC; background: rgba(125,211,252,0.1); border-color: rgba(125,211,252,0.35); }
#training.dark-session .home-link-cta:hover { background: rgba(125,211,252,0.18); }
































/* ══ TRAINING SCREEN — מודול נפרד ══ */
#training { background: var(--bg); }
.training-scroll {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 20px 40px;
}
#trainingContent { width: 100%; max-width: 380px; }
































.lock-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 20px; padding: 28px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06); text-align: center;
}
.lock-icon { font-size: 44px; }
.lock-icon .icon-inline { width: 72px; height: 72px; }
.lock-title { font-size: 20px; font-weight: 900; color: var(--text); }
.lock-body { font-size: 14px; color: var(--muted); line-height: 1.65; }
.lock-price {
  font-size: 15px; font-weight: 900; color: var(--green-text);
  background: rgba(20,184,166,0.08); border: 1.5px solid rgba(20,184,166,0.25);
  border-radius: 12px; padding: 8px 18px;
}
.lock-code-note {
  font-size: 12px; color: var(--muted); line-height: 1.6;
  background: var(--bg); border-radius: 12px; padding: 10px 14px; width: 100%;
}
.lock-code-note strong { color: var(--text); font-size: 13px; }
.restore-section {
  width: 100%; border-top: 1px dashed var(--border);
  padding-top: 14px; margin-top: 4px;
}
.restore-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; text-align: right; }
































/* ══ נגישות ══ */
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible,
.user-row:focus-visible, [role="button"]:focus-visible, .day-cell:focus-visible {
  outline: 3px solid rgba(42,117,208,0.45); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
































/* טקסט מוסתר חזותית — נגיש לקוראי מסך בלבד (labels/headings ללא שינוי עיצובי) */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
































/* history-badge הוא כפתור סמנטי — איפוס עיצוב ברירת המחדל של <button> */
.history-badge { font: inherit; text-align: inherit; color: inherit; }
































/* קישור הצהרת הנגישות בפוטר — הפוטר עצמו pointer-events:none, הקישור חייב היתר משלו */
.app-footer a.footer-link { pointer-events: auto; color: inherit; text-decoration: underline; }
































/* ══ CONSENT — הסכמה לתנאי שימוש ══ */
#consent { background: var(--bg); }
.consent-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 20px; padding: 24px 20px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.consent-title { font-size: 18px; font-weight: 900; color: var(--text); text-align: center; }
.consent-sub { font-size: 13px; color: var(--muted); text-align: center; }
.consent-scroll {
  max-height: 44vh; overflow-y: auto; font-size: 13px; line-height: 1.65;
  color: var(--text); background: var(--bg); border-radius: 12px; padding: 14px;
  border: 1px solid var(--border);
}
.consent-scroll p { margin-bottom: 10px; }
.consent-scroll a { color: var(--accent-text); font-weight: 700; }
.consent-danger {
  background: rgba(244,63,94,0.06); border: 1.5px solid rgba(244,63,94,0.25);
  border-radius: 10px; padding: 10px 12px; color: #8a1f1f;
}
.consent-check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12px; color: var(--text); line-height: 1.55; cursor: pointer;
}
.consent-check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
































/* ══ TRAINING — רמות, יומן, השוואה ══ */
.level-chip {
  padding: 7px 18px; border-radius: 20px; font-size: 14px; font-weight: 900;
}
.level-chip.lvl-0 { background: rgba(20,184,166,0.1); color: var(--green-text); border: 1.5px solid rgba(20,184,166,0.3); }
.level-chip.lvl-1 { background: rgba(212,160,0,0.1); color: var(--yellow-m); border: 1.5px solid rgba(212,160,0,0.3); }
.level-chip.lvl-2 { background: rgba(244,63,94,0.08); color: var(--red-text); border: 1.5px solid rgba(244,63,94,0.28); }
































.games-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.gp-item {
  display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  background: var(--bg); border-radius: 10px; padding: 9px 11px; color: var(--text);
}
































/* מד התקדמות אחוזים — משווה אימון ראשון מול אחרון */
.progress-trend {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--accent-soft); border-radius: 12px; padding: 8px 12px; width: 100%;
}
.pt-label { font-size: 11px; font-weight: 700; color: var(--muted); }
.pt-vals { font-size: 14px; font-weight: 900; color: var(--text); }
.pt-delta { font-size: 12px; font-weight: 800; color: var(--muted); }
.pt-delta.up { color: var(--green-text); }
































.day-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; width: 100%; }
.day-cell {
  aspect-ratio: 1; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; background: var(--bg); color: var(--muted);
  border: 1.5px solid var(--border); transition: transform .1s;
}
.day-cell:active { transform: scale(0.95); }
/* יום שהושלם — הילת ריפוי ירוקה עדינה (Healing Glow Accent) */
.day-cell.done { background: rgba(20,184,166,0.12); color: var(--green-text); border-color: rgba(20,184,166,0.35); box-shadow: var(--glow-accent); }
.day-cell.next { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent); animation: nextPulse 1.6s infinite; }
@keyframes nextPulse { 50% { box-shadow: 0 0 0 4px rgba(14,165,233,0.15); } }
































.done-today {
  width: 100%; background: rgba(20,184,166,0.08); border: 1.5px solid rgba(20,184,166,0.3);
  border-radius: 14px; padding: 14px; font-size: 14px; font-weight: 900; color: var(--green-text);
  line-height: 1.6;
}
.done-today span { font-size: 12px; font-weight: 400; color: var(--muted); }
































.cmp-headline { font-size: 15px; font-weight: 900; color: var(--green-text); text-align: center; }
.cmp-wrap { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.cmp-row { width: 100%; }
.cmp-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-align: right; }
.cmp-bars { display: flex; flex-direction: column; gap: 5px; }
.cmp-bar {
  height: 26px; border-radius: 8px; display: flex; align-items: center;
  padding: 0 10px; min-width: 90px; transition: width 1s ease;
}
.cmp-bar span { font-size: 11px; font-weight: 900; white-space: nowrap; }
.cmp-bar.old { background: var(--border); color: var(--muted); }
.cmp-bar.new { background: var(--accent-soft); color: var(--accent-text); border: 1.5px solid rgba(42,117,208,0.3); }
.cmp-bar.new.improved { background: rgba(20,184,166,0.12); color: var(--green-text); border-color: rgba(20,184,166,0.35); }
































.sum-rows { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.sum-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border-radius: 12px; padding: 10px 12px;
}
.sum-icon { font-size: 16px; }
.sum-name { flex: 1; font-size: 13px; font-weight: 700; color: var(--text); text-align: right; }
.sum-acc { font-size: 15px; font-weight: 900; }
.sum-detail { font-size: 11px; color: var(--muted); direction: ltr; }
































/* ══ TRAINING SESSION — מצב כהה (פלטת המשחקים) ══ */
#training.dark-session { background: #070F18; }
#training.dark-session .user-topbar { display: none; }
.tg-session { width: 100%; display: flex; flex-direction: column; gap: 12px; }
#training.dark-session .training-scroll { padding-top: 14px; }
































.tg-progress {
  text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: #415A77; text-transform: uppercase;
}
.tg-intro {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(224,225,221,0.1);
  border-radius: 18px; padding: 28px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.tg-intro-icon { font-size: 42px; }
.tg-intro-title { font-size: 20px; font-weight: 900; color: #E0E1DD; }
.tg-intro-goal { font-size: 12px; color: #F5B041; font-weight: 700; }
.tg-intro-points {
  font-size: 12px; font-weight: 700; color: #14B8A6;
  background: rgba(20,184,166,0.14); border-radius: 10px; padding: 5px 12px;
  display: inline-block;
}
.tg-intro-instr { font-size: 14px; color: #A0A5B5; line-height: 1.7; }
.tg-rest-count { font-size: 56px; font-weight: 900; color: #F5B041; line-height: 1; }
































.tg-hud { display: flex; align-items: center; justify-content: space-between; }
.tg-hud-name { font-size: 13px; font-weight: 900; color: #E0E1DD; }
.tg-hud-score { font-size: 14px; font-weight: 900; color: #A0A5B5; direction: ltr; }
.tg-hud-score .ok { color: #14B8A6; }
.tg-hud-score .err { color: #F43F5E; }
































.tg-timerbar { height: 5px; background: rgba(224,225,221,0.1); border-radius: 3px; overflow: hidden; }
.tg-timerfill { height: 100%; width: 100%; background: #F5B041; border-radius: 3px; }
































.tg-canvas-wrap { width: 100%; border-radius: 16px; overflow: hidden; border: 1px solid rgba(224,225,221,0.08); }
.tg-canvas-wrap canvas { display: block; touch-action: manipulation; }
































.tg-btn-row { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.tg-btn {
  flex: 1; max-width: 150px; padding: 15px 10px;
  background: rgba(224,225,221,0.06); color: #E0E1DD;
  border: 1.5px solid rgba(224,225,221,0.2); border-radius: 14px;
  font-family: var(--font-body); font-size: 15px; font-weight: 900;
  cursor: pointer; transition: transform .1s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.tg-btn:active { transform: scale(0.94); }
.tg-btn.tg-shape { font-size: 24px; }
.tg-btn.hit { background: rgba(20,184,166,0.25); border-color: #14B8A6; }
.tg-btn.miss { background: rgba(244,63,94,0.25); border-color: #F43F5E; }
































#training.dark-session .lock-card {
  background: rgba(255,255,255,0.02); border-color: rgba(224,225,221,0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
#training.dark-session .lock-title { color: #E0E1DD; }
#training.dark-session .lock-body, #training.dark-session .home-link { color: #A0A5B5; }
#training.dark-session .sum-row { background: rgba(224,225,221,0.05); }
#training.dark-session .sum-name { color: #E0E1DD; }
































/* כפתור האליפסה — משחק המנהרה */
.tg-ellipse-btn {
  max-width: 220px; display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 13px 10px 11px;
  border-color: rgba(245,176,65,0.55);
}
.tg-ellipse-btn span { font-size: 13px; color: #F5B041; }
.tg-ellipse-btn svg { display: block; }
































/* כפתורי גאבור — 4 כיוונים */
.tg-gabor-btn { max-width: 76px; padding: 10px 8px; display: flex; align-items: center; justify-content: center; }
.tg-gabor-btn canvas { border-radius: 50%; }
































/* ══ טיימליין מקטעים בתוך משחק (מצב כהה) — חוק ה-3x30 ══ */
.tg-segbar { display: flex; gap: 8px; width: 100%; direction: ltr; }
.tg-seg { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.tg-seg-track {
  width: 100%; height: 7px; background: rgba(224,225,221,0.10);
  border-radius: 4px; overflow: hidden;
}
.tg-seg-fill { height: 100%; width: 0%; background: #F5B041; border-radius: 4px; transition: width .2s linear; }
.tg-seg.done .tg-seg-fill { background: #14B8A6; }
.tg-seg.pulse .tg-seg-track { animation: segPulse .7s ease; }
@keyframes segPulse {
  0% { box-shadow: 0 0 0 0 rgba(20,184,166,0.7); }
  100% { box-shadow: 0 0 0 9px rgba(20,184,166,0); }
}
.tg-seg-label {
  font-size: 10px; font-weight: 800; color: #667088; letter-spacing: 0.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  transition: color .3s, transform .3s;
}
.tg-seg.done .tg-seg-label { color: #14B8A6; transform: scale(1.06); }
.tg-seg.pulse .tg-seg-label { animation: segLabelPop .7s ease; }
@keyframes segLabelPop {
  0% { transform: scale(1); } 45% { transform: scale(1.3); } 100% { transform: scale(1.06); }
}
/* נצנץ קטן שנורה מעל תחנה שהושלמה */
.tg-seg-sparkle {
  position: absolute; bottom: 100%; font-size: 13px; pointer-events: none;
  animation: sparkleRise .85s ease-out forwards;
}
@keyframes sparkleRise {
  0% { opacity: 0; transform: translateY(4px) scale(0.6); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-26px) scale(1.15); }
}
.tg-seg { position: relative; }
































/* ══ מסך "הישג קטן" (Micro-Milestone) בין מקטעים — תופס את שטח הבמה,
   חוסם מגע, וממתין ללחיצת "המשך" (במקום הפסקה כפויה עם טיימר) ══ */
.tg-stage { position: relative; }
.tg-milestone-overlay {
  position: absolute; inset: 0; z-index: 30; display: flex;
  align-items: center; justify-content: center; padding: 16px;
  background: rgba(7,15,24,0.9); backdrop-filter: blur(6px);
  border-radius: 16px; animation: milestoneFadeIn .25s ease;
}
@keyframes milestoneFadeIn { from { opacity: 0; } to { opacity: 1; } }
.tg-milestone-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(224,225,221,0.14);
  border-radius: 20px; padding: 28px 22px; text-align: center; max-width: 320px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  animation: milestonePop .35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes milestonePop { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.tg-milestone-title { font-size: 19px; font-weight: 900; color: #E0E1DD; line-height: 1.3; }
.tg-milestone-sub { font-size: 13px; color: #A0A5B5; line-height: 1.5; }
.tg-milestone-tag {
  font-size: 12px; font-weight: 800; color: #F5B041; background: rgba(245,176,65,0.12);
  border: 1px solid rgba(245,176,65,0.3); border-radius: 20px; padding: 4px 14px; margin-top: 2px;
}
.tg-milestone-btn { margin-top: 10px; min-width: 170px; }
































/* ══ ספירה לאחור בין משחקים (מצב כהה) ══ */
.tg-count-wrap {
  min-height: 46vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
}
.tg-count {
  font-size: 96px; font-weight: 900; color: #F5B041; line-height: 1;
  animation: popIn .35s ease;
}
.tg-count.go { color: #14B8A6; animation: popIn .3s ease; }
.tg-count-hint { font-size: 13px; color: #A0A5B5; }
































/* ══ מסך סיום יומי — גיימינג בהיר ══ */
.sum-card { gap: 10px; position: relative; overflow: hidden; }
.sum-day {
  font-size: 11px; font-weight: 900; letter-spacing: 1.5px; color: var(--muted);
  text-transform: uppercase;
}
.sum-medal { font-size: 38px; text-align: center; animation: medalPop .5s ease backwards; }
@keyframes medalPop { from { transform: scale(0) rotate(-20deg); } 60% { transform: scale(1.2); } to { transform: scale(1) rotate(0); } }
































/* קונפטי — חגיגה קצרה בסיום אימון */
.confetti-burst { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.confetti-piece {
  position: absolute; top: -10px; width: 8px; height: 14px; border-radius: 2px;
  animation: confettiFall 1.9s ease-in forwards;
}
@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg);   opacity: 1; }
  100% { transform: translateY(360px) rotate(340deg); opacity: 0; }
}
.sum-hero { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 2px; }
.stars { display: inline-flex; gap: 4px; direction: ltr; }
.star { color: #d8dce8; transition: color .3s; }
.star.on { color: #f0b400; text-shadow: 0 2px 10px rgba(240,180,0,0.35); }
.stars.lg .star { font-size: 42px; }
.stars.lg .star.on { animation: starPop .5s ease backwards; }
.stars.lg .star.on:nth-child(2) { animation-delay: .15s; }
.stars.lg .star.on:nth-child(3) { animation-delay: .3s; }
@keyframes starPop { from { transform: scale(0) rotate(-30deg); } 60% { transform: scale(1.25); } to { transform: scale(1); } }
.stars.sm .star { font-size: 13px; }
.sum-avg { font-size: 40px; font-weight: 900; color: var(--text); line-height: 1.1; }
.sum-avg-label { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 1px; }
.sum-praise { font-size: 15px; font-weight: 900; color: var(--accent-text); }
.sum-invite {
  font-size: 13px; color: var(--muted); line-height: 1.6;
  background: var(--accent-soft); border: 1px solid rgba(42,117,208,0.18);
  border-radius: 12px; padding: 10px 14px; width: 100%;
}
.reminder-link { color: var(--accent-text); font-weight: 700; }
































/* ══ צפייה בתוצאות יום שהושלם ══ */
.day-cell.done { cursor: pointer; transition: transform .12s, box-shadow .15s; }
.day-cell.done:hover { transform: scale(1.06); box-shadow: 0 2px 10px rgba(20,184,166,0.25); }
.day-detail {
  width: 100%; background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px;
  animation: fadeIn .25s ease;
}
.dd-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text); }
.dd-head strong { color: var(--accent-text); }
.dd-close {
  margin-right: auto; background: none; border: none; font-size: 14px;
  color: var(--muted); cursor: pointer; font-family: var(--font-body);
}
































/* ══ משחק טקסט רץ (RSVP) — מצב כהה ══ */
.tg-rsvp {
  min-height: 46vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 22px;
  border-radius: 16px; border: 1px solid rgba(224,225,221,0.08);
  background: #070F18; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: box-shadow .15s;
}
.tg-rsvp.hit { box-shadow: inset 0 0 0 3px rgba(20,184,166,0.6); }
.tg-rsvp.missf { box-shadow: inset 0 0 0 3px rgba(244,63,94,0.5); }
.tg-rsvp-word {
  font-size: 34px; font-weight: 700; color: #E0E1DD; line-height: 1.2;
  min-height: 44px; text-align: center; padding: 0 14px; transition: color .08s;
}
.tg-rsvp-word.target { color: #F5B041; text-shadow: 0 0 18px rgba(245,176,65,0.45); }
.tg-rsvp-hint { font-size: 12px; color: #A0A5B5; transition: opacity .6s; }
































/* ══ הנחיה קצרה בתחתית מסך המשחק (מצב כהה) ══ */
.tg-tagline {
  text-align: center; font-size: 19px; font-weight: 900; color: #F5B041;
  letter-spacing: 0.3px; padding: 10px 8px 4px; line-height: 1.3;
}
































/* ══ זכויות יוצרים — כל המסכים ══ */
.app-footer {
  position: fixed; bottom: 4px; left: 0; right: 0; z-index: 40;
  text-align: center; font-size: 10px; color: var(--muted); opacity: 1;
  pointer-events: none; font-family: var(--font-body);
}








/* ══ כפתור שיתוף — צף, נגיש מכל מסך ══ */
.share-fab {
  position: fixed; bottom: 64px; inset-inline-end: 16px; z-index: 500;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(14,165,233,0.35); cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.share-fab:hover { filter: brightness(1.08); }
.share-fab:active { transform: scale(0.94); }




/* ══ כפתור משוב — צף, מוערם מעל כפתור השיתוף ══ */
.feedback-fab {
  bottom: 120px;
  background: var(--green);
  box-shadow: 0 4px 14px rgba(20,184,166,0.35);
}

.install-fab {
  bottom: 176px;
  background: #6D5CE0;
  box-shadow: 0 4px 14px rgba(109,92,224,0.35);
  align-items: center;
  justify-content: center;
}


/* ══ מודל משוב ══ */
.fb-modal { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; padding: 20px; }
.fb-modal[hidden] { display: none; }
.fb-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.55); }
.fb-modal-card {
  position: relative; background: var(--white); border: 1.5px solid var(--border);
  border-radius: 20px; padding: 22px 20px; max-width: 380px; width: 100%;
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  animation: fadeIn .2s ease;
}
.fb-modal-title { font-size: 17px; font-weight: 900; color: var(--text); text-align: center; }
.fb-modal-sub { font-size: 13px; color: var(--muted); text-align: center; }
.fb-textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 12px; padding: 12px;
  font-family: var(--font-body); font-size: 14px; color: var(--text); resize: vertical; min-height: 100px;
}
.fb-textarea:focus { outline: none; border-color: var(--accent); }
.fb-modal-actions { display: flex; gap: 10px; }
.fb-modal-actions .auth-btn { flex: 1; }
.fb-btn-secondary {
  flex: 1; padding: 14px 18px; background: none; border: 1.5px solid var(--border);
  border-radius: 999px; font-family: var(--font-ui); font-size: 14px; font-weight: 700;
  color: var(--muted); cursor: pointer;
}
.fb-btn-secondary:hover { border-color: var(--muted); }

/* ══ קוד פרופיל בסרגל המשתמש ══ */
.code-display {
  font-family: monospace; font-size: 20px; font-weight: 900; letter-spacing: 1px;
  text-align: center; background: var(--bg); border: 1.5px dashed var(--border);
  border-radius: 12px; padding: 14px; color: var(--accent-dark);
}
/* במסך האימונים (מצב כהה, רקע כהה מאוד) הצבע הבהיר-יותר המקורי חוזר —
   שם הוא עומד בניגודיות מול הרקע השחור; var(--muted) המוכהה יהיה קשה לקריאה שם. */
#training.dark-session ~ .app-footer { color: #8b93a7; opacity: .75; }

/* == אווטאר משתמש: אימוג'י (תו Unicode) או תמונה מהמכשיר == */
.ut-avatar { border: none; cursor: pointer; padding: 0; overflow: hidden; position: relative; font-family: inherit; }
.ut-avatar img, .user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.ut-avatar .avatar-emoji, .user-avatar .avatar-emoji { font-size: 18px; line-height: 1; }

.avatar-modal-label { font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; margin-top: 4px; }
.avatar-emoji-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  max-height: 180px; overflow-y: auto;
}
.avatar-emoji-btn {
  font-size: 22px; line-height: 1; background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 6px 0; cursor: pointer; transition: border-color .15s, transform .1s;
}
.avatar-emoji-btn:hover { border-color: var(--accent); transform: scale(1.08); }
































/* ══ בורר שפה (מסך הכניסה) ══ */
.lang-picker {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  margin-bottom: 4px;
}
.lang-chip {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--card); color: var(--muted);
  transition: all .15s;
}
.lang-chip.on {
  border-color: var(--accent); color: var(--accent-text);
  background: var(--accent-soft); font-weight: 900;
}
































/* ══ בורר שפה — תפריט נפתח ══ */
.lang-dd {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted);
}
.lang-dd select {
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  padding: 5px 10px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--white); color: var(--text);
}
































/* אייקוני illustrated icons מותאמים במקום אמוג'י טקסט (בקשת לאה 2026-07) — נשמרים על אותו המבנה/אפקטים שהיו לאמוג'י. */
.icon-inline { width: 1em; height: 1em; object-fit: contain; vertical-align: -0.15em; }
.star-glyph { width: 1em; height: 1em; object-fit: contain; display: block; }
.gk-star-glyph { width: 12px; height: 12px; object-fit: contain; }
.rdh-icon-img { width: 26px; height: 26px; object-fit: contain; }
.sum-medal-img { width: 44px; height: 44px; object-fit: contain; }
.info-btn img { width: 11px; height: 11px; object-fit: contain; }
