/* ============================================================
   Kriya / Simanim Trainer — torahtech.co/kriya
   ============================================================ */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif; color: #1f2937; margin: 0; background: #f7f8fb; }

a { color: #1C47A5; }

/* ── HERO ──────────────────────────────────────────────────── */
.kriya-hero {
  background: linear-gradient(135deg, #1C47A5 0%, #5E90E3 60%, #6ec1e4 100%);
  color: #fff;
  padding: 70px 24px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.kriya-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.10), transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(255,255,255,.08), transparent 45%);
  pointer-events: none;
}
.kriya-hero-inner { max-width: 900px; margin: 0 auto; position: relative; }
.hebrew-title {
  font-family: 'Frank Ruhl Libre', 'Times New Roman', serif;
  font-size: 88px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 8px;
  line-height: 1;
  direction: rtl;
  text-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.kriya-hero h1 {
  font-size: 38px;
  font-weight: 300;
  letter-spacing: 2px;
  margin: 0 0 16px;
}
.kriya-subtitle {
  font-size: 17px;
  line-height: 1.55;
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto 28px;
  opacity: .94;
}
.kriya-cta {
  display: inline-block;
  background: #fff;
  color: #1C47A5;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  font-size: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.kriya-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0,0,0,.22); }
.kriya-cta:active { transform: translateY(0); }
.kriya-cta-secondary { margin-top: 14px; }
.kriya-cta-secondary a {
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .5px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.kriya-cta-secondary a:hover { color: #fff; border-color: #fff; }
.kriya-hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 36px; font-weight: 700; letter-spacing: 1px; }
.stat-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: .85; margin-top: 4px; }

/* ── INTRO ─────────────────────────────────────────────────── */
.kriya-intro { background: #fff; padding: 60px 24px; }
.kriya-intro-inner { max-width: 760px; margin: 0 auto; }
.kriya-intro h2 { font-size: 26px; font-weight: 600; color: #1C47A5; margin: 0 0 18px; letter-spacing: .5px; }
.kriya-intro p { font-size: 16px; line-height: 1.75; color: #4b5563; margin: 0 0 14px; }
.kriya-intro strong { color: #1C47A5; font-weight: 700; }

/* ── GAME ──────────────────────────────────────────────────── */
.kriya-game { padding: 50px 16px 80px; background: #f7f8fb; }
.kriya-game-inner { max-width: 880px; margin: 0 auto; }

/* HUD */
.kriya-hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: #fff;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(28,71,165,.06);
  margin-bottom: 18px;
}
.hud-item { text-align: center; }
.hud-label { display: block; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #6b7280; font-weight: 600; }
.hud-value { display: block; font-size: 24px; font-weight: 700; color: #1C47A5; margin-top: 2px; }

/* Mode selector */
.kriya-modes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.mode-btn {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 12px 10px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: all .15s ease;
  box-shadow: 0 1px 4px rgba(28,71,165,.05);
}
.mode-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(28,71,165,.10); }
.mode-btn.active { border-color: #5E90E3; background: linear-gradient(135deg, #5E90E3, #1C47A5); color: #fff; }
.mode-btn.active .mode-sub { color: rgba(255,255,255,.85); }
.mode-btn.mode-learn { border-color: #d1d5db; }
.mode-btn.mode-learn.active { background: linear-gradient(135deg, #0d9488, #064e3b); border-color: #0d9488; }
.mode-title { display: block; font-size: 13px; font-weight: 700; color: inherit; letter-spacing: .3px; }
.mode-sub { display: block; font-size: 11px; color: #6b7280; margin-top: 3px; letter-spacing: .2px; }

/* Aliyah picker */
.kriya-aliyah-picker {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 1px 4px rgba(28,71,165,.05);
}
.kriya-aliyah-picker label { font-size: 13px; color: #374151; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kriya-aliyah-picker select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
}
.picker-status { font-size: 12px; color: #6b7280; }

/* CARD */
.kriya-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 28px 22px;
  box-shadow: 0 4px 24px rgba(28,71,165,.08);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.card-help {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s ease, color .12s ease, transform .12s ease;
  z-index: 1;
}
.card-help:hover { background: #5E90E3; color: #fff; transform: scale(1.08); }
.card-help[hidden] { display: none; }
.card-peek {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: #78350f;
}
.card-peek strong { color: #92400e; }
.card-peek .peek-he { font-family: 'Frank Ruhl Libre', serif; font-weight: 600; direction: rtl; }
.card-peek .peek-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fcd34d;
  color: #78350f;
  margin-right: 8px;
  vertical-align: 2px;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.card-ref { font-weight: 700; color: #1C47A5; }
.card-parsha { font-style: italic; }

.card-pasuk {
  font-family: 'Frank Ruhl Libre', 'SBL BibLit', 'Times New Roman', serif;
  font-size: 36px;
  line-height: 2.2;
  text-align: center;
  direction: rtl;
  color: #111827;
  padding: 18px 8px;
  background: linear-gradient(180deg, #fafbff 0%, #f1f5fb 100%);
  border-radius: 12px;
  margin-bottom: 16px;
  word-spacing: 4px;
}
.card-pasuk .target {
  background: #fef3c7;
  border-radius: 6px;
  padding: 0 4px;
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}
.card-pasuk .clickable {
  cursor: pointer;
  border-radius: 6px;
  transition: background .12s ease;
}
.card-pasuk .clickable:hover { background: #e0e7ff; }
.card-pasuk .clickable.correct { background: #bbf7d0; outline: 2px solid #16a34a; outline-offset: 2px; }
.card-pasuk .clickable.wrong { background: #fecaca; outline: 2px solid #dc2626; outline-offset: 2px; }

.card-prompt {
  text-align: center;
  font-size: 15px;
  color: #4b5563;
  margin: 4px 0 14px;
  letter-spacing: .3px;
}
.card-prompt strong { color: #1C47A5; font-weight: 700; font-size: 17px; }

.card-choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.choice-btn {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 12px 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  text-align: center;
  transition: all .12s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.25;
}
.choice-btn .choice-he {
  font-family: 'Frank Ruhl Libre', 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 600;
  color: #1f2937;
  direction: rtl;
  line-height: 1.15;
}
.choice-btn .choice-en {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #6b7280;
}
.choice-btn.correct .choice-he { color: #14532d; }
.choice-btn.correct .choice-en { color: #15803d; }
.choice-btn.wrong .choice-he { color: #7f1d1d; }
.choice-btn.wrong .choice-en { color: #b91c1c; }
.choice-btn:hover:not(:disabled) { border-color: #5E90E3; background: #f0f6ff; transform: translateY(-1px); }
.choice-btn.correct { background: #bbf7d0; border-color: #16a34a; color: #14532d; }
.choice-btn.wrong { background: #fecaca; border-color: #dc2626; color: #7f1d1d; }
.choice-btn:disabled { cursor: default; }

.card-feedback {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  min-height: 22px;
  padding: 4px 0 8px;
  line-height: 1.5;
}
.card-feedback.success { color: #16a34a; font-weight: 600; }
.card-feedback.error { color: #dc2626; font-weight: 600; }
.card-feedback .feedback-detail { display: block; color: #6b7280; font-weight: 400; font-size: 13px; margin-top: 4px; }
.feedback-audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  background: linear-gradient(135deg, #5E90E3, #1C47A5);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(28,71,165,.2);
  transition: transform .12s ease;
}
.feedback-audio-btn:hover { transform: translateY(-1px); }

.card-actions { display: flex; justify-content: center; gap: 10px; margin-top: auto; }
.btn-primary, .btn-secondary {
  border: none;
  border-radius: 10px;
  padding: 11px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .5px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary { background: linear-gradient(135deg, #5E90E3, #1C47A5); color: #fff; box-shadow: 0 2px 10px rgba(28,71,165,.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(28,71,165,.32); }
.btn-secondary { background: #f3f4f6; color: #1f2937; }
.btn-secondary:hover { background: #e5e7eb; }

/* TROPE LEGEND */
.trope-legend {
  margin-top: 22px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 1px 4px rgba(28,71,165,.05);
}
.trope-legend summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #1C47A5;
  text-transform: uppercase;
  padding: 4px 0;
}
.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.legend-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  background: #fafbff;
}
.legend-item .legend-glyph {
  font-family: 'Frank Ruhl Libre', 'Times New Roman', serif;
  font-size: 30px;
  text-align: center;
  display: block;
  direction: rtl;
  line-height: 1;
  margin-bottom: 4px;
}
.legend-item .legend-name-he { font-size: 18px; font-weight: 600; color: #1f2937; text-align: center; display: block; font-family: 'Frank Ruhl Libre', serif; direction: rtl; line-height: 1.2; }
.legend-item .legend-name { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #6b7280; text-align: center; display: block; margin-top: 2px; }
.legend-item .legend-type {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
}
.legend-item .legend-type.disjunctive { background: #fee2e2; color: #b91c1c; }
.legend-item .legend-type.conjunctive { background: #dbeafe; color: #1e40af; }
.legend-item .legend-type-wrap { text-align: center; }

/* RESET */
.kriya-reset { text-align: center; margin-top: 14px; }
.btn-link { background: none; border: none; color: #9ca3af; font-size: 12px; cursor: pointer; text-decoration: underline; font-family: inherit; }
.btn-link:hover { color: #dc2626; }

/* ── FAQ ───────────────────────────────────────────────────── */
.kriya-faq { background: #fff; padding: 70px 24px; }
.kriya-faq-inner { max-width: 820px; margin: 0 auto; }
.kriya-faq h2 { font-size: 28px; font-weight: 300; color: #1C47A5; text-align: center; letter-spacing: 2px; margin: 0 0 36px; text-transform: uppercase; }
.kriya-faq .faq-item { border-bottom: 1px solid #e5e7eb; }
.kriya-faq .faq-item:first-of-type { border-top: 1px solid #e5e7eb; }
.kriya-faq .faq-question { display: flex; justify-content: space-between; align-items: center; padding: 20px 10px; cursor: pointer; user-select: none; }
.kriya-faq .faq-question:hover { background: #f9fafb; }
.kriya-faq .faq-question h3 { font-size: 15px; font-weight: 700; letter-spacing: .5px; color: #1C47A5; margin: 0; }
.kriya-faq .faq-question .arrow { font-size: 16px; color: #5E90E3; transition: transform .3s ease; margin-left: 16px; }
.kriya-faq .faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.kriya-faq .faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; padding: 0 10px; }
.kriya-faq .faq-item.open .faq-answer { max-height: 800px; padding: 0 10px 22px; }
.kriya-faq .faq-answer p { font-size: 15px; line-height: 1.75; color: #4b5563; margin: 0 0 12px; }
.kriya-faq .faq-answer a { color: #5E90E3; text-decoration: none; }
.kriya-faq .faq-answer a:hover { text-decoration: underline; }

/* ── AUTH (sign-in CTA + signed-in banner) ─────────────────── */
.auth-root { margin-bottom: 16px; }
.auth-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f0f6ff 0%, #dbeafe 100%);
  color: #1C47A5;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.auth-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(28,71,165,.12); }
.auth-cta .auth-icon { font-size: 14px; }
.auth-signed-in {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: #065f46;
  flex-wrap: wrap;
}
.auth-signed-in .auth-icon {
  background: #059669;
  color: #fff;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.auth-signed-in .auth-email { flex: 1; min-width: 0; }
.auth-signed-in .auth-email strong { color: #064e3b; }
.auth-signout {
  background: transparent;
  border: 1px solid #6ee7b7;
  color: #047857;
  border-radius: 999px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .3px;
}
.auth-signout:hover { background: #d1fae5; }

/* Modal */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
}
.auth-modal.open { display: flex; }
.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
}
.auth-modal-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 28px 26px 22px;
  width: min(420px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
}
.auth-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px 8px;
}
.auth-modal-close:hover { color: #1f2937; }
.auth-modal-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1C47A5;
  margin: 0 0 8px;
}
.auth-modal-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 16px;
}
.auth-modal-card label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 6px;
}
.auth-modal-card input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .12s ease;
}
.auth-modal-card input[type="email"]:focus { border-color: #5E90E3; }
.auth-submit {
  width: 100%;
  margin-top: 14px;
  background: linear-gradient(135deg, #5E90E3, #1C47A5);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .4px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(28,71,165,.28); }
.auth-tip {
  font-size: 12px;
  color: #6b7280;
  margin-top: 12px;
  line-height: 1.5;
}
.auth-tip strong { color: #1C47A5; }
.auth-status {
  margin-top: 12px;
  min-height: 20px;
  font-size: 13px;
  color: #047857;
  font-weight: 600;
  text-align: center;
}

/* ── LEARN MODE ────────────────────────────────────────────── */
.learn-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 6px 0;
}
.learn-card-body .learn-counter {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 8px;
}
.learn-card-body .learn-glyph {
  font-family: 'Frank Ruhl Libre', 'Times New Roman', serif;
  font-size: 58px;
  line-height: 1.05;
  direction: rtl;
  background: linear-gradient(180deg, #fafbff 0%, #f1f5fb 100%);
  border-radius: 12px;
  padding: 18px 28px;
  margin-bottom: 14px;
  color: #111827;
}
.learn-card-body .learn-name-he {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 34px;
  font-weight: 600;
  direction: rtl;
  color: #1C47A5;
  line-height: 1.15;
}
.learn-card-body .learn-name-en {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6b7280;
  margin-top: 4px;
}
.learn-card-body .learn-type-chip {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  margin: 12px 0 14px;
}
.learn-card-body .learn-type-chip.disjunctive { background: #fee2e2; color: #b91c1c; }
.learn-card-body .learn-type-chip.conjunctive { background: #dbeafe; color: #1e40af; }
.learn-card-body .learn-desc {
  font-size: 15px;
  line-height: 1.65;
  color: #374151;
  max-width: 540px;
  margin: 0 0 16px;
}
.learn-card-body .learn-rarity {
  font-size: 12px;
  color: #6b7280;
  font-style: italic;
  margin-bottom: 18px;
}
.learn-card-body .learn-audio-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid #5E90E3;
  color: #1C47A5;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .5px;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 8px;
  transition: background .12s ease, transform .12s ease;
}
.learn-card-body .learn-audio-cta:hover { background: #f0f6ff; transform: translateY(-1px); }
.learn-card-body .learn-quiz-cta {
  display: inline-block;
  background: linear-gradient(135deg, #5E90E3, #1C47A5);
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 0 2px 10px rgba(28,71,165,.18);
}
.learn-card-body .learn-quiz-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(28,71,165,.28); }
.learn-nav-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}
.learn-nav-row button {
  flex: 1;
  background: #f3f4f6;
  border: none;
  border-radius: 10px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
  color: #1f2937;
  cursor: pointer;
  transition: background .12s ease;
}
.learn-nav-row button:hover:not(:disabled) { background: #e5e7eb; }
.learn-nav-row button:disabled { opacity: .45; cursor: not-allowed; }

/* Study popup before a round (triggered after 2 consecutive misses) */
.card-study-prelude {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #6ee7b7;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
  text-align: center;
}
.card-study-prelude .prelude-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: #059669;
  color: #fff;
  margin-bottom: 10px;
}
.card-study-prelude .prelude-he {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 30px;
  font-weight: 600;
  color: #064e3b;
  direction: rtl;
  line-height: 1.15;
}
.card-study-prelude .prelude-en {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #047857;
  margin-top: 2px;
}
.card-study-prelude .prelude-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #065f46;
  margin: 10px 0 12px;
}
.card-study-prelude .prelude-cta {
  background: #059669;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 20px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .4px;
  cursor: pointer;
  font-family: inherit;
}
.card-study-prelude .prelude-cta:hover { background: #047857; }

/* ── MOBILE ────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .kriya-hero { padding: 50px 16px 60px; }
  .hebrew-title { font-size: 60px; }
  .kriya-hero h1 { font-size: 26px; letter-spacing: 1px; }
  .kriya-subtitle { font-size: 15px; }
  .kriya-hero-stats { gap: 28px; }
  .stat-num { font-size: 28px; }
  .kriya-intro { padding: 40px 18px; }
  .kriya-intro h2 { font-size: 21px; }
  .kriya-modes { grid-template-columns: repeat(2, 1fr); }
  .kriya-hud { grid-template-columns: repeat(4, 1fr); padding: 10px; }
  .hud-value { font-size: 18px; }
  .hud-label { font-size: 9px; }
  .kriya-card { padding: 18px 16px; }
  .card-help { top: 10px; right: 10px; }
  .card-pasuk { font-size: 26px; line-height: 2; padding: 14px 6px; }
  .card-choices { grid-template-columns: 1fr; }
  .learn-card-body .learn-glyph { font-size: 44px; padding: 14px 18px; }
  .learn-card-body .learn-name-he { font-size: 28px; }
  .kriya-faq { padding: 50px 18px; }
}
