/* Abbey web — theme ported from the iOS app (StatsTheme + Parchment + Pray palettes) */

@font-face { font-family: 'UnifrakturMaguntia'; src: url('../fonts/UnifrakturMaguntia-Book.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'SpecialElite'; src: url('../fonts/SpecialElite-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'EBGaramond'; src: url('../fonts/EBGaramond-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'LibreCaslon'; src: url('../fonts/LibreCaslonText-Regular.otf') format('opentype'); font-display: swap; }

:root {
  /* StatsTheme */
  --gold: #D9B873;
  --gold-grad: linear-gradient(to bottom, #E6C780, #B38C47);
  --muted-gold: #A68C59;
  --leather: #1F140D;
  --leather-light: #291C12;
  --leather-card: linear-gradient(135deg, #241A12, #170F0A);
  --gold-border: rgba(191, 153, 77, 0.45);
  --gold-line: linear-gradient(to right, transparent, #BF994D, transparent);
  --cream: #F5EDDB;
  --struggle-red: #993333;
  /* Parchment (Bible reader) */
  --page: #F7F2E0;
  --page-secondary: #EDE5D1;
  --page-tertiary: #E0D6BF;
  --ink: #0D0805;
  --ink-secondary: #33261A;
  --page-fill: #E8E0CC;
  /* Pray */
  --book-page: #1A120D;
  --serif: Georgia, 'Times New Roman', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: #000;
  color: var(--cream);
  font-family: var(--serif);
  overscroll-behavior-y: none;
}
#app { min-height: 100dvh; max-width: 560px; margin: 0 auto; position: relative; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
a { color: var(--gold); }

.screen { min-height: 100dvh; display: flex; flex-direction: column;
  background: linear-gradient(to bottom, var(--leather), #000); animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }

.blackletter { font-family: 'UnifrakturMaguntia', var(--serif); font-weight: 400; }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gold-line { height: 1px; background: var(--gold-line); border: none; }

/* ---------- shared chrome ---------- */
.topbar { display: flex; align-items: center; gap: 8px; padding: 14px 16px 6px; position: sticky; top: 0; z-index: 5; }
.back-btn { color: var(--gold); font-size: 17px; padding: 6px 10px 6px 0; display: flex; align-items: center; gap: 4px; }
.topbar-title { flex: 1; text-align: center; font-size: 20px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(166, 140, 89, 0.12); color: var(--muted-gold); font-size: 16px; }

.card {
  background: var(--leather-card);
  border: 0.5px solid var(--gold-border);
  border-radius: 16px;
}
.capsule-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 14px 32px; font-family: var(--serif); font-weight: 600; font-size: 16px;
}
.capsule-btn.gold { background: linear-gradient(to bottom, #E6C780, #B38C47); color: #000; }
.capsule-btn.outline { background: var(--leather-card); color: var(--gold); border: 0.5px solid var(--gold-border); }

/* ---------- home ---------- */
.home { padding: 0 16px 40px; background:
  linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('../img/oldblackbible.png') center/cover fixed no-repeat #120B06; }
.home-header { text-align: center; padding: 8px 0 4px; }
.home-greeting { font-size: 15px; color: var(--muted-gold); }
.home-name { font-size: 38px; line-height: 1.15; }
.home-title { font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--muted-gold); margin-top: 2px; }
.home-topbtns { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; z-index: 6; }

.home-card { position: relative; width: 100%; border-radius: 16px; padding: 18px; margin-top: 14px;
  text-align: left; color: inherit; display: block; overflow: hidden; box-shadow: 3px 4px 0 rgba(255,255,255,0.10), 5px 7px 0 rgba(255,255,255,0.05); }
.home-card .chev { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--muted-gold); font-size: 13px; }
.home-card h3 { font-family: 'UnifrakturMaguntia', var(--serif); font-weight: 400; font-size: 24px; }
.home-card .sub { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 2px; }
.card-bible { background: linear-gradient(rgba(20,5,8,0.35), rgba(20,5,8,0.35)), url('../img/biblered.png') center/cover; box-shadow: 3px 4px 0 #D1C79E, 5px 7px 0 #E5DCB3; }
.card-pray { background: linear-gradient(rgba(10,14,30,0.35), rgba(10,14,30,0.35)), url('../img/bibleblue2.png') center/cover; box-shadow: 3px 4px 0 rgba(255,255,255,0.72), 5px 7px 0 rgba(255,255,255,0.5); }
.card-verse { background: linear-gradient(rgba(8,14,6,0.4), rgba(8,14,6,0.4)), url('../img/green.jpg') center/cover; box-shadow: 3px 4px 0 #261F14, 5px 7px 0 #403321; }
.card-plans { background: linear-gradient(rgba(25,18,8,0.4), rgba(25,18,8,0.4)), url('../img/brown.jpg') center/cover; box-shadow: 3px 4px 0 rgba(255,255,255,0.45), 5px 7px 0 rgba(255,255,255,0.25); }
.card-confess { background: linear-gradient(to bottom, #2E1F14, #1F1409); box-shadow: 3px 4px 0 #33291A, 5px 7px 0 #403321; }
.card-meditate { background: linear-gradient(to bottom, #1A143A, #0D0A24); box-shadow: 3px 4px 0 #211A40, 5px 7px 0 #261F47; }

.progress-track { height: 10px; border-radius: 999px; background: rgba(217, 184, 115, 0.25); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: #F2D173; }
.progress-track.thin { height: 6px; background: rgba(255,255,255,0.15); }
.progress-track.thin .progress-fill { background: rgba(255,255,255,0.7); }
.mini-stat { display: inline-flex; align-items: baseline; gap: 6px; margin-right: 18px; }
.mini-stat b { font-family: 'UnifrakturMaguntia', var(--serif); font-weight: 400; font-size: 26px; }
.mini-stat span { font-size: 12px; color: rgba(255,255,255,0.6); }

.streak-rosary { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 8px; }
.streak-bead { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.streak-bead.diamond { border-radius: 2px; transform: rotate(45deg); background: rgba(255,255,255,0.8); }
.streak-flame { font-size: 12px; color: var(--gold); }

/* ---------- feelings (welcome screen) ---------- */
.feelings { padding: 8px 20px 140px; }
.feelings-logo { display: block; margin: 0 auto; font-size: 34px; text-align: center; }
.feelings-apptitle { text-align: center; font-size: 32px; line-height: 1.1; }
.feelings-q { text-align: center; font-size: 20px; font-weight: 500; color: var(--gold); margin-top: 12px; }
.mood-tabs { display: flex; gap: 10px; margin: 14px 0 6px; }
.mood-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; padding: 14px 8px; font-size: 15px; font-weight: 600; transition: all .2s ease; }
.mood-tab.struggling { background: rgba(153, 51, 51, 0.3); color: rgba(166, 140, 89, 0.6); }
.mood-tab.struggling.active { background: #993333; color: #fff; border: 1px solid rgba(217, 184, 115, 0.4); }
.mood-tab.blessed { background: rgba(217, 184, 115, 0.15); color: var(--muted-gold); }
.mood-tab.blessed.active { background: rgba(217, 184, 115, 0.7); color: #fff; border: 1px solid rgba(217, 184, 115, 0.4); }
.feel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 16px; margin-top: 12px; }
.feel-chip { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 8px;
  border-radius: 12px; background: var(--leather-light); color: rgba(217, 184, 115, 0.85);
  border: 1px solid rgba(217, 184, 115, 0.15); font-size: 15px; font-weight: 500; }
.feel-chip.selected { background: rgba(217, 184, 115, 0.5); color: #fff; border-color: rgba(217, 184, 115, 0.6); }
.other-label { font-size: 17px; font-weight: 600; color: rgba(217, 184, 115, 0.9); margin: 18px 0 8px; padding: 0 4px; }
.other-box { width: 100%; height: 120px; border-radius: 16px; background: rgba(41, 28, 18, 0.8);
  border: 1px solid rgba(217, 184, 115, 0.2); color: rgba(255,255,255,0.9); font-size: 16px; padding: 12px; resize: none; outline: none; }
.other-box::placeholder { color: rgba(166, 140, 89, 0.4); }
.cta-wrap { position: fixed; bottom: 0; left: 0; right: 0; padding: 12px 24px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); display: flex; justify-content: center; z-index: 10; }
.cta-btn { width: 100%; max-width: 512px; border-radius: 30px; padding: 18px 24px; font-size: 19px; font-weight: 700;
  background: linear-gradient(to bottom, #E6C780, #B38C47); color: #000; box-shadow: 0 8px 16px rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; gap: 10px; }
.cta-btn:disabled { opacity: 0.5; transform: scale(0.98); }
.verses-pill { position: fixed; top: 10px; right: 16px; z-index: 11; display: flex; align-items: center; gap: 6px;
  background: var(--leather-card); border: 0.5px solid var(--gold-border); border-radius: 999px; padding: 10px 16px;
  color: var(--gold); font-size: 14px; font-weight: 600; box-shadow: 0 4px 8px rgba(0,0,0,0.4); }

/* ---------- quotes modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.6); display: flex; align-items: flex-end; justify-content: center; }
.modal-overlay.center { align-items: center; }
.sheet { width: 100%; max-width: 560px; max-height: 94dvh; overflow-y: auto; border-radius: 18px 18px 0 0;
  background: linear-gradient(to bottom, var(--leather), #000); animation: slideup .3s ease; }
@keyframes slideup { from { transform: translateY(40px); opacity: 0 } to { transform: none; opacity: 1 } }
.sheet.parchment { background: var(--page); color: var(--ink); }
.sheet-close { position: sticky; top: 10px; margin-left: auto; margin-right: 14px; display: flex; z-index: 5;
  width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center;
  background: rgba(166, 140, 89, 0.25); color: var(--cream); font-size: 15px; }
.quote-card { border-radius: 18px; background: var(--leather-card); border: 1px solid var(--gold-border);
  box-shadow: 0 5px 10px rgba(0,0,0,0.4); padding: 22px; text-align: left; display: block; width: 100%; color: inherit; }
.quote-card .qmark { font-size: 34px; line-height: 0.6; font-weight: bold; }
.quote-card .qtext { font-size: 19px; font-style: italic; color: #F5EDDB; line-height: 1.45; margin: 10px 0 14px; }
.quote-card .qref { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--gold); }
.quote-card .qread { margin-left: auto; font-size: 12px; color: var(--muted-gold); }

/* ---------- bible reader ---------- */
.bible-screen { background: #fff; color: var(--ink); min-height: 100dvh; display: flex; flex-direction: column; }
.bible-paper { background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('../img/yellowpage.jpg') center/cover fixed; }
.bible-topbar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 12px 8px;
  position: sticky; top: 0; z-index: 20; background: rgba(247, 242, 224, 0.96); border-bottom: 1px solid rgba(13, 8, 5, 0.06); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 16px;
  background: var(--page-secondary); color: var(--ink); font-size: 15px; font-weight: 500; }
.pill .chev { font-size: 11px; color: var(--ink-secondary); }
.bible-verses { flex: 1; padding: 24px 10px; }
.verse-row { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; border-radius: 8px; margin-bottom: 16px; position: relative; }
.verse-row.speaking { background: rgba(255, 235, 59, 0.15); }
.verse-row.extra-selected { background: rgba(0, 90, 255, 0.15); }
.verse-num { min-width: 20px; color: var(--ink-secondary); }
.verse-text { flex: 1; white-space: pre-wrap; }
.verse-text mark { color: inherit; }
.verse-badges { display: flex; justify-content: flex-end; gap: 8px; font-size: 12px; width: 100%; }
.bible-bottombar { position: sticky; bottom: 0; z-index: 20; background: rgba(247, 242, 224, 0.97);
  border-top: 1px solid rgba(13, 8, 5, 0.08); padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); }
.bible-bottombar .row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.circle-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--page-secondary); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }
.bookmark-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 14px;
  background: var(--page-secondary); color: var(--ink); font-size: 12px; font-weight: 500; }
.read-progress { height: 3px; border-radius: 999px; background: rgba(224, 214, 191, 0.4); margin-bottom: 6px; overflow: hidden; }
.read-progress div { height: 100%; background: rgba(51, 38, 26, 0.6); border-radius: 999px; }

.hl-menu { position: sticky; bottom: 0; z-index: 30; background: var(--page-secondary);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.2); padding: 14px 16px; }
.hl-menu .hint { font-size: 11px; color: rgba(51, 38, 26, 0.7); text-align: center; margin-bottom: 10px; }
.hl-menu .btns { display: flex; align-items: center; justify-content: space-between; }
.hl-swatch { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); }
.hl-btn { font-size: 20px; padding: 2px 4px; }

/* book selector */
.selector { position: fixed; inset: 0; z-index: 60; background: var(--page); color: var(--ink); overflow-y: auto; }
.selector-top { display: flex; align-items: center; padding: 14px 16px; position: sticky; top: 0; background: var(--page); z-index: 3; }
.selector-title { flex: 1; text-align: center; font-weight: 600; }
.book-row { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px;
  background: var(--page-fill); border-bottom: 1px solid rgba(13, 8, 5, 0.05); font-size: 16px; color: var(--ink); text-align: left; }
.chapter-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 16px; background: var(--page-tertiary); }
.chapter-cell { height: 50px; border-radius: 8px; background: var(--page-secondary); color: var(--ink); font-size: 16px; }
.chapter-cell.current { background: #2266DD; color: #fff; }
.order-toggle { display: flex; background: var(--page-tertiary); border-radius: 8px; margin: 12px 16px 30px; overflow: hidden; }
.order-toggle button { flex: 1; padding: 10px; font-size: 15px; color: var(--ink-secondary); }
.order-toggle button.active { background: var(--page-secondary); color: var(--ink); }

/* dropdown menus (translation / AA) */
.menu-pop { position: absolute; top: 52px; right: 8px; z-index: 40; min-width: 260px; max-height: 70dvh; overflow-y: auto;
  background: var(--page); color: var(--ink); border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.35); padding: 6px 0; }
.menu-pop.left { right: auto; left: 8px; }
.menu-section { font-size: 12px; color: var(--ink-secondary); padding: 8px 14px 4px; text-transform: uppercase; letter-spacing: 1px; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 14px; font-size: 15px; color: var(--ink); }
.menu-item:hover { background: var(--page-secondary); }
.menu-item .check { margin-left: auto; color: #2266DD; }

/* notes/favorites/search sheets reuse .sheet.parchment */
.filter-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; position: sticky; top: 0; background: var(--page); z-index: 4; }
.filter-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 14px;
  background: var(--page-secondary); color: var(--ink); font-size: 12px; font-weight: 500; }
.filter-chip.active { background: var(--ink); color: var(--page); }
.note-row { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(13, 8, 5, 0.07); width: 100%; text-align: left; color: var(--ink); }
.note-row .ref { color: #2266DD; font-weight: 700; font-size: 14px; }
.note-row .preview { font-size: 13px; color: var(--ink-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.search-bar { display: flex; align-items: center; gap: 8px; margin: 10px 16px; padding: 10px 12px; border-radius: 10px; background: var(--page-secondary); }
.search-bar input { flex: 1; border: none; background: none; outline: none; font-size: 16px; color: var(--ink); }
.search-card { display: block; width: 100%; text-align: left; background: var(--page-tertiary); border-radius: 10px; padding: 14px; margin: 0 16px 10px; color: var(--ink); }

/* Ask Abbey */
.ask-sheet { display: flex; flex-direction: column; max-height: 94dvh; }
.ask-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.ask-ref { font-size: 20px; font-weight: 600; }
.ask-verse { font-style: italic; color: var(--ink-secondary); margin: 8px 0 12px; }
.ask-divider { border: none; border-top: 1px solid rgba(13, 8, 5, 0.12); margin: 10px 0; }
.chat-user { display: flex; justify-content: flex-end; margin: 10px 0 6px; }
.chat-user span { background: var(--page-tertiary); border-radius: 18px; padding: 10px 14px; max-width: 80%; }
.ask-composer { display: flex; gap: 8px; align-items: center; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--page); border-top: 1px solid rgba(13, 8, 5, 0.08); }
.ask-composer input { flex: 1; border-radius: 999px; border: 1px solid #C6BBA4; background: #fff; padding: 10px 14px; font-size: 15px; outline: none; }
.ask-send { font-size: 26px; color: var(--ink); }
.ask-send:disabled { opacity: 0.3; }

/* note editor */
.note-editor { padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); }
.note-editor .ref { color: #00ADFF; font-weight: 600; font-size: 14px; }
.note-editor .vtext { font-size: 14px; color: var(--ink-secondary); margin: 6px 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.note-editor textarea { width: 100%; height: 140px; background: #fff; border: 1px solid #C6BBA4; border-radius: 8px; padding: 10px; font-size: 15px; color: var(--ink); resize: none; outline: none; }
.note-editor .actions { display: flex; justify-content: space-between; margin-top: 4px; padding: 10px 0; }

/* ---------- pray ---------- */
.pray-screen { background: var(--book-page); min-height: 100dvh; display: flex; flex-direction: column; }
.den-tabs { display: flex; background: rgba(245, 237, 219, 0.04); border: 1px solid rgba(217, 184, 115, 0.25);
  border-radius: 999px; padding: 3px; margin: 14px 20px; }
.den-tabs button { flex: 1; padding: 10px 4px; border-radius: 999px; font-size: 15px; font-weight: 600; color: rgba(166, 140, 89, 0.6); transition: all .2s; }
.den-tabs button.active { background: rgba(217, 184, 115, 0.12); color: var(--gold); }
.pray-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 20px 30px; }
.pray-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px;
  border-radius: 16px; background: rgba(255,255,255,0.05); border: 0.5px solid rgba(217, 184, 115, 0.25); color: var(--cream); }
.pray-card.exorcism { background: rgba(160, 100, 255, 0.08); border-color: rgba(160, 100, 255, 0.4); }
.pray-card .picon { font-size: 22px; }
.pray-card .pname { font-size: 15px; font-weight: 600; text-align: center; }
.pray-card .psecs { font-size: 12px; color: var(--muted-gold); }
.exo-badge { font-size: 10px; letter-spacing: 1px; background: rgba(160, 100, 255, 0.35); color: #E2CCFF; border-radius: 999px; padding: 2px 8px; }
.streak-banner { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 20px 12px; padding: 12px;
  border-radius: 14px; background: rgba(255,255,255,0.05); border: 0.5px solid rgba(217, 184, 115, 0.25); font-size: 16px; font-weight: 600; }
.pray-actions { display: flex; gap: 10px; justify-content: center; padding: 14px 20px calc(20px + env(safe-area-inset-bottom)); }
.pray-action { width: 96px; height: 72px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(to bottom, #171006, #080503); border: 0.5px solid var(--gold-border); box-shadow: 0 6px 12px rgba(0,0,0,0.5);
  color: var(--gold); font-size: 13px; font-weight: 600; }
.pray-action .em { font-size: 20px; }
.history-row { display: flex; align-items: center; gap: 10px; margin: 0 20px 10px; padding: 12px 14px;
  border-radius: 14px; background: rgba(255,255,255,0.05); border: 0.5px solid rgba(217, 184, 115, 0.15);
  color: var(--cream); width: calc(100% - 40px); text-align: left; }
.history-row .hname { font-size: 15px; font-weight: 600; flex: 1; }
.history-row .hdate { font-size: 12px; color: var(--muted-gold); }
.history-row .hpct { font-size: 16px; font-weight: 700; }

/* teleprompter */
.tele-screen { position: fixed; inset: 0; z-index: 80; background: linear-gradient(to bottom, var(--leather), #000);
  display: flex; flex-direction: column; }
.tele-label { text-align: center; color: var(--gold); font-weight: 600; padding: 16px 20px 6px; }
.tele-progress { margin: 6px 40px; }
.tele-pct { text-align: center; font-size: 12px; color: var(--muted-gold); }
.tele-words { flex: 1; overflow-y: auto; padding: 40px 28px; line-height: 1.9;
  mask-image: linear-gradient(to bottom, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.tele-words span { font-size: 27px; font-weight: 500; color: rgba(255,255,255,0.3); transition: color .3s ease; margin-right: 9px; display: inline-block; }
.tele-words span.matched { color: #FFEB3B; }
.tele-words span.passed { color: rgba(255, 235, 59, 0.5); }
.tele-words span.current { color: #fff; }
.tele-bottom { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); }
.listening { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.6); font-size: 15px; }
.red-dot { width: 10px; height: 10px; border-radius: 50%; background: #E33; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: 0.3 } }
.stop-btn { border-radius: 999px; background: rgba(255, 60, 60, 0.25); border: 1px solid rgba(255, 60, 60, 0.4);
  color: #fff; padding: 12px 30px; font-size: 16px; font-weight: 600; }

.complete-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,0.82); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 30px; }
.complete-check { font-size: 74px; animation: springin .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes springin { from { transform: scale(0.3); opacity: 0 } to { transform: scale(1); opacity: 1 } }

/* pray-for-someone form */
.pfs-field { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(217, 184, 115, 0.25);
  border-radius: 12px; color: var(--cream); font-size: 16px; padding: 12px 14px; outline: none; margin-bottom: 12px; }
textarea.pfs-field { min-height: 90px; resize: vertical; }

/* ---------- meditate ---------- */
.med-header { text-align: center; padding-top: 12px; }
.med-header .em { font-size: 36px; }
.med-title { font-size: 36px; }
.med-tabs { display: flex; background: rgba(255,255,255,0.06); border: 1px solid rgba(217, 184, 115, 0.15);
  border-radius: 999px; padding: 3px; margin: 16px 20px; }
.med-tabs button { flex: 1; padding: 10px 2px; border-radius: 999px; font-size: 14px; font-weight: 600; color: rgba(166, 140, 89, 0.5); }
.med-tabs button.active { background: rgba(217, 184, 115, 0.15); color: var(--gold); }
.med-session { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 30px; }
.med-icon { font-size: 60px; }
.med-name { font-size: 28px; }
.med-desc { font-size: 15px; color: var(--muted-gold); max-width: 320px; }
.play-btn { width: 80px; height: 80px; border-radius: 50%; background: rgba(217, 184, 115, 0.15);
  border: 1.5px solid rgba(217, 184, 115, 0.5); color: var(--gold); font-size: 30px; }
.play-btn.dim { opacity: 0.35; }
.seek-wrap { width: 100%; max-width: 300px; }
.seek-times { display: flex; justify-content: space-between; font-size: 11px; color: rgba(166, 140, 89, 0.6); margin-top: 4px; }

/* ---------- confession ---------- */
.confess-screen { position: fixed; inset: 0; z-index: 80; background: #000; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 30px 24px; gap: 14px; }
.confess-transcript { flex: 1; width: 100%; overflow-y: auto; font-size: 20px; color: rgba(255,255,255,0.85);
  text-align: left; padding: 20px 6px; position: relative; }
.confess-transcript.placeholder { color: rgba(255,255,255,0.3); }
.burn-canvas { position: absolute; inset: 0; pointer-events: none; }
.signature-box { width: 100%; height: 180px; background: rgba(255,255,255,0.05); border: 0.5px solid var(--gold-border);
  border-radius: 12px; touch-action: none; }

/* ---------- settings ---------- */
.settings-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 16px;
  border-radius: 12px; background: var(--leather-card); border: 0.5px solid rgba(217, 184, 115, 0.15);
  color: var(--gold); font-size: 16px; font-weight: 500; margin-bottom: 12px; }
.settings-row .icon { width: 36px; font-size: 20px; text-align: center; }
.settings-row .chev { margin-left: auto; color: var(--muted-gold); font-size: 13px; }
.settings-expand { padding: 4px 16px 16px; margin: -8px 0 12px; }
.faith-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.faith-cell { padding: 10px; border-radius: 10px; background: rgba(255,255,255,0.06); color: var(--muted-gold); font-size: 14px; }
.faith-cell.selected { background: linear-gradient(to bottom, #E6C780, #B38C47); color: #000; font-weight: 600; }
.slider-value { font-size: 32px; text-align: center; display: block; }
input[type="range"] { width: 100%; accent-color: var(--gold); }
.radio-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 4px; color: var(--cream); font-size: 15px; }
.radio-row .dot { color: var(--gold); }

/* ---------- plans ---------- */
.plans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 20px 30px; }
.plan-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; border-radius: 16px;
  background: var(--leather-card); border: 0.5px solid var(--gold-border); color: #fff; }
.plan-card.done { background: rgba(40, 160, 80, 0.12); border-color: rgba(40, 160, 80, 0.4); }
.plan-card .picon { font-size: 24px; color: var(--gold); }
.plan-card .pname { font-size: 15px; font-weight: 600; text-align: center; }
.plan-card .pdays { font-size: 12px; color: var(--muted-gold); }
.day-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 20px;
  border-bottom: 0.5px solid rgba(217, 184, 115, 0.15); color: var(--cream); }
.day-row.locked { opacity: 0.5; }
.day-row .dnum { width: 34px; height: 34px; border-radius: 50%; background: rgba(217, 184, 115, 0.12); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex: none; }
.day-row .dnum.done { background: rgba(40, 160, 80, 0.3); color: #7BE495; }
.day-row .dtitle { font-size: 15px; font-weight: 600; }
.day-row .dscrip { font-size: 12px; color: var(--muted-gold); }
.passage { background: var(--page); color: var(--ink); border-radius: 12px; padding: 16px; margin: 12px 20px; }
.passage .pv { margin-bottom: 8px; font-size: 16px; line-height: 1.5; }
.passage .pv sup { color: var(--ink-secondary); font-size: 11px; margin-right: 4px; }

.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 200;
  background: rgba(20, 14, 8, 0.95); color: var(--gold); border: 0.5px solid var(--gold-border);
  border-radius: 999px; padding: 10px 20px; font-size: 14px; animation: fadein .2s ease; }

.section-pad { padding: 0 20px; }
.muted { color: var(--muted-gold); }
.small { font-size: 13px; }
.center { text-align: center; }
.spin { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(0,0,0,0.3); border-top-color: #000;
  border-radius: 50%; animation: rot .8s linear infinite; }
.spin.light { border-color: rgba(13,8,5,0.2); border-top-color: var(--ink); }
@keyframes rot { to { transform: rotate(360deg) } }

/* svg icons */
.ic { vertical-align: -0.18em; }
button .ic { pointer-events: none; }
.gold-ic { color: var(--gold); }
.grad-ic { color: #D9B873; }
.logo-img { width: 40px; height: 40px; object-fit: contain; }
.card-title-row { display: flex; align-items: center; gap: 8px; }
