:root { --bg: #080b11; --surface: #101722; --surface-2: #182231; --accent: #c99a61; --accent-soft: #e8c89f; --line: rgba(232,200,159,.13); }
html { background: #080b11; }
body { background: #080b11; }
.bible-nav { grid-template-columns: repeat(4, minmax(0,1fr)); background: rgba(8,11,17,.96); }
.bible-nav .nav-item.active { color: #f4d9af; }
.bible-nav .sidebar-actions { display: none; }
.bible-page { overflow: hidden; }
.bible-feed { height: 100svh; overflow-y: auto; overscroll-behavior-y: contain; scroll-snap-type: y mandatory; scrollbar-width: none; }
.bible-feed::-webkit-scrollbar { display: none; }
.chapter-card { position: relative; width: 100%; height: 100svh; min-height: 500px; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; background: #0b1118; }
.chapter-art, .chapter-shade { position: absolute; inset: 0; }
.chapter-art { overflow: hidden; }
.chapter-art-one { background: radial-gradient(ellipse 30% 30% at 52% 36%, #fff6d7 0%, #c9ab7b 18%, transparent 70%), radial-gradient(ellipse at 50% 34%, #385276 0%, #121c30 45%, #080b11 90%); }
.chapter-art-two { background: radial-gradient(ellipse 48% 45% at 55% 56%, #566d4d 0%, #273f36 35%, transparent 78%), linear-gradient(155deg, #0c1c27 5%, #2b382e 48%, #11160f 100%); }
.chapter-art-three { background: radial-gradient(ellipse 30% 60% at 58% 50%, #866444 0%, #483b30 35%, transparent 80%), linear-gradient(130deg, #0a1820 0%, #1e2a24 52%, #161119 100%); }
.art-light { position: absolute; inset: 12% 18%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,236,189,.32), transparent 68%); filter: blur(35px); }
.chapter-shade { background: linear-gradient(180deg, rgba(0,0,0,.48), transparent 28%, transparent 48%, rgba(0,0,0,.86)); }
.chapter-picker-toggle { position: absolute; z-index: 2; top: max(22px, env(safe-area-inset-top)); left: 20px; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: #fff8ec; background: rgba(8,11,17,.44); font-size: .86rem; font-weight: 700; cursor: pointer; backdrop-filter: blur(12px); }
.chapter-picker-toggle svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chapter-play { position: absolute; top: 48%; left: 50%; display: grid; place-items: center; width: 68px; height: 68px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(0,0,0,.3); transform: translate(-50%,-50%); }
.chapter-play svg { width: 26px; height: 26px; fill: white; stroke: none; }
.reading-toggle { position: absolute; z-index: 2; top: max(22px, env(safe-area-inset-top)); right: 20px; display: flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 12px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: white; background: rgba(8,11,17,.54); font-size: .82rem; font-weight: 700; cursor: pointer; backdrop-filter: blur(12px); }
.reading-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reading-play-toggle svg { fill: currentColor; stroke: none; }
.chapter-actions { position: absolute; z-index: 2; right: 13px; bottom: max(100px, calc(env(safe-area-inset-bottom) + 90px)); display: flex; flex-direction: column; gap: 21px; align-items: center; width: 58px; }
.chapter-action { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 58px; padding: 0; border: 0; color: white; background: transparent; font-size: .72rem; font-weight: 650; line-height: 1.1; text-shadow: 0 1px 6px #000; cursor: pointer; }
.desktop-scripture, .desktop-chapter { display: none; }
.chapter-action svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 5px #000); }
.chapter-share svg { width: 26px; height: 26px; overflow: visible; }
.chapter-save.saved { color: #e8c89f; }
.chapter-save.saved svg { fill: rgba(232,200,159,.35); }
.chapter-copy { position: absolute; right: 82px; bottom: max(100px, calc(env(safe-area-inset-bottom) + 90px)); left: 24px; max-width: 550px; }
.reading-feed { height: 100svh; overflow-y: auto; overscroll-behavior-y: contain; scroll-behavior: smooth; background: #0c1119; }
.reading-feed[hidden], .note-feed[hidden], .note-composer[hidden], .note-scrim[hidden], .bible-toast[hidden] { display: none; }
.reading-header { position: sticky; z-index: 5; top: 0; display: flex; justify-content: space-between; gap: 10px; min-height: calc(74px + env(safe-area-inset-top)); padding: max(20px, env(safe-area-inset-top)) 20px 12px; background: linear-gradient(#0c1119 70%, rgba(12,17,25,.92)); }
.reading-header .chapter-picker-toggle, .reading-header .reading-toggle { position: static; }
.desktop-reading-heading { display: none; }
.reading-header-actions { display: flex; align-items: flex-start; gap: 8px; }
.reading-language { position: relative; }
.language-toggle { display: flex; align-items: center; gap: 5px; min-height: 42px; padding: 0 12px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: white; background: rgba(8,11,17,.54); font-size: .82rem; font-weight: 700; cursor: pointer; }
.language-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.language-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 10; width: 175px; max-height: min(380px, 65svh); overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #1b2633; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.language-menu[hidden] { display: none; }
.language-option { display: block; width: 100%; padding: 10px 9px; border: 0; border-radius: 7px; color: #e5e7e8; background: transparent; font-size: .81rem; text-align: left; cursor: pointer; }
.language-option:hover, .language-option:focus-visible, .language-option[aria-selected="true"] { color: #f9e8cf; background: rgba(232,200,159,.16); }
.reading-content { max-width: 740px; margin: 0 auto; padding: 32px 26px max(130px, calc(env(safe-area-inset-bottom) + 110px)); }
.reading-content > .chapter-kicker { margin-bottom: 5px; }
.reading-source { color: #aeb5b7; font-size: .73rem; text-decoration: underline; text-underline-offset: 3px; }
.reading-chapter { padding: 16px 0 38px; border-bottom: 1px solid var(--line); }
.reading-chapter h1, .reading-chapter h2 { margin: 0 0 26px; color: #f8ead4; font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 2.7rem); font-weight: 500; }
.reading-chapter p { margin: 0 0 21px; color: #eee7dc; font-family: Georgia, serif; font-size: clamp(1.12rem, 2.3vw, 1.32rem); line-height: 1.85; }
.reading-chapter sup { margin-right: 5px; color: #d4aa76; font-family: Arial, sans-serif; font-size: .7em; font-weight: 700; }
.reading-end { padding: 24px 0; color: #a3aab2; font-size: .85rem; }
.note-feed { height: 100svh; overflow-y: auto; overscroll-behavior-y: contain; background: #0c1119; }
.note-header { position: sticky; z-index: 5; top: 0; display: flex; align-items: center; gap: 15px; min-height: calc(85px + env(safe-area-inset-top)); padding: max(20px, env(safe-area-inset-top)) 22px 15px; border-bottom: 1px solid var(--line); background: #0c1119; }
.note-header .chapter-kicker { margin-bottom: 5px; }
.note-header h2 { margin: 0; font-size: 1.35rem; }
.note-back { width: 36px; height: 36px; border: 0; color: #e8c89f; background: transparent; font-size: 2.25rem; line-height: 1; cursor: pointer; }
.note-add { position: fixed; z-index: 6; right: 20px; bottom: max(82px, calc(env(safe-area-inset-bottom) + 68px)); left: 20px; display: block; min-height: 48px; border: 0; border-radius: 11px; color: #211509; background: #e8c89f; font-size: .95rem; font-weight: 750; cursor: pointer; }
.note-list { max-width: 740px; margin: 0 auto; padding: 16px 24px max(165px, calc(env(safe-area-inset-bottom) + 150px)); }
.note-empty { padding: 38px 0; color: #aeb5b7; line-height: 1.5; }
.note-entry { padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
.note-entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; margin-bottom: 11px; }
.note-entry-ref { color: #e8c89f; font-size: .78rem; font-weight: 800; }
.note-entry-time { color: #97a0aa; font-size: .74rem; }
.note-entry p { margin: 0; color: #eae5db; font-family: Georgia, serif; font-size: 1.08rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-scrim { position: fixed; z-index: 39; inset: 0; background: rgba(0,0,0,.7); }
.note-composer { position: fixed; z-index: 40; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; gap: 12px; max-height: 85svh; overflow-y: auto; padding: 21px 20px max(28px, env(safe-area-inset-bottom)); border: 1px solid var(--line); border-radius: 22px 22px 0 0; background: #121923; box-shadow: 0 -20px 70px rgba(0,0,0,.5); }
.note-composer-head { display: flex; justify-content: space-between; align-items: center; }
.note-composer h3 { margin: 0; font-size: 1.15rem; }
.note-composer-head button { border: 0; color: white; background: transparent; font-size: 1.7rem; cursor: pointer; }
.note-composer label { color: #c5c9cd; font-size: .82rem; }
.note-composer textarea, .note-composer select, .note-composer input { box-sizing: border-box; width: 100%; padding: 12px; border: 1px solid #424b55; border-radius: 11px; color: white; background: #1a222c; font: inherit; font-size: 16px; }
.note-composer textarea { min-height: 155px; resize: vertical; }
.note-reference-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.note-reference-fields label { display: flex; flex-direction: column; gap: 7px; }
.note-submit { align-self: flex-end; min-width: 110px; padding: 11px 18px; border: 0; border-radius: 9px; color: #211509; background: #e8c89f; font-weight: 750; cursor: pointer; }
.bible-toast { position: fixed; z-index: 50; right: 16px; bottom: max(95px, calc(env(safe-area-inset-bottom) + 80px)); left: 16px; width: fit-content; max-width: calc(100% - 32px); margin: 0 auto; padding: 10px 15px; border-radius: 9px; color: white; background: #263342; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.chapter-picker-backdrop { position: fixed; z-index: 29; inset: 0; background: rgba(0,0,0,.65); }
.chapter-picker-backdrop[hidden], .chapter-picker[hidden] { display: none; }
.chapter-picker { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; height: 52svh; max-height: none; overflow: hidden; padding: 24px 22px max(20px, env(safe-area-inset-bottom)); border: 1px solid var(--line); border-radius: 24px 24px 0 0; color: white; background: #121923; box-shadow: 0 -20px 70px rgba(0,0,0,.5); }
.chapter-picker-head { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; }
.chapter-picker-head h2 { margin: 0; font-size: 1.3rem; }
.chapter-picker-head .chapter-kicker { margin-bottom: 6px; }
.chapter-picker-head button { border: 0; color: #d8d9d9; background: transparent; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.chapter-picker-list { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #67717d transparent; }
.book-row { border-bottom: 1px solid rgba(232,200,159,.1); }
.book-toggle { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 61px; padding: 0 6px; border: 0; color: #c8c5cd; background: transparent; font-size: 1.1rem; font-weight: 720; text-align: left; cursor: pointer; }
.book-toggle:hover, .book-toggle:focus-visible, .book-toggle[aria-expanded="true"] { color: #f5e9d7; }
.book-ordinal { flex: 0 0 2.2em; color: #958c80; font-size: .78rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.book-title { min-width: 0; flex: 1; }
.book-chevron { margin-left: auto; color: #aeb2ba; font-size: 1.4rem; font-weight: 400; transition: transform 180ms ease; }
.book-toggle[aria-expanded="true"] .book-chevron { transform: rotate(180deg); }
.book-chapters { display: grid; grid-template-columns: repeat(auto-fill,minmax(44px,1fr)); gap: 8px; padding: 3px 4px 17px; }
.book-chapters[hidden] { display: none; }
.book-chapter { min-height: 44px; border: 1px solid rgba(232,200,159,.35); border-radius: 9px; color: #f9ecdb; background: #253341; font-size: .86rem; font-weight: 700; cursor: pointer; }
.book-chapter:hover:not(:disabled), .book-chapter:focus-visible { border-color: #f4c98e; background: #35495a; }
.book-chapter[aria-current="true"] { border-color: #e8c89f; color: #17120b; background: #e8c89f; }
.book-chapter:disabled { border-color: rgba(255,255,255,.07); color: #747f8c; background: rgba(255,255,255,.04); cursor: not-allowed; }
.book-testament-divider { margin: 23px 6px 8px; color: #d3af7f; font-size: .67rem; font-weight: 800; letter-spacing: .18em; }
.chapter-kicker, .prayer-eyebrow { margin: 0 0 12px; color: #e8c89f; font-size: .68rem; font-weight: 800; letter-spacing: .2em; }
.chapter-copy h1 { margin: 0 0 11px; font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -.05em; }
.chapter-copy p:not(.chapter-kicker) { margin: 0 0 10px; color: #f2e9dc; font-size: clamp(.98rem, 2.5vw, 1.2rem); line-height: 1.5; }
.chapter-copy small { color: #aeb5b7; font-size: .72rem; }
.pray-page { min-height: 100svh; }
.pray-shell { min-height: 100svh; padding: max(25px, env(safe-area-inset-top)) 22px 100px; background: radial-gradient(circle at 55% 46%, rgba(172,129,79,.2), transparent 34%), #080b11; }
.pray-header { display: flex; align-items: center; gap: 17px; font-size: 1.12rem; font-weight: 750; }
.prayer-calendar-button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; color: #e8c89f; background: rgba(255,255,255,.04); cursor: pointer; }
.prayer-calendar-button svg, .prayer-record svg { width: 23px; height: 23px; }
.prayer-center { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100svh - 170px); max-width: 560px; margin: 0 auto; text-align: center; }
.prayer-glow { width: 105px; height: 105px; margin-bottom: 30px; border: 1px solid rgba(232,200,159,.5); border-radius: 50%; background: radial-gradient(circle, rgba(244,220,176,.62), rgba(185,127,67,.16) 45%, transparent 75%); box-shadow: 0 0 65px rgba(221,176,113,.24); }
.prayer-center h1 { margin: 0 0 15px; font-family: Georgia,serif; font-size: clamp(2.4rem, 7vw, 4.3rem); font-weight: 500; line-height: 1.08; }
.prayer-center > p:not(.prayer-eyebrow) { max-width: 390px; margin: 0 0 35px; color: #aeb5b7; line-height: 1.55; }
.prayer-record { display: flex; align-items: center; gap: 10px; padding: 15px 24px; border: 0; border-radius: 999px; color: #25190b; background: linear-gradient(135deg,#f1d5a7,#be8650); font-weight: 750; opacity: .85; }
.prayer-center > small { margin-top: 15px; color: #8b929b; }
.prayer-history { position: fixed; z-index: 25; inset: auto 0 0; padding: 25px 22px max(105px, calc(90px + env(safe-area-inset-bottom))); border: 1px solid var(--line); border-radius: 24px 24px 0 0; background: #111923; box-shadow: 0 -22px 80px rgba(0,0,0,.6); }
.prayer-history[hidden] { display: none; }
.prayer-history-head { display: flex; align-items: center; justify-content: space-between; }
.prayer-history h2 { margin: 0; font-size: 1.3rem; }
.prayer-history-head button { border: 0; color: white; background: transparent; font-size: 1.8rem; cursor: pointer; }
.prayer-calendar-demo { display: grid; grid-template-columns: repeat(7,1fr); gap: 13px 4px; margin: 25px 0; text-align: center; }
.prayer-calendar-demo span { color: #939ca7; font-size: .72rem; }
.prayer-calendar-demo b { font-weight: 500; }
.prayer-history p { color: #aeb5b7; }
.social-page .social-primary, .social-page .leaderboard-button { border-radius: 10px; }
.quiz-card .quiz-art { display: block; width: 100%; aspect-ratio: 4/3; background: radial-gradient(circle at 60% 35%, rgba(234,205,157,.58), transparent 35%), linear-gradient(135deg,#1d3442,#4a4939,#151d2b); }
@media (min-width: 680px) {
  .bible-page, .pray-page { padding-left: 188px; }
  .bible-nav { top: 0; right: auto; bottom: 0; left: 0; width: 188px; padding: 42px 18px; align-content: start; grid-template-columns: 1fr; gap: 8px; border: 0; border-right: 1px solid var(--line); border-radius: 0; transform: none; }
  .bible-nav .nav-item { flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 52px; padding: 0 14px; border: 1px solid transparent; border-radius: 12px; font-size: .83rem; font-weight: 700; }
  .bible-nav .nav-item svg { width: 25px; height: 25px; }
  .bible-nav .nav-item.active { border-color: rgba(232,200,159,.5); background: rgba(232,200,159,.12); }
  .social-page .bible-nav, .profile-page .bible-nav { grid-template-columns: 1fr; }
  .social-page .bible-nav .nav-item.active, .profile-page .bible-nav .nav-item.active { border-color: rgba(232,200,159,.5); color: #f4d9af; background: rgba(232,200,159,.12); }
  .chapter-card { width: min(calc(100% - 80px), 56.25svh); margin: 0 auto; overflow: visible; border-right: 1px solid var(--line); border-left: 1px solid var(--line); }
  .chapter-actions { right: -68px; bottom: 105px; gap: 24px; }
  .chapter-copy { right: 24px; bottom: 45px; }
  .reading-content { padding-bottom: 65px; }
  .pray-shell { padding: 40px 50px; }
  .prayer-center { min-height: calc(100svh - 90px); }
  .prayer-history { top: 0; right: 0; bottom: 0; left: auto; width: min(410px,calc(100% - 188px)); border-radius: 0; padding: 50px 30px; }
}
@media (min-width: 1000px) {
  .bible-page { --book-panel-width: clamp(330px, 30vw, 460px); }
  .bible-feed { width: calc(100% - var(--book-panel-width)); }
  .chapter-card > .chapter-picker-toggle, .chapter-card > .reading-toggle { display: none; }
  .chapter-actions { top: 50%; bottom: auto; gap: 28px; transform: translateY(-50%); }
  .chapter-actions .desktop-scripture, .chapter-actions .desktop-chapter { display: flex; }
  .chapter-actions .desktop-scripture { margin-top: 24px; }
  .chapter-action { color: #d8d8dd; }
  .chapter-action svg { box-sizing: border-box; width: 46px; height: 46px; padding: 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; background: #1b1f25; filter: none; }
  .chapter-share svg { width: 46px; height: 46px; padding: 13px; }
  .chapter-action:hover svg, .chapter-action:focus-visible svg, .desktop-scripture[aria-pressed="true"] svg { border-color: rgba(232,200,159,.55); background: #28303a; }
  .reading-feed { position: fixed; z-index: 30; top: 0; right: 0; width: var(--book-panel-width); height: 100svh; border-left: 1px solid var(--line); background: #121923; }
  .note-feed { position: fixed; z-index: 30; top: 0; right: 0; width: var(--book-panel-width); height: 100svh; padding-left: 0; border-left: 1px solid var(--line); background: #121923; }
  .note-header { position: sticky; top: 0; min-height: 105px; padding: 42px 24px 18px; border-bottom: 0; background: #121923; }
  .note-back { display: none; }
  .note-add { position: static; width: fit-content; min-height: 39px; margin: 0 0 0 auto; padding: 0 12px; white-space: nowrap; }
  .note-list { padding: 0 24px 70px; }
  .note-composer { position: static; width: auto; max-height: none; margin: 0 24px 12px; padding: 16px; border-radius: 12px; box-shadow: none; }
  .note-composer textarea { min-height: 130px; }
  .reading-header { align-items: flex-start; min-height: 105px; padding: 42px 24px 18px; background: #121923; }
  .reading-header .reading-picker-toggle { display: none; }
  .reading-header .reading-play-toggle { display: none; }
  .desktop-reading-heading { display: block; }
  .desktop-reading-heading .chapter-kicker { margin-bottom: 6px; }
  .desktop-reading-heading h2 { margin: 0; color: #fff; font-size: 1.3rem; }
  .reading-content { padding: 16px 24px 70px; }
  .reading-chapter h1, .reading-chapter h2 { font-size: 1.7rem; }
  .reading-chapter p { font-size: 1.02rem; line-height: 1.72; }
  .chapter-picker { top: 0; right: 0; bottom: 0; left: auto; width: var(--book-panel-width); height: 100svh; padding: 42px 24px 22px; border-top: 0; border-right: 0; border-bottom: 0; border-radius: 0; box-shadow: none; }
  .chapter-picker-head button { display: none; }
  .chapter-picker-backdrop { display: none; }
  .chapter-card { width: min(100%, 56.25svh); }
}
