/* ============================================================================
   Shared Verse — Recipient page slate redesign (Claude Design handoff,
   design_handoff_shared_verse_recipient/, 2026-05-29).

   Linked directly (NOT scanned by the CSS Builder). All design tokens come
   from extensions/index_new/styles.css (.theme-light / .theme-dark on .mv-root,
   data-palette='slate'). Everything here is scoped under .mv-root to stay
   isolated from the rest of the site.

   Two layers:
     1. Landing chrome  — .sl-*  (banner, sharer, note, verse card, auth,
        save-to-collection, footer). Mirrors shared-link.css.
     2. Practice session — .ps-* / .ss-*  (full-screen typing overlay). Mirrors
        practice-session.css + the .ss-* chrome. The 5 memorization methods are
        driven by the SAME engine JS (js_share_*); the tile/flip/choice/flash
        markup classes are re-skinned here to the cream/Newsreader look.
   ============================================================================ */

.sl-page-bg { background: var(--bg); }

/* Base — defensive (index_new defines .mv-root base too) */
.mv-root.sl-root { font-family: var(--font-sans); color: var(--text-1); -webkit-font-smoothing: antialiased; }
.mv-root.sl-root *, .mv-root.sl-root *::before, .mv-root.sl-root *::after { box-sizing: border-box; }

/* The engine toggles visibility by adding/removing the global .display-none
   utility. Our scoped layout rules (e.g. .mv-root .ps-page{display:flex},
   .mv-root .sl-coll-list{display:flex}) outrank a plain .display-none, which would
   pin those elements open. Make the utility authoritative inside .mv-root so the
   add/removeClass('display-none') toggles always win. Overlays shown via inline
   .css('display','flex') don't use this class, so they're unaffected. */
.mv-root .display-none { display: none !important; }
/* The score pill (and a few engine bits) toggle the display-none-important token,
   which is NOT defined in either stylesheet this page links — define it so the
   "0%" pill is actually hidden on a fresh visit. */
.mv-root .display-none-important { display: none !important; }

/* Alias the legacy global theme tokens that the SHARED Flip & Type / Flip & Choose
   engines reference in INLINE styles (the typing-hint box / choice label use
   background:var(--card-bg), color:var(--text-secondary), etc.). The slate system
   doesn't define those names; without these aliases they'd resolve from the global
   <head> theme block keyed to <html data-theme>, which mismatches a logged-out dark
   recipient (data-theme stays 'light') → a stark white hint box on the navy stage.
   var()-to-var() so they track .theme-light / .theme-dark automatically. */
.mv-root { --card-bg: var(--surface); --card-bg-alt3: var(--surface-2); --border-input: var(--border); --border-color: var(--border); --shadow-color: rgba(0,0,0,0.25); --text-primary: var(--text-1); --text-secondary: var(--text-2); --link-color: var(--text-2); }

/* ---------- Local page props (theme-aware + decorative) ----------
   Bespoke colors hoisted off hardcoded hex so the page is theme-aware.
     --sl-on-fill   white text sitting on a colored fill (accent / brand /
                    danger) — white in BOTH themes (do NOT use --brand-fg,
                    which flips dark).
     --sl-av-grad-b / --sl-prog-grad-b  the lighter stops of the avatar accent
                    gradient and the brand progress gradient (decorative, static). */
.mv-root.sl-root { --sl-on-fill: #FFFFFF; --sl-av-grad-b: #8FA7C2; --sl-prog-grad-b: #E8AA8C; }

/* The full-bleed landing column shell */
.mv-root .sl-page { background: var(--bg); color: var(--text-1); min-height: 100%; display: flex; flex-direction: column; font-family: var(--font-sans); }

/* The shared marketing nav + footer are flex children of .sl-page. Their base
   `margin: 0 auto` (from .nav / .container) makes auto cross-axis margins, which
   beat flex stretch and shrink-wrap+center the bar to its content width. Force
   them full-width so the nav logo sits hard-left and the footer background bleeds
   edge to edge — matching every other logged-out page (homepage, /join/, browse). */
.mv-root.sl-root > .sl-page > nav.nav,
.mv-root.sl-root > .sl-page > footer.footer { width: 100%; }

/* ============================================================================
   1. PROMO BANNER — now the shared single-source partial (extensions/pastor_banner/).
   ============================================================================ */

/* ============================================================================
   2. MAIN COLUMN
   ============================================================================ */
.mv-root .sl-main { flex: 1; display: flex; flex-direction: column; align-items: center; padding: var(--sp-16) var(--sp-6) var(--sp-20); min-height: 0; }
.mv-root .sl-col { width: 100%; max-width: 680px; display: flex; flex-direction: column; }
@media (max-width: 700px) { .mv-root .sl-main { padding: var(--sp-8) var(--sp-4) var(--sp-12); } }

/* ============================================================================
   3. EYEBROW + SHARER
   ============================================================================ */
.mv-root .sl-eyebrow { display: inline-flex; align-self: center; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); margin-bottom: var(--sp-5); }
.mv-root .sl-eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); animation: slPulse 1.8s ease-out infinite; }
@keyframes slPulse { 0% { box-shadow: 0 0 0 0 var(--brand-soft); } 70% { box-shadow: 0 0 0 6px rgba(194,94,63,0); } 100% { box-shadow: 0 0 0 0 rgba(194,94,63,0); } }

.mv-root .sl-sharer { display: flex; align-items: center; gap: var(--sp-4); justify-content: center; margin-bottom: var(--sp-6); }
.mv-root .sl-sharer-av { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--sl-on-fill); font-weight: 600; font-size: 17px; font-family: var(--font-serif); flex-shrink: 0; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--border); overflow: hidden; background: linear-gradient(135deg, var(--accent), var(--sl-av-grad-b)); }
.mv-root .sl-sharer-av img { width: 100%; height: 100%; object-fit: cover; }
.mv-root .sl-sharer-text { line-height: 1.3; }
.mv-root .sl-sharer-text .lab { display: block; font-size: 12px; color: var(--text-3); font-weight: 500; }
.mv-root .sl-sharer-text .name { display: block; font-family: var(--font-serif); font-size: 19px; font-weight: 600; color: var(--text-1); text-decoration: none; }
.mv-root .sl-sharer-text a.name:hover { color: var(--brand); }

/* ============================================================================
   4. PERSONAL NOTE
   ============================================================================ */
.mv-root .sl-note { position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-5) var(--sp-5) var(--sp-5) var(--sp-6); margin-bottom: var(--sp-6); overflow: hidden; }
.mv-root .sl-note::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
.mv-root .sl-note-lab { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.mv-root .sl-note-body { font-family: var(--font-serif); font-style: italic; font-size: 16px; line-height: 1.55; color: var(--text-2); }

/* ============================================================================
   5. VERSE CARD
   ============================================================================ */
.mv-root .sl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); overflow: visible; }
.mv-root .sl-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-6) var(--sp-6) var(--sp-4); }
.mv-root .sl-card-head > div:first-child { flex: 1; min-width: 0; }
.mv-root .sl-ref { font-family: var(--font-serif); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-1); line-height: 1.05; }
.mv-root .sl-ref-sub { font-size: 12px; color: var(--text-3); margin-top: 6px; display: flex; align-items: center; gap: 8px; }
@media (max-width: 480px) { .mv-root .sl-ref { font-size: 26px; } }

/* Translation switcher pill + dropdown */
.mv-root .sl-trans-wrap { position: relative; flex-shrink: 0; }
.mv-root .sl-trans { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); padding: 6px 11px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: border-color .15s; }
.mv-root .sl-trans:hover { border-color: var(--border-strong); }
.mv-root .sl-trans .chev { opacity: 0.5; transition: transform .2s; }
.mv-root .sl-trans-wrap.open .sl-trans .chev { transform: rotate(180deg); }
.mv-root .sl-trans-menu { display: none; position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-elev); padding: 6px; min-width: 150px; max-height: 280px; overflow-y: auto; }
.mv-root .sl-trans-wrap.open .sl-trans-menu { display: block; }
.mv-root .sl-trans-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--text-2); background: transparent; border: 0; padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; }
.mv-root .sl-trans-opt:hover { background: var(--surface-2); color: var(--text-1); }
.mv-root .sl-trans-opt.active { color: var(--brand); font-weight: 600; }
.mv-root .sl-trans-opt .code { font-family: var(--font-mono); font-size: 11px; }

/* Verse text */
.mv-root .sl-text-wrap { position: relative; margin: 0 var(--sp-6); }
.mv-root .sl-text { font-family: var(--font-serif); font-size: 19px; line-height: 1.72; color: var(--text-1); max-height: 340px; overflow-y: auto; padding: var(--sp-2) var(--sp-1) var(--sp-5); scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.mv-root .sl-text::-webkit-scrollbar { width: 8px; }
.mv-root .sl-text::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }
.mv-root .sl-text .vn { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--brand); vertical-align: 0.35em; margin: 0 4px 0 1px; }
.mv-root .sl-text .vn:first-child { margin-left: 0; }
.mv-root .sl-text-wrap.scrollable::after { content: ''; position: absolute; left: 0; right: 8px; bottom: 0; height: 48px; background: linear-gradient(to top, var(--surface), transparent); pointer-events: none; }

/* Social proof */
.mv-root .sl-proof { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-6); margin: 0 var(--sp-6) var(--sp-2); border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); }
.mv-root .sl-proof-avs { display: inline-flex; }
.mv-root .sl-proof-avs .a { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -8px; background-size: cover; }
.mv-root .sl-proof-avs .a:first-child { margin-left: 0; }
.mv-root .sl-proof strong { color: var(--text-1); font-weight: 600; }

/* Actions */
.mv-root .sl-actions { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-5) var(--sp-6) var(--sp-6); }
.mv-root .sl-begin { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--brand); color: var(--brand-fg); font-family: var(--font-sans); font-size: 16px; font-weight: 600; padding: 16px 24px; border: 1px solid transparent; border-radius: var(--radius-pill); cursor: pointer; transition: filter .15s, transform .12s, box-shadow .15s; box-shadow: 0 8px 22px -12px rgba(194,94,63,0.8); }
.mv-root .sl-begin:hover { filter: brightness(1.04); transform: translateY(-1px); }
.mv-root .sl-begin .ic { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.22); display: inline-flex; align-items: center; justify-content: center; }
.mv-root .sl-listen { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); color: var(--text-1); font-size: 14px; font-weight: 600; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius-pill); cursor: pointer; transition: border-color .15s, background .15s; white-space: nowrap; }
.mv-root .sl-listen:hover { border-color: var(--border-strong); background: var(--surface-2); }
.mv-root .sl-listen.playing { color: var(--brand); border-color: var(--brand); }
@media (max-width: 540px) { .mv-root .sl-actions { flex-direction: column; } .mv-root .sl-listen { width: 100%; justify-content: center; } }

/* ============================================================================
   6. LOGGED-OUT AUTH PROMPT + FORMS
   ============================================================================ */
.mv-root .sl-auth { margin-top: var(--sp-6); text-align: center; }
.mv-root .sl-auth-line { font-size: 14px; color: var(--text-3); margin-bottom: var(--sp-4); }
.mv-root .sl-auth-line strong { color: var(--text-2); font-weight: 600; }
.mv-root .sl-auth-btns { display: inline-flex; gap: var(--sp-3); }
.mv-root .sl-auth-btn { font-size: 14px; font-weight: 600; padding: 11px 26px; border-radius: var(--radius-pill); cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--text-1); transition: border-color .15s, background .15s; }
.mv-root .sl-auth-btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.mv-root .sl-auth-btn.solid { background: var(--accent); color: var(--sl-on-fill); border-color: transparent; }
.mv-root .sl-auth-btn.solid:hover { filter: brightness(1.06); }

/* Inline login/signup forms (re-skinned; keep #ids + .js- hooks) */
.mv-root .sl-form { max-width: 380px; margin: var(--sp-5) auto 0; text-align: left; }
.mv-root .sl-form-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.mv-root .sl-form-head .t { font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--text-1); }
.mv-root .sl-form-cancel { font-size: 13px; color: var(--text-3); cursor: pointer; background: transparent; border: 0; }
.mv-root .sl-form-cancel:hover { color: var(--text-1); }
.mv-root .sl-field { margin-bottom: var(--sp-3); }
.mv-root .sl-field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 5px; }
.mv-root .sl-input { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 13px; font-family: var(--font-sans); font-size: 15px; color: var(--text-1); transition: border-color .15s; outline: none; }
.mv-root .sl-input:focus { border-color: var(--brand); }
.mv-root .sl-err { font-size: 12px; color: var(--danger); margin-top: 4px; }
.mv-root .sl-form-submit { width: 100%; margin-top: 4px; background: var(--accent); color: var(--sl-on-fill); font-size: 15px; font-weight: 600; padding: 13px; border: 0; border-radius: var(--radius-pill); cursor: pointer; transition: filter .15s; }
.mv-root .sl-form-submit:hover { filter: brightness(1.06); }
.mv-root .sl-form-foot { text-align: center; margin-top: var(--sp-3); }
.mv-root .sl-form-foot a { font-size: 13px; color: var(--text-3); text-decoration: none; }
.mv-root .sl-form-foot a:hover { color: var(--text-1); }
.mv-root .sl-auth-errors { max-width: 380px; margin: 0 auto var(--sp-3); }
.mv-root .sl-auth-errors p { font-size: 13px; color: var(--danger); text-align: center; }

/* ============================================================================
   7. LOGGED-IN SAVE-TO-COLLECTION
   ============================================================================ */
.mv-root .sl-collection { margin-top: var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.mv-root .sl-collection-head { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-5); cursor: pointer; }
.mv-root .sl-collection-head .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mv-root .sl-collection-head .t { flex: 1; display: flex; flex-direction: column; }
.mv-root .sl-collection-head .title { font-size: 15px; font-weight: 600; color: var(--text-1); }
.mv-root .sl-collection-head .sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.mv-root .sl-collection-head .chev { color: var(--text-3); transition: transform .2s; }
.mv-root .js-chevron.rotated { transform: rotate(180deg); }
/* Body visibility is driven by the .display-none utility toggled in JS (same
   mechanism as the proven legacy collection script we reuse), not an .open class. */
.mv-root .sl-collection-body { padding: var(--sp-5); border-top: 1px solid var(--border); }
.mv-root .sl-coll-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--sp-3); }
.mv-root .sl-coll-list { display: flex; flex-direction: column; gap: 8px; }
.mv-root .sl-coll-item { display: flex; align-items: center; gap: var(--sp-3); padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s; }
.mv-root .sl-coll-item:hover { background: var(--surface-2); }
.mv-root .sl-coll-item.selected { border-color: var(--brand); background: rgba(194,94,63,0.06); }
.theme-dark.mv-root .sl-coll-item.selected, html[data-theme='dark'] .mv-root .sl-coll-item.selected { background: rgba(240,139,110,0.08); }
.mv-root .sl-coll-thumb { width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0; border: 1px solid var(--border); background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, transparent 6px 12px), linear-gradient(135deg, var(--accent-soft), var(--brand-soft)); object-fit: cover; }
.mv-root .sl-coll-item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mv-root .sl-coll-item .info .nm { font-size: 14px; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-root .sl-coll-item .info .ct { font-size: 12px; color: var(--text-3); }
.mv-root .sl-coll-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); flex-shrink: 0; position: relative; transition: border-color .15s, background .15s; display: inline-flex; align-items: center; justify-content: center; }
.mv-root .sl-coll-radio .js-check-icon { display: none; color: var(--brand-fg); }

/* ============================================================================
   8. VERSE LEADERBOARD — church "memorizing this together"
   ============================================================================ */
.mv-root .sl-board { margin-top: var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.mv-root .sl-board-head { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border); }
.mv-root .sl-board-head .ic { color: var(--brand); display: inline-flex; align-items: center; }
.mv-root .sl-board-head .t { font-size: 14px; font-weight: 700; color: var(--text-1); }
.mv-root .sl-board-list { padding: var(--sp-3); display: flex; flex-direction: column; gap: 2px; }
.mv-root .sl-board-row { display: flex; align-items: center; gap: var(--sp-3); padding: 8px 10px; border-radius: var(--radius-md); }
.mv-root .sl-board-row.you { background: var(--accent-soft); }
.mv-root .sl-board-row .rk { width: 18px; flex-shrink: 0; text-align: center; font-size: 13px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.mv-root .sl-board-row .nm { flex-shrink: 0; width: 104px; font-size: 13px; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-root .sl-board-row .nm .ytag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--brand); margin-left: 4px; }
.mv-root .sl-board-row .bar { flex: 1; height: 6px; border-radius: var(--radius-pill); background: var(--surface-2); overflow: hidden; }
.mv-root .sl-board-row .bar .fill { display: block; height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--accent), var(--brand)); }
.mv-root .sl-board-row .sc { flex-shrink: 0; width: 42px; text-align: right; font-size: 13px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.mv-root .sl-board-row .sc.done { color: var(--success); }
.mv-root .sl-board-gap { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0; }
.mv-root .sl-board-gap span { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); opacity: 0.45; }
.mv-root .sl-board-row.unranked .rk { color: var(--text-3); font-weight: 700; }
.mv-root .sl-board-cta { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 2px var(--sp-3) 4px; padding: 8px 10px; font-size: 12px; font-weight: 700; color: var(--brand); text-decoration: none; border-radius: var(--radius-md); }
.mv-root .sl-board-cta:hover { background: var(--accent-soft); }
.mv-root .sl-board-av { position: relative; width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
.mv-root .sl-board-av .ini { font-size: 10px; font-weight: 700; color: #fff; }
.mv-root .sl-board-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mv-root .sl-board-foot { padding: var(--sp-3) var(--sp-5) var(--sp-4); font-size: 12px; color: var(--text-3); text-align: center; border-top: 1px solid var(--border); }
@media (max-width: 480px) { .mv-root .sl-board-row .nm { width: 80px; } }
.mv-root .sl-coll-item.selected .sl-coll-radio { border-color: var(--brand); background: var(--brand); }
.mv-root .sl-coll-item.selected .sl-coll-radio .js-check-icon { display: block; }
.mv-root .sl-coll-or { display: flex; align-items: center; gap: var(--sp-4); margin: var(--sp-4) 0; font-size: 12px; color: var(--text-muted); }
.mv-root .sl-coll-or::before, .mv-root .sl-coll-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.mv-root .sl-coll-new { display: flex; align-items: center; gap: var(--sp-3); padding: 12px; border: 1px dashed var(--border-strong); border-radius: var(--radius-md); cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; transition: background .15s; }
.mv-root .sl-coll-new:hover { background: var(--accent-soft); }
.mv-root .sl-coll-new.selected { background: var(--accent-soft); border-style: solid; border-color: var(--accent); }
.mv-root .sl-coll-new .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); display: inline-flex; align-items: center; justify-content: center; }
.mv-root .sl-coll-newbox { margin-top: var(--sp-3); }
.mv-root .sl-coll-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mv-root .sl-coll-chip { font-size: 12px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 5px 10px; cursor: pointer; }
.mv-root .sl-coll-chip:hover { border-color: var(--brand); color: var(--brand); }
.mv-root .sl-coll-back { margin-top: 10px; font-size: 13px; color: var(--text-3); background: transparent; border: 0; cursor: pointer; }
.mv-root .sl-coll-back:hover { color: var(--text-1); }
.mv-root .sl-coll-continue { margin-top: var(--sp-5); width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: var(--brand-fg); font-size: 15px; font-weight: 600; padding: 14px; border: 0; border-radius: var(--radius-pill); cursor: pointer; transition: filter .15s, transform .12s; }
.mv-root .sl-coll-continue:hover { filter: brightness(1.04); transform: translateY(-1px); }
.mv-root .sl-coll-continue.opacity50 { opacity: 0.5; cursor: default; transform: none; }
.mv-root .sl-coll-err { font-size: 13px; color: var(--danger); text-align: center; margin-bottom: var(--sp-3); }

/* ============================================================================
   8. FOOTER
   ============================================================================ */
.mv-root .sl-footer { border-top: 1px solid var(--border); background: var(--bg-deep); padding: var(--sp-8) var(--sp-6); }
.mv-root .sl-footer-inner { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); }
.mv-root .sl-footer-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-serif); font-weight: 700; font-size: 15px; color: var(--text-2); white-space: nowrap; text-decoration: none; }
.mv-root .sl-footer-brand .logo { width: 22px; height: 22px; border-radius: 6px; background: var(--brand); color: var(--brand-fg); display: inline-flex; align-items: center; justify-content: center; }
.mv-root .sl-footer-copy { font-size: 12px; color: var(--text-muted); line-height: 1.5; max-width: 620px; text-align: right; }
@media (max-width: 640px) { .mv-root .sl-footer-inner { flex-direction: column; align-items: flex-start; gap: var(--sp-3); } .mv-root .sl-footer-copy { text-align: left; } }

/* ============================================================================
   9. STATE CARDS (verse not found / already added)
   ============================================================================ */
.mv-root .sl-state { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: var(--sp-12) var(--sp-8); }
.mv-root .sl-state-icon { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--sp-5); }
.mv-root .sl-state-icon.err { background: rgba(220,38,38,0.10); color: var(--danger); }
.mv-root .sl-state-icon.ok { background: var(--success-soft); color: var(--success); }
.mv-root .sl-state h1 { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: var(--text-1); margin-bottom: var(--sp-3); }
.mv-root .sl-state p { font-size: 15px; color: var(--text-3); line-height: 1.6; margin-bottom: var(--sp-5); max-width: 420px; }
.mv-root .sl-state-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: var(--brand-fg); font-size: 15px; font-weight: 600; padding: 13px 26px; border-radius: var(--radius-pill); text-decoration: none; }
.mv-root .sl-state-btn:hover { filter: brightness(1.04); }

/* ============================================================================
   10. PRACTICE SESSION — full-screen overlay (.js-practice-mode = .ps-page)
   ============================================================================ */
.mv-root .ps-page { position: fixed; inset: 0; z-index: 9000; background: var(--bg); color: var(--text-1); display: flex; flex-direction: column; font-family: var(--font-sans); }

/* Toolbar */
.mv-root .ps-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); padding: var(--sp-5) var(--sp-10); border-bottom: 1px solid var(--border); background: var(--bg); }
.mv-root .ps-tb-left, .mv-root .ps-tb-right { display: flex; align-items: center; gap: var(--sp-3); }
.mv-root .ps-tb-exit { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: color .12s, background .12s, border-color .12s; }
.mv-root .ps-tb-exit:hover { color: var(--text-1); border-color: var(--border-strong); }
.mv-root .ps-tb-ref { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 17px; font-weight: 600; color: var(--text-1); padding: 6px 14px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); white-space: nowrap; }
.mv-root .ps-tb-ref .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.mv-root .ps-tb-ref .trans { font-family: var(--font-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--text-3); background: var(--surface-2); padding: 3px 7px; border-radius: 4px; margin-left: 2px; }
.mv-root .ss-from { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--text-3); padding-left: var(--sp-3); margin-left: var(--sp-1); border-left: 1px solid var(--border); white-space: nowrap; }
.mv-root .ss-from .av { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--sl-on-fill); font-weight: 600; font-size: 11px; font-family: var(--font-serif); overflow: hidden; background: linear-gradient(135deg, var(--accent), var(--sl-av-grad-b)); flex-shrink: 0; }
.mv-root .ss-from .av img { width: 100%; height: 100%; object-fit: cover; }
.mv-root .ss-guest { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); border: 1px solid var(--border); padding: 5px 11px; border-radius: var(--radius-pill); }
.mv-root .ps-tb-stats { display: inline-flex; align-items: center; gap: var(--sp-5); }
.mv-root .ps-tb-stat { display: inline-flex; align-items: baseline; gap: 4px; font-size: 12px; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.mv-root .ps-tb-stat .v { font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--text-1); text-transform: none; letter-spacing: 0; }
.mv-root .ps-tb-stat .v .den { color: var(--text-3); font-weight: 500; }
.mv-root .ps-tb-stat.accuracy .v { font-style: italic; color: var(--brand); }
.mv-root .ps-tb-icon-btn { width: 36px; height: 36px; border-radius: 50%; background: transparent; border: 1px solid var(--border); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .12s; }
.mv-root .ps-tb-icon-btn:hover { color: var(--text-1); border-color: var(--border-strong); }

/* Progress bar */
.mv-root .ps-progress { height: 3px; background: transparent; position: relative; }
.mv-root .ps-progress .fill { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--sl-prog-grad-b)); transition: width .4s ease; width: 0%; }

/* Stage */
/* `safe center` centers a short verse but falls back to top-alignment when the
   passage is tall enough to overflow — without it, flex centering clips the top
   of long verses behind the toolbar and they can't be scrolled into view. */
.mv-root .ps-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: safe center; padding: var(--sp-16) var(--sp-10); position: relative; overflow-y: auto; }
.mv-root .ps-stage-meta { display: inline-flex; align-items: center; gap: var(--sp-3); font-size: 12px; color: var(--text-3); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin-bottom: var(--sp-8); }
.mv-root .ps-stage-meta .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); position: relative; }
.mv-root .ps-stage-meta .pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: var(--brand); opacity: 0.32; animation: psPulse 1.4s ease-out infinite; }
@keyframes psPulse { 0% { transform: scale(0.6); opacity: 0.4; } 100% { transform: scale(1.6); opacity: 0; } }
.mv-root .ps-stage-sub { font-size: 13px; color: var(--text-3); margin-top: var(--sp-3); text-align: center; }
.mv-root .ps-stage-sub .badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 4px; padding: 2px 8px; margin-right: 8px; }
.mv-root .ps-verse-wrap { width: 100%; max-width: 1080px; }
@media (max-width: 768px) { .mv-root .ps-toolbar { padding: 14px 16px; gap: 10px; flex-wrap: wrap; } .mv-root .ps-stage { padding: var(--sp-8) var(--sp-4); } .mv-root .ss-from { display: none; } .mv-root .ps-tb-stats { gap: 12px; } }

/* Helper */
.mv-root .ps-helper { margin-top: var(--sp-10); text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); }
.mv-root .ps-helper-row { display: inline-flex; align-items: center; gap: var(--sp-3); font-size: 12px; flex-wrap: wrap; justify-content: center; }
.mv-root .ps-helper-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); padding: 8px 14px; border-radius: var(--radius-pill); cursor: pointer; font-weight: 500; transition: color .12s, border-color .12s; }
.mv-root .ps-helper-pill:hover { color: var(--text-1); border-color: var(--border-strong); }
.mv-root .ps-helper-pill .kbd { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); background: var(--surface-2); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--border); margin-left: 4px; }

/* Mode rail */
.mv-root .ps-modebar { padding: var(--sp-6) var(--sp-10) var(--sp-8); border-top: 1px solid var(--border); background: var(--bg-deep); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.mv-root .ps-modebar-left, .mv-root .ps-modebar-right { display: flex; align-items: center; gap: var(--sp-3); font-size: 12px; color: var(--text-3); }
.mv-root .ps-modebar-label { letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--text-3); }
.mv-root .ps-modebar-tabs { display: inline-flex; background: var(--surface-2); padding: 4px; border-radius: var(--radius-pill); border: 1px solid var(--border); gap: 2px; flex-wrap: wrap; }
.mv-root .ps-modebar-tab { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--text-2); background: transparent; border: 0; padding: 7px 14px; border-radius: var(--radius-pill); cursor: pointer; white-space: nowrap; }
.mv-root .ps-modebar-tab.active, .mv-root .ps-modebar-tab.active-method { background: var(--surface); color: var(--text-1); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 0 0 1px var(--border); }
.theme-dark.mv-root .ps-modebar-tab.active, .theme-dark.mv-root .ps-modebar-tab.active-method, html[data-theme='dark'] .mv-root .ps-modebar-tab.active, html[data-theme='dark'] .mv-root .ps-modebar-tab.active-method { background: var(--surface-elev); }
.mv-root .ps-modebar-tab .tag { font-size: 8px; font-weight: 600; color: var(--success); background: var(--success-soft); border-radius: 8px; padding: 1px 5px; letter-spacing: 0.02em; }
.mv-root .ss-save-nudge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--brand); background: var(--brand-soft); border: 1px solid rgba(194,94,63,0.24); padding: 7px 13px; border-radius: var(--radius-pill); cursor: pointer; transition: filter .15s; text-decoration: none; }
.mv-root .ss-save-nudge:hover { filter: brightness(1.04); }
.mv-root .ps-modebar-streak { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.mv-root .ps-modebar-streak .flame { color: var(--brand); display: inline-flex; }
.mv-root .ps-modebar-streak strong { color: var(--brand); font-weight: 600; font-family: var(--font-serif); font-size: 14px; }
@media (max-width: 900px) { .mv-root .ps-modebar { flex-direction: column; align-items: stretch; gap: var(--sp-3); } .mv-root .ps-modebar-tabs { justify-content: center; } .mv-root .ps-modebar-right { justify-content: center; } }

/* Practice action buttons (reveal / view verse / start / try again) */
.mv-root .ps-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 11px 22px; border-radius: var(--radius-pill); cursor: pointer; transition: border-color .15s, background .15s, filter .15s; border: 1px solid var(--border); background: var(--surface); color: var(--text-1); }
.mv-root .ps-btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.mv-root .ps-btn.primary { background: var(--brand); color: var(--brand-fg); border-color: transparent; }
.mv-root .ps-btn.primary:hover { filter: brightness(1.04); background: var(--brand); }
.mv-root .ps-btn.ghost { background: transparent; }
.mv-root .ps-actions { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); flex-wrap: wrap; }

/* ============================================================================
   11. ENGINE RE-SKIN — letter tiles (typing / first_letter)
   ============================================================================ */
.mv-root .word-group { display: inline-block; white-space: nowrap; vertical-align: bottom; margin-bottom: 10px; }
.mv-root .tile-input {
	display: inline-block; width: 30px; height: 40px; margin: 0 2px 2px 2px; padding: 0;
	border: 1px solid var(--border); border-radius: 6px; background: var(--surface);
	font-family: var(--font-serif); font-weight: 500; font-size: 24px; line-height: 40px;
	text-align: center; color: var(--text-1); outline: none; caret-color: transparent;
	transition: border-color .12s, background .12s, color .12s; vertical-align: bottom;
	-webkit-appearance: none; -moz-appearance: none; appearance: none; box-shadow: none;
}
.mv-root .tile-input:disabled { opacity: 1; -webkit-opacity: 1; background: var(--surface); border-color: var(--border); -webkit-text-fill-color: inherit; }
.mv-root .tile-input:focus { border: 1.5px solid var(--text-1) !important; }
.mv-root .tile-input.correct { background: var(--success-soft); border-color: var(--success); color: var(--success); font-weight: 600; }
.mv-root .tile-input.incorrect { background: rgba(220,38,38,0.10); border-color: var(--danger); color: var(--danger); animation: slShake .35s ease-out; }
.mv-root .tile-input.revealed { background: var(--surface-2); color: var(--text-muted); border-color: var(--border); font-style: italic; }
.mv-root .tile-input.missed { background: rgba(220,38,38,0.10); color: var(--danger); border-color: rgba(220,38,38,0.5); pointer-events: none; }
.theme-dark.mv-root .tile-input.incorrect, html[data-theme='dark'] .mv-root .tile-input.incorrect,
.theme-dark.mv-root .tile-input.missed, html[data-theme='dark'] .mv-root .tile-input.missed { background: rgba(248,113,113,0.14); }
.mv-root .tile-input.prefilled { background: var(--surface); border: 1px solid var(--border); pointer-events: none; -webkit-text-fill-color: var(--text-muted); }
.mv-root .tile-input.prefilled::placeholder { color: var(--text-muted); opacity: 1; font-weight: 500; }
.mv-root .tile-input.has-hint { background: var(--surface); border: 1px dashed var(--border-strong); }
.mv-root .tile-input.has-hint::placeholder { color: var(--text-muted); opacity: 1; font-weight: 500; font-style: italic; }
.mv-root .tile-input::placeholder { color: var(--text-muted); opacity: 1; }
.mv-root .tile-input.mobile-first-letter { background: var(--surface); border: 1px solid var(--border); }
.mv-root .tile-input.mobile-first-letter.correct { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.mv-root .tile-input.mobile-first-letter.missed { background: rgba(220,38,38,0.10); border-color: var(--danger); color: var(--danger); }
.mv-root .tile-input.mobile-active { border: 1.5px solid var(--text-1); background: var(--surface); box-shadow: 0 0 0 3px var(--brand-soft); animation: psGlow 1.2s ease-in-out infinite; }
.mv-root .tile-input.mobile-first-letter.mobile-active { border: 1.5px solid var(--text-1); background: var(--surface); }
@keyframes psGlow { 0%, 100% { box-shadow: 0 0 0 3px var(--brand-soft); } 50% { box-shadow: 0 0 0 5px var(--brand-soft); } }
@keyframes slShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.mv-root .tile-space { display: inline-block; width: 18px; height: 40px; vertical-align: bottom; }
.mv-root .tile-punctuation { display: inline-block; min-width: 10px; height: 40px; line-height: 40px; margin: 0 1px 2px 1px; font-family: var(--font-serif); font-weight: 500; font-size: 26px; color: var(--text-2); vertical-align: bottom; }
.mv-root .tile-number { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 38px; margin: 0 6px 2px 2px; font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--text-muted); padding: 0 6px; border-radius: 8px; vertical-align: bottom; }
.mv-root .tile-number.correct { background: var(--success-soft); color: var(--success); }
.mv-root .practice-mode .complete, .mv-root .js-tiles-container .complete { animation: slEarthSpin 0.25s ease-in-out forwards; }
@keyframes slEarthSpin { 0% { transform: rotateY(0deg) scale(1); } 50% { transform: rotateY(180deg) scale(1.06); } 100% { transform: rotateY(360deg) scale(1); } }
@media (max-width: 480px) {
	.mv-root .tile-input { width: 24px; height: 34px; font-size: 20px; line-height: 34px; margin: 0 1px 2px 1px; }
	.mv-root .tile-space { width: 12px; height: 34px; }
	.mv-root .tile-punctuation { height: 34px; line-height: 34px; font-size: 22px; }
	.mv-root .tile-number { height: 32px; font-size: 13px; }
}

/* ============================================================================
   12. ENGINE RE-SKIN — flip words (flip_type / flip_choose)
   ============================================================================ */
.mv-root .flip-word { display: inline-block; padding: 6px 10px; margin: 4px; border-radius: 6px; font-family: var(--font-serif); font-weight: 500; font-size: 22px; line-height: 1.4; transition: all .2s ease; }
.mv-root .flip-word.revealed { color: var(--text-1); background: transparent; }
.mv-root .flip-word.hidden { color: transparent; background: var(--surface-2); min-width: 44px; border: 1px solid var(--border); }
.mv-root .flip-word.correct { color: var(--success); background: var(--success-soft); }
.mv-root .flip-word.missed { color: var(--danger); background: rgba(220,38,38,0.10); }
.mv-root .flip-word.incorrect { color: var(--danger); background: rgba(220,38,38,0.10); animation: slShake .35s ease-out; }
.theme-dark.mv-root .flip-word.incorrect, html[data-theme='dark'] .mv-root .flip-word.incorrect { background: rgba(248,113,113,0.14); }
.mv-root .flip-word.active { background: var(--surface); border: 1.5px solid var(--text-1); color: var(--text-1); box-shadow: 0 0 0 3px var(--brand-soft); animation: psGlow 1.2s ease-in-out infinite; }
.mv-root .flip-word.flip-complete { background: var(--success-soft) !important; color: var(--success) !important; font-weight: 700 !important; animation: slFlipComplete .4s ease forwards; }
.mv-root .flip-word.flipping { animation: slFlipReveal .15s ease-out forwards; }
@keyframes slFlipComplete { 0% { transform: scale(1); } 50% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes slFlipReveal { 0% { transform: rotateX(90deg); opacity: 0; } 100% { transform: rotateX(0deg); opacity: 1; } }
.mv-root .choice-btn { padding: 12px 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); font-family: var(--font-serif); font-weight: 600; font-size: 18px; color: var(--text-1); cursor: pointer; transition: all .15s ease; min-width: 110px; text-align: center; }
.mv-root .choice-btn:hover { border-color: var(--brand); background: var(--surface-2); }
.mv-root .choice-btn.correct-choice { border-color: var(--success); background: var(--success-soft); color: var(--success); }
.mv-root .choice-btn.wrong-choice { border-color: var(--danger); background: rgba(220,38,38,0.10); color: var(--danger); }
@media (max-width: 480px) { .mv-root .flip-word { font-size: 19px; padding: 5px 8px; } .mv-root .choice-btn { padding: 10px 18px; font-size: 16px; min-width: 90px; } }

/* ============================================================================
   13. ENGINE RE-SKIN — flash card
   ============================================================================ */
.mv-root .flash-card-word { display: inline; }
.mv-root .flash-card-word.blurred { filter: blur(8px); transition: filter .3s ease; }
.mv-root .flash-card-word.revealed { filter: none; }
.mv-root .ps-flash-front { font-family: var(--font-serif); }
.mv-root .ps-flash-ref { font-family: var(--font-serif); font-size: 34px; font-weight: 700; color: var(--text-1); }
.mv-root .ps-flash-trans { font-family: var(--font-mono); font-size: 14px; color: var(--text-3); letter-spacing: 0.08em; }
.mv-root .ps-flash-back { font-family: var(--font-serif); font-size: 22px; line-height: 1.7; color: var(--text-1); max-width: 760px; margin: 0 auto; }
.mv-root .js-scripture-text.blurred { filter: blur(8px); user-select: none; }

/* ============================================================================
   13b. READ-ALOUD PLAYER — fixed bottom bar (guest-safe, single shared verse)
   Mirrors the shared Listen player's look using slate tokens, but driven by the
   guest-safe process/share_verses/listen.php endpoint so it works logged-out too.
   ============================================================================ */
.mv-root .sl-player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9997; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -8px 28px rgba(11,20,38,0.18); padding: 12px 20px; }
.mv-root .sl-player-inner { display: flex; align-items: center; gap: 14px; max-width: 1080px; margin: 0 auto; }
.mv-root .sl-player-ic { width: 38px; height: 38px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.mv-root .sl-player-info { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.mv-root .sl-player-ref { font-family: var(--font-serif); font-size: 14px; font-weight: 600; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-root .sl-player-meta { font-size: 11px; color: var(--text-3); }
.mv-root .sl-player-btn { width: 42px; height: 42px; border-radius: 8px; border: 0; cursor: pointer; background: var(--brand); color: var(--sl-on-fill); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: filter .15s; }
.mv-root .sl-player-btn:hover { filter: brightness(.96); }
.mv-root .sl-player-close { width: 32px; height: 32px; border-radius: 8px; border: 0; cursor: pointer; background: transparent; color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: color .15s; }
.mv-root .sl-player-close:hover { color: var(--text-1); }

/* ============================================================================
   14. OVERLAYS — loading + celebration (re-skin)
   ============================================================================ */
.mv-root .sl-loading { position: fixed; inset: 0; background: rgba(11,20,38,0.5); z-index: 9500; display: none; align-items: center; justify-content: center; }
.mv-root .sl-loading-card { display: flex; flex-direction: column; align-items: center; background: var(--surface); border-radius: var(--radius-lg); padding: var(--sp-8); box-shadow: var(--shadow-elev); }
.mv-root .sl-spinner { width: 38px; height: 38px; border: 4px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: slSpin .8s linear infinite; }
.mv-root .sl-loading-card p { margin-top: var(--sp-4); font-size: 14px; font-weight: 500; color: var(--text-2); }
@keyframes slSpin { to { transform: rotate(360deg); } }

.mv-root .sl-celebrate { position: fixed; inset: 0; background: rgba(11,20,38,0.6); z-index: 9600; display: none; align-items: center; justify-content: center; overflow: hidden; }
.mv-root .sl-celebrate-stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mv-root .sl-celebrate-card { position: relative; z-index: 1; width: 92%; max-width: 380px; display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--sp-8); box-shadow: var(--shadow-elev); }
.mv-root .sl-celebrate-emoji { font-size: 48px; margin-bottom: 12px; }
.mv-root .sl-celebrate-card h3 { font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: var(--text-1); margin-bottom: 8px; }
.mv-root .sl-celebrate-card .msg { font-size: 15px; color: var(--text-3); line-height: 1.5; margin-bottom: var(--sp-5); }
.mv-root .sl-celebrate-scorebar { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; width: 100%; }
.mv-root .sl-celebrate-scorebar > div { height: 100%; border-radius: 3px; width: 0%; transition: width 1s ease, background-color 1s ease; }
.mv-root .sl-celebrate-old { font-size: 16px; font-weight: 600; color: var(--text-3); }
.mv-root .sl-celebrate-new { font-family: var(--font-serif); font-size: 32px; font-weight: 700; color: var(--brand); }
.mv-root .sl-celebrate-btn { width: 100%; padding: 13px; border-radius: var(--radius-pill); font-size: 15px; font-weight: 600; cursor: pointer; border: 0; background: var(--brand); color: var(--brand-fg); }
.mv-root .sl-celebrate-btn:hover { filter: brightness(1.04); }
.mv-root .sl-celebrate-btn.fail { background: var(--danger); color: var(--sl-on-fill); }
.mv-root .sl-celebrate-input { flex: 1; min-width: 0; padding: 9px 11px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-1); font-size: 14px; outline: none; }
.mv-root .sl-celebrate-input:focus { border-color: var(--brand); }
.guest-star-particle { position: absolute; pointer-events: none; animation: guestStarFall var(--fall-duration, 2s) ease-in var(--fall-delay, 0s) forwards; left: var(--fall-left, 50%); top: 0; }
@keyframes guestStarFall { 0% { transform: translateY(-20px) rotate(0deg) scale(0.5); opacity: 1; } 60% { opacity: 1; } 100% { transform: translateY(100vh) rotate(360deg) scale(1); opacity: 0; } }
.celebration-emoji { animation: emojiPop 0.6s ease forwards; }
@keyframes emojiPop { 0% { transform: scale(0); opacity: 0; } 50% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }

/* H1-hero eyebrow on the state cards (verse not found / already added) */
.sv-eye { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.sl-state h1 em { font-style: italic; color: var(--brand); }

/* Church invite band (2026-06-10) — shown when the visitor arrived from a
   church invite landing (/join/<slug>/). Sits between the eyebrow and the
   sharer attribution. */
.sl-root .sl-church-band {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--brand-soft, #fbeae3); border: 1px solid color-mix(in oklab, var(--brand) 35%, transparent);
  border-radius: 14px; padding: 14px 18px; margin-bottom: var(--sp-5, 20px);
}
.sl-root .sl-church-band .t { font-family: var(--font-sans); font-size: 14px; font-weight: 700; color: var(--text-1); }
.sl-root .sl-church-band .s { font-family: var(--font-sans); font-size: 12.5px; line-height: 1.5; color: var(--text-2); margin-top: 2px; }
.sl-root .sl-church-band .cta {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  color: var(--brand-fg, #fff); background: var(--brand); border-radius: 999px;
  padding: 9px 16px; text-decoration: none;
}
.sl-root .sl-church-band .cta:hover { background: var(--brand-strong, var(--brand)); }
@media (max-width: 560px){ .sl-root .sl-church-band .cta { width: 100%; justify-content: center; } }

/* Other translation (2026-09-18): a member-typed translation name can run to 100 chars - keep the pills one line. */
.mv-root .sl-trans-lbl { display: inline-block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.mv-root .sv-trans-long { display: inline-block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.mv-root .sl-trans-opt .code { overflow-wrap: anywhere; }
