/* Justawonder: soft cream ground, terracotta and rose-brown accents, olive greens, warm gold.
   Lora for titles and Scripture; Nunito for the interface. */
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url(../fonts/nunito-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url(../fonts/nunito-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url(../fonts/nunito-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url(../fonts/nunito-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 400; font-display: swap; src: url(../fonts/lora-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/lora-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 500; font-display: swap; src: url(../fonts/lora-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 600; font-display: swap; src: url(../fonts/lora-latin-600-normal.woff2) format("woff2"); }

:root {
  --ground: #F7F1E8; --paper: #FFFCF7; --well: #F0E7DA; --ink: #3A2A22; --ink2: #5A473C; --muted: #8A786C; --line: #EADFD0; --line2: #DCCDBA;
  --brand: #A55A40; --brand-2: #8E4A33; --brand-ink: #FFFCF7; --brand-soft: #F5E4DA; --rose: #9C6B62; --rose-soft: #F3E2DC;
  --olive: #7D8559; --olive-2: #5F6843; --olive-soft: #E9ECDA; --gold: #C9A15B; --gold-soft: #F6ECD6;
  --good: #5F6843; --good-bg: #E9ECDA; --bad: #A8432F; --bad-bg: #F8E3DC;
  --serif: "Lora", Georgia, "Times New Roman", serif; --ui: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 20px; --r-s: 14px; --pad: 16px; --tabh: 64px; --railw: 96px; --maxw: 980px; --vs: 19px;
  --shadow: 0 1px 2px rgba(80, 50, 30, .05), 0 8px 24px rgba(80, 50, 30, .07);
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --hl-gold: #F6E3A6; --hl-rose: #F4CFC4; --hl-olive: #DCE3BC; --hl-sky: #CFE2EC;
  color-scheme: light;
}
[data-theme="dark"] {
  --ground: #1D1714; --paper: #27201C; --well: #312822; --ink: #F3E9DE; --ink2: #D9CBBC; --muted: #A8978A; --line: #3A2F28; --line2: #4A3D34;
  --brand: #E09A7E; --brand-2: #EBB29A; --brand-ink: #26170F; --brand-soft: #3D2A22; --rose-soft: #3A2925; --olive: #B5BE8C; --olive-2: #C9D1A2; --olive-soft: #2F3123; --gold-soft: #3A3020;
  --good: #C9D1A2; --good-bg: #2F3123; --bad: #F0A08C; --bad-bg: #3E2620; --shadow: none;
  --hl-gold: #5A4A1E; --hl-rose: #5A3328; --hl-olive: #404827; --hl-sky: #24414E; color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--ui); color: var(--ink); background: var(--ground); -webkit-tap-highlight-color: transparent; }
body.noscroll { overflow: hidden; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; text-wrap: balance; }
h2 { font: 600 24px/1.25 var(--serif); }
h3 { font: 800 16px/1.35 var(--ui); display: flex; align-items: center; gap: 8px; }
h3 .ic { color: var(--brand); width: 20px; height: 20px; }
h4 { font: 800 13px/1.4 var(--ui); color: var(--muted); margin: 16px 0 6px; letter-spacing: .03em; text-transform: uppercase; }
p { margin: 0; }
a { color: var(--brand); font-weight: 700; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.big { width: 40px; height: 40px; stroke-width: 1.5; }
.serif { font-family: var(--serif); }
.ital { font-style: italic; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.fine { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.center { text-align: center; }
.lead { font-size: 17px; color: var(--ink2); }
.grow { flex: 1; min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.eyebrow .ic { width: 16px; height: 16px; color: var(--gold); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.gap { gap: 8px; }
.row2 { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- frame ---------- */
#app { min-height: 100dvh; }
.col { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 6px; padding: calc(var(--sat) + 8px) 10px 8px; min-height: 56px; background: color-mix(in srgb, var(--ground) 90%, transparent); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); }
.topbar .ttl { flex: 1; min-width: 0; font: 600 18px/1.2 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.topbar .acts { display: flex; gap: 2px; min-width: 42px; justify-content: flex-end; }
.brandmini { min-width: 42px; }
.iconbtn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--ink); flex: none; }
.iconbtn:hover { background: var(--well); }
.iconbtn.sm { width: 34px; height: 34px; }
.iconbtn.isplaying { background: var(--brand); color: var(--brand-ink); }
.view { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 6px var(--pad) calc(var(--tabh) + var(--sab) + 28px); display: flex; flex-direction: column; gap: 14px; animation: in .22s ease both; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } }
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 6px 4px calc(var(--sab) + 6px); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 14px; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.tab .ic { width: 24px; height: 24px; }
.tab.on { color: var(--brand); }
.tab.on .ic { stroke-width: 2.2; }
.rail { display: none; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.logo img { width: 34px; height: 34px; border-radius: 10px; }
.wordmark { font: 600 20px/1 var(--serif); color: var(--ink); }
.logo.big { justify-content: center; }
.logo.big img { width: 88px; height: 88px; border-radius: 24px; box-shadow: var(--shadow); }
@media (min-width: 900px) {
  .tabbar { display: none; }
  .rail { display: flex; flex-direction: column; gap: 6px; position: fixed; left: 0; top: 0; bottom: 0; width: var(--railw); padding: 18px 8px; background: var(--paper); border-right: 1px solid var(--line); z-index: 30; }
  .railbrand { display: grid; place-items: center; margin-bottom: 14px; }
  .railbrand img { width: 46px; height: 46px; }
  .col { margin-left: var(--railw); }
  .view { padding-bottom: 40px; }
}

/* ---------- cards, lists, buttons ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); color: var(--ink); }
.card.list { padding: 0; gap: 0; overflow: hidden; }
.card.next, .card.feature, .card.prayercard, .card.premcta, .card.quizli, .card.pathcard, .card.profile, .card.pathhead { flex-direction: row; align-items: center; gap: 14px; }
.card.next > div, .card.premcta > div { flex: 1; display: flex; flex-direction: column; }
.card.next small, .card.premcta small { color: var(--muted); font-weight: 600; font-size: 13px; }
.card.next > .ic:first-child, .card.premcta > .ic:first-child { color: var(--brand); }
.card.feature { padding: 14px; }
.card.feature b, .pathcard b { font-size: 17px; }
.feature .grow, .pathcard .grow, .quizli .grow, .prayercard .grow { display: flex; flex-direction: column; gap: 2px; }
.feature small, .pathcard small, .quizli small, .prayercard small { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.pathlist, .quizlist { display: grid; gap: 10px; }
@media (min-width: 700px) { .pathlist, .quizlist { grid-template-columns: 1fr 1fr; } }
.li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; width: 100%; font-weight: 400; min-height: 56px; }
.li:last-child { border-bottom: 0; }
.li:hover { background: var(--well); }
.li > .ic:first-child { color: var(--brand); }
.li > .ic:last-child { color: var(--muted); width: 18px; }
.li .grow { display: flex; flex-direction: column; }
.li b { font-weight: 700; }
.li small { color: var(--muted); font-size: 13.5px; }
.li.danger, .li.danger .ic { color: var(--bad); }
.sect { font: 600 19px/1.2 var(--serif); margin: 14px 2px -2px; display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 15.5px; text-align: center; }
.btn:hover { background: var(--brand-2); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--line2); }
.btn.ghost:hover { background: var(--well); }
.btn.big { min-height: 54px; font-size: 16.5px; width: 100%; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn .ic { width: 20px; height: 20px; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; }
.btnrow .btn { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line2); background: var(--paper); color: var(--ink2); font-weight: 700; font-size: 14px; }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.ok { background: var(--olive-soft); color: var(--olive-2); border-color: transparent; }
.chip .ic { width: 16px; height: 16px; }
.chip.big { min-height: 46px; font-size: 16px; padding: 0 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad); }
.chips::-webkit-scrollbar { display: none; }
.chipbtn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); color: var(--ink2); font-size: 14px; }
.chipbtn .ic { width: 17px; height: 17px; color: var(--brand); }
.seg { display: flex; padding: 4px; gap: 4px; background: var(--well); border-radius: 14px; }
.seg > * { flex: 1; min-height: 40px; padding: 6px 10px; border-radius: 11px; color: var(--muted); display: grid; place-items: center; text-align: center; font-size: 14px; }
.seg > .on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(60, 40, 30, .12); }
.lockpill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; background: var(--gold-soft); color: #8a6420; font: 800 11.5px/1.4 var(--ui); letter-spacing: .02em; }
.lockpill .ic { width: 13px; height: 13px; }
.bar { display: block; height: 7px; border-radius: 99px; background: var(--well); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--brand)); border-radius: inherit; transition: width .4s; }
.num { width: 36px; height: 36px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.num .ic { width: 18px; height: 18px; }
.done .num { background: var(--olive); color: #fff; }
.iline { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.iline span { flex: 1; }
.empty { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); }
.empty .ic { color: var(--rose); }
.empty h3 { color: var(--ink); justify-content: center; }

/* ---------- picture cards (illustration, or a soft gradient with an emoji) ---------- */
.pic { display: grid; place-items: center; flex: none; overflow: hidden; background: linear-gradient(140deg, var(--a), var(--b)); border-radius: 16px; position: relative; }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic img { position: absolute; inset: 0; z-index: 1; }
.pic .ficon { display: grid; place-items: center; width: 44%; max-width: 64px; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--paper) 55%, transparent); color: var(--rose); }
.pic .ficon .ic { width: 52%; height: 52%; stroke-width: 1.4; }
.pic.sm .ficon, .pic.big .ficon { width: 60%; }
.pic.sm { width: 56px; height: 56px; border-radius: 14px; }
.pic.big { width: 84px; height: 84px; border-radius: 18px; }
.pic.wide { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; }
.pic.sq { width: 100%; aspect-ratio: 1; border-radius: 16px; }
[data-theme="dark"] .pic { filter: saturate(.8) brightness(.8); }

/* ---------- Today ---------- */
.hero { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 24px; color: var(--ink); background: radial-gradient(120% 140% at 100% 0%, var(--gold-soft), transparent 55%), linear-gradient(140deg, var(--rose-soft), var(--brand-soft)); border: 1px solid var(--line); }
.herotxt { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.herotxt small { color: var(--muted); font-weight: 700; }
.herotxt h2 { font-size: 26px; }
.herotxt p { color: var(--ink2); font-size: 15px; }
.ringwrap { position: relative; display: grid; place-items: center; color: var(--ink); }
.ringwrap b { position: absolute; font: 600 24px var(--serif); }
.ringwrap b small { font-size: 13px; color: var(--muted); }
.ring { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .rbg { stroke: color-mix(in srgb, var(--paper) 70%, transparent); }
.ring .rfg { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset .6s; }
.statrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.statrow.four { grid-template-columns: repeat(4, 1fr); }
.statrow > * { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-align: center; }
.statrow b { font: 600 20px var(--serif); }
.statrow small { color: var(--muted); font-size: 12px; font-weight: 700; }
.si .ic { width: 20px; height: 20px; color: var(--brand); }
.votd { background: linear-gradient(160deg, var(--paper), var(--gold-soft)); }
.scripture { font-family: var(--serif); font-size: var(--vs); line-height: 1.7; color: var(--ink); }
blockquote.scripture { margin: 0; font-size: calc(var(--vs) + 1px); }
blockquote.scripture.big, .scripture.big { font-size: calc(var(--vs) + 3px); line-height: 1.6; }
cite { font-style: normal; font-weight: 800; color: var(--brand); font-size: 14px; }
.steps .step { min-height: 58px; }
.step .chk { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.step .chk .ic { width: 18px; height: 18px; }
.step.done .chk { background: var(--olive); color: #fff; }
.step.done b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line2); }
.tiles2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.tile > span:last-child { display: flex; flex-direction: column; }
.tile small { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.tile b { font: 600 16px/1.3 var(--serif); }
.prayercard b { font: 600 17px var(--serif); }
.grat .row input { flex: 1; min-width: 0; }
.grat b { display: inline-flex; align-items: center; gap: 8px; }
.grat b .ic { color: var(--rose); }
.explore { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .explore { grid-template-columns: repeat(3, 1fr); } }
.ex { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.ex small { color: var(--muted); font-weight: 600; font-size: 12.5px; }

/* ---------- devotional, lessons ---------- */
.devhead, .versecard, .prayhero, .personhead, .premhero, .donecard { display: flex; flex-direction: column; gap: 8px; }
.devhead h2, .personhead h2 { font-size: 28px; }
.stepsnum { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; counter-reset: s; }
.stepsnum li { flex: 1; counter-increment: s; text-align: center; font-size: 12.5px; padding: 8px 4px; border-radius: 12px; background: var(--well); color: var(--muted); }
.stepsnum li.on { background: var(--brand-soft); color: var(--brand); }
.stepsnum li.past { background: var(--olive-soft); color: var(--olive-2); }
.passage { font-size: var(--vs); }
.passage sup, .chapter sup { font: 800 11px var(--ui); color: var(--gold); margin-right: 3px; vertical-align: super; }
.passage.short { font-size: 16px; color: var(--ink2); }
.points { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.points li::marker { color: var(--brand); }
textarea, input:not([type=checkbox]):not([type=radio]):not([type=range]), select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--ground); font-size: 16px; }
textarea { resize: vertical; line-height: 1.5; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field { display: flex; flex-direction: column; gap: 6px; }
.flabel { font-weight: 700; font-size: 14px; color: var(--ink2); }
.fhint { color: var(--muted); font-size: 12.5px; }
.form { gap: 14px; }
.prayerbox { background: linear-gradient(160deg, var(--paper), var(--rose-soft)); }
.prayerbox p { font-size: 18px; line-height: 1.6; }
.take { background: var(--olive-soft); border-color: transparent; }
.take p { font-size: 18px; color: var(--olive-2); }
[data-theme="dark"] .take p { color: var(--olive); }
.pager { margin-top: 4px; }
.deckcard { align-items: stretch; text-align: center; }
.deckcard h3 { justify-content: center; font: 600 21px var(--serif); }
.deckcard p { font-size: 17.5px; line-height: 1.6; }
.deckcard p.storytext { font-family: var(--serif); font-size: 21px; }
.dots { display: flex; gap: 6px; justify-content: center; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); }
.dots i.on { background: var(--brand); width: 22px; border-radius: 99px; }
.dots i.past { background: var(--gold); }
.opts { display: grid; gap: 10px; }
.opt { min-height: 54px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line2); background: var(--paper); text-align: left; font-weight: 700; font-size: 16px; }
.opt:hover { border-color: var(--brand); }
.opt.right { background: var(--olive-soft); border-color: var(--olive); color: var(--olive-2); }
.opt.wrong { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.feedback { font-weight: 800; color: var(--bad); }
.feedback.ok { color: var(--olive-2); }
.versehead { flex-direction: row; gap: 14px; align-items: flex-start; }
.versehead > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.versehead .scripture { font-size: 16.5px; }
.pathhead > div { flex: 1; }
.storygrid, .peoplegrid, .gamegrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .storygrid, .peoplegrid, .gamegrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .storygrid, .peoplegrid { grid-template-columns: repeat(4, 1fr); } }
.storytile, .person, .gametile { position: relative; display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.storytile b, .person b, .gametile b { font: 600 15.5px/1.3 var(--serif); }
.person small, .gametile small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.tick { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--olive); color: #fff; }
.tick .ic { width: 16px; height: 16px; }
.tick.lock { background: rgba(58, 42, 34, .55); }
.lessonli.done b { color: var(--muted); }
.plangrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .plangrid { grid-template-columns: repeat(3, 1fr); } }
.pday { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.pday b { font: 600 15px var(--serif); }
.pday small { color: var(--muted); font-size: 12px; }
.pday .dn { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--well); color: var(--muted); font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.pday .dn .ic { width: 16px; height: 16px; }
.pday.done .dn { background: var(--olive); color: #fff; }
.pday.next { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.pday.next .dn { background: var(--brand); color: #fff; }
.planhead { background: linear-gradient(160deg, var(--paper), var(--gold-soft)); }
.intro { background: var(--gold-soft); border-color: transparent; }

/* ---------- Bible ---------- */
.search { position: relative; display: flex; align-items: center; }
.search .ic { position: absolute; left: 14px; color: var(--muted); width: 20px; }
.search input { padding-left: 44px !important; border-radius: 99px !important; background: var(--paper) !important; min-height: 48px; }
.books .bookno { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--well); color: var(--muted); font: 600 14px var(--serif); flex: none; }
.books .bookno.part { background: var(--gold-soft); color: #8a6420; }
.books .bookno.full { background: var(--olive); color: #fff; }
.books .bookno .ic { width: 18px; height: 18px; }
.bookintro { background: linear-gradient(160deg, var(--paper), var(--brand-soft)); }
.chgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; }
.chgrid a { aspect-ratio: 1; display: grid; place-items: center; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); font: 600 17px var(--serif); }
.chgrid a.done { background: var(--olive-soft); color: var(--olive-2); border-color: transparent; }
.reading .chapter { padding: 6px 4px; }
.chapter { font-size: var(--vs); line-height: 1.85; }
.bookfocus { font: italic 15px var(--serif); color: var(--muted); margin-bottom: 10px; }
.chapter .v { border-radius: 4px; cursor: pointer; transition: background .2s; padding: 1px 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.chapter .v:hover { background: var(--well); }
.chapter .v.saved sup { color: var(--brand); }
.hl-gold { background: var(--hl-gold) !important; } .hl-rose { background: var(--hl-rose) !important; } .hl-olive { background: var(--hl-olive) !important; } .hl-sky { background: var(--hl-sky) !important; }
.chapter .v.reading { background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-soft); }
.chapter .v.flash { animation: flash 2.2s ease; }
@keyframes flash { 0%, 40% { background: var(--hl-gold); } }
.chapter .sn { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); vertical-align: super; margin-left: 2px; opacity: .7; }
.chapter .vnote .ic { width: 14px; height: 14px; color: var(--brand); vertical-align: -2px; }
.hlrow { display: flex; gap: 12px; align-items: center; }
.hl { width: 40px; height: 40px; border-radius: 50%; border: 2px solid transparent; background: var(--h); }
.hl.on { border-color: var(--ink); }
.hl.clear { background: var(--well); display: grid; place-items: center; color: var(--muted); }
.actgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.actgrid button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; font-weight: 700; }
.actgrid .ic { color: var(--brand); }
.snote { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.snote b { color: var(--brand); font-size: 14px; }
.snote ul { padding-left: 18px; margin: 6px 0 0; }
.snote li { margin-bottom: 6px; }
.snote p { margin: 0 0 4px; }
.xref { color: #4F7A92; font-weight: 700; cursor: pointer; }
[data-theme="dark"] .xref { color: #8EC0D8; }
.locked { position: relative; max-height: 190px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; }
.locked::after { content: ""; position: absolute; left: 0; right: 0; bottom: 48px; height: 80px; background: linear-gradient(transparent, var(--paper)); }
.locked .btn { position: relative; z-index: 1; margin-top: auto; }
.hit .scripture { font-size: 15.5px; line-height: 1.5; color: var(--ink2); }
mark { background: var(--hl-gold); color: inherit; border-radius: 3px; }
.mynote { color: var(--brand) !important; }
.preview { padding: 12px; border-radius: 12px; background: var(--well); }

/* ---------- activities ---------- */
.qtop { display: flex; justify-content: space-between; font-weight: 800; color: var(--muted); font-size: 14px; }
.qtop span { display: inline-flex; align-items: center; gap: 4px; }
.qtop .ic { width: 17px; height: 17px; color: var(--gold); }
.qcard h3 { font: 600 21px/1.35 var(--serif); }
.tfbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.clues { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font: 17px/1.5 var(--serif); }
.wsgrid { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; max-width: 460px; width: 100%; margin: 0 auto; }
.wsgrid button { aspect-ratio: 1; border: 0; border-radius: 8px; background: var(--paper); font: 800 clamp(13px, 4vw, 18px) var(--ui); color: var(--ink); padding: 0; }
.wsgrid button.sel { background: var(--brand); color: #fff; }
.wsgrid button.found { background: var(--olive-soft); color: var(--olive-2); }
.miss { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.wslist { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.wslist span { padding: 6px 12px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); font-weight: 800; font-size: 13px; letter-spacing: .04em; }
.wslist span.found { text-decoration: line-through; color: var(--muted); background: var(--olive-soft); }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 420px; margin: 0 auto; width: 100%; }
@media (min-width: 520px) { .mgrid { grid-template-columns: repeat(4, 1fr); } }
.mc { aspect-ratio: 3 / 4; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); position: relative; padding: 4px; font: 600 15px var(--serif); color: var(--ink); }
.mc .front, .mc .back { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; transition: opacity .2s; padding: 4px; }
.mc .front { background: linear-gradient(140deg, var(--brand-soft), var(--rose-soft)); color: var(--brand); }
.mc .back { opacity: 0; font-size: 15px; }
.mc .back:only-child, .mc.up .back { opacity: 1; }
.mc.up .front { opacity: 0; }
.mc.got { background: var(--olive-soft); border-color: var(--olive); }
.mc .back { font-size: clamp(14px, 4vw, 16px); }
.orderchips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip.ok { background: var(--olive-soft); }
.orderdone { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-left: 22px; margin: 0; color: var(--olive-2); font-weight: 700; }
.blank { color: var(--line2); letter-spacing: .05em; }
.blank.cur { color: var(--brand); }
.filled { color: var(--olive-2); }
.donecard { text-align: center; align-items: center; }
.donecard h2 { font-size: 26px; }

/* ---------- me ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font: 600 18px var(--serif); flex: none; }
.avatar.big { width: 54px; height: 54px; font-size: 22px; }
.profile .grow { display: flex; flex-direction: column; }
.profile small { color: var(--muted); font-size: 13.5px; }
.premcta { background: linear-gradient(140deg, var(--gold-soft), var(--brand-soft)); border-color: transparent; }
.premcta b { color: var(--ink); }
.jli .fic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--rose-soft); color: var(--rose); flex: none; }
.weekchart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 120px; align-items: end; }
.weekchart > div { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.weekchart span { width: 100%; max-width: 30px; min-height: 4px; border-radius: 8px 8px 4px 4px; background: var(--gold); }
.weekchart span.full { background: var(--olive); }
.weekchart small { color: var(--muted); font-weight: 700; font-size: 12px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal b { font-size: 12px; color: var(--muted); }
.cal span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.cal span.on { background: var(--olive); color: #fff; }
.cal span.today { box-shadow: 0 0 0 2px var(--brand); }
.badgegrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .badgegrid { grid-template-columns: repeat(3, 1fr); } }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 16px 10px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); opacity: .6; }
.badge .bic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--well); color: var(--muted); }
.badge.got { opacity: 1; }
.badge.got .bic { background: linear-gradient(140deg, var(--gold), var(--brand)); color: #fff; }
.badge b { font: 600 15px var(--serif); }
.badge small { color: var(--muted); font-size: 12.5px; }
.perks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.perks.card { padding: 18px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; }
.perks li > .ic:first-child { color: var(--brand); margin-top: 2px; }
.perks li > .ic:last-child { color: var(--olive); }
.perks span { flex: 1; display: flex; flex-direction: column; }
.perks small { color: var(--muted); font-size: 13.5px; }
.premhead { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 14px; }
.premhead .ic { color: var(--gold); }
.premhero { text-align: center; align-items: center; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; }
.setting > span { display: flex; flex-direction: column; flex: 1; }
.setting small { color: var(--muted); font-size: 13px; }
.setting select, .setting input[type=time] { width: auto; min-width: 120px; }
.setting input[type=range] { width: 46%; accent-color: var(--brand); }
.switch { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 99px; background: var(--line2); position: relative; flex: none; cursor: pointer; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch:checked { background: var(--olive); }
.switch:checked::after { transform: translateX(20px); }
.howto { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.okline { color: var(--olive-2); font-weight: 700; }
.errline { color: var(--bad); font-weight: 700; background: var(--bad-bg); padding: 10px 12px; border-radius: 12px; }

/* ---------- setup and login ---------- */
.setup, .authpage { min-height: 100dvh; display: grid; place-items: center; padding: calc(var(--sat) + 20px) 16px calc(var(--sab) + 20px); background: radial-gradient(100% 60% at 50% 0%, var(--rose-soft), transparent 70%), var(--ground); }
.setupcard, .authcard { width: min(480px, 100%); display: flex; flex-direction: column; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 28px 22px; box-shadow: var(--shadow); }
.setupcard h1, .authhead h1 { font: 600 28px/1.2 var(--serif); text-align: center; }
.setupcard > p { text-align: center; }
.levels { display: grid; gap: 10px; }
.level { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line2); cursor: pointer; }
.level input { position: absolute; opacity: 0; }
.level .emo { grid-row: span 2; font-size: 28px; }
.level small { color: var(--muted); font-size: 13px; }
.level:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.authback { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); }
.authback .ic { width: 18px; height: 18px; }
.authlogo { display: flex; justify-content: center; }
.authtabs { display: flex; padding: 4px; gap: 4px; background: var(--well); border-radius: 14px; }
.authtabs a { flex: 1; text-align: center; padding: 9px; border-radius: 11px; color: var(--muted); font-size: 14px; }
.authtabs a.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(60, 40, 30, .12); }
.authhead { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.authic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.authin { position: relative; display: flex; align-items: center; }
.authin > .ic { position: absolute; left: 12px; color: var(--muted); width: 20px; }
.authin input { padding-left: 42px !important; }
.pweye { position: absolute; right: 6px; border: 0; background: none; color: var(--muted); padding: 6px; }
.authlink { text-align: center; font-size: 14px; }
.authhelp { text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- sheets, toasts, offline ---------- */
.sheetwrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.scrim { position: absolute; inset: 0; background: rgba(40, 25, 15, .4); opacity: 0; transition: opacity .25s; }
.sheetwrap.open .scrim { opacity: 1; }
.sheet { position: relative; width: 100%; max-height: 88dvh; overflow: auto; background: var(--paper); border-radius: 24px 24px 0 0; padding: 6px 18px calc(var(--sab) + 20px); transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; gap: 12px; }
.sheetwrap.open .sheet { transform: none; }
.grab { width: 40px; height: 5px; border-radius: 99px; background: var(--line2); margin: 6px auto 0; flex: none; touch-action: none; }
.sheethead { display: flex; align-items: center; justify-content: space-between; position: sticky; top: -6px; background: var(--paper); padding: 6px 0; z-index: 1; }
.sheethead h2 { font-size: 20px; }
.sheetbody { display: flex; flex-direction: column; gap: 12px; }
.sheet .list .li { padding-left: 4px; padding-right: 4px; }
@media (min-width: 700px) {
  .sheetwrap { align-items: center; }
  .sheet { width: min(560px, 94vw); border-radius: 24px; transform: translateY(16px); opacity: 0; transition: transform .22s, opacity .22s; padding-bottom: 22px; }
  .sheet.wide { width: min(760px, 94vw); }
  .sheetwrap.open .sheet { opacity: 1; }
  .grab { display: none; }
}
#toasts { position: fixed; z-index: 80; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabh) + var(--sab) + 14px); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: 92vw; }
.toast { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 14px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 14.5px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); animation: tin .25s ease; }
.toast .ic { width: 18px; height: 18px; color: var(--gold); }
.toast.err .ic { color: #F0A08C; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
#offline { position: fixed; z-index: 70; top: calc(var(--sat) + 8px); left: 50%; transform: translateX(-50%); padding: 8px 14px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 700; width: max-content; max-width: 92vw; text-align: center; }

/* ---------- refinements: women's devotional look, desktop alignment ---------- */
.rail .tab { flex: none; padding: 10px 4px; }
@media (min-width: 900px) {
  .brandmini { display: none; }
  .topbar { padding: 18px max(24px, calc((100% - 920px) / 2 + 24px)) 8px; }
  .topbar .ttl { text-align: left; font-size: 24px; }
  .subpage .topbar .ttl { text-align: center; }
  .view { max-width: 920px; padding-left: 24px; padding-right: 24px; }
  .storygrid, .peoplegrid, .gamegrid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  #deck, .reading .chapter { max-width: 680px; width: 100%; margin-left: auto; margin-right: auto; }
  .hero { padding: 26px 28px; }
}
.storytile small { color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.deckcard.story { text-align: left; }
.deckcard.story h3, .deckcard h3 { justify-content: flex-start; text-align: left; }
.deckcard { text-align: left; }
.deckcard .eyebrow { margin-top: 4px; }
.deckcard p.storytext { font-size: 19px; line-height: 1.65; }
.doneic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--olive-soft); color: var(--olive-2); margin: 4px auto 2px; }
.doneic .ic { width: 30px; height: 30px; }
.lvic { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--olive-soft); color: var(--olive-2); }
.lvic .ic { width: 18px; height: 18px; }
.level { grid-template-columns: 46px 1fr; }
.statrow b small { font-size: 12px; color: var(--muted); }
.mc .back { font: 600 13px/1.3 var(--serif); padding: 8px; text-align: center; }
.tick.lock { background: rgba(58, 42, 34, .45); }

/* ---------- Bible: realistic book images, chapter header, verse lines ---------- */
.pic.thumb { width: 52px; height: 52px; border-radius: 12px; }
.pic.thumb .ficon { width: 70%; }
.bookli { padding-top: 10px; padding-bottom: 10px; }
.bookli .chip.ok { padding: 0 8px; min-height: 28px; }
.bookhero { position: relative; border-radius: 24px; overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; box-shadow: var(--shadow); }
.pic.hero { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.bookhero-txt { position: relative; z-index: 2; width: 100%; padding: 70px 22px 20px; color: #fff; background: linear-gradient(transparent, rgba(30, 18, 10, .78)); }
.bookhero-txt small { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; opacity: .9; }
.bookhero-txt h2 { font-size: clamp(30px, 6vw, 44px); color: #fff; }
.bookhero-txt p { font: italic 17px var(--serif); opacity: .95; }
@media (min-width: 900px) { .bookhero { min-height: 320px; } }
.chgrid a.next { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.chaphead { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-radius: 20px; overflow: hidden; min-height: 150px; padding: 16px 18px; box-shadow: var(--shadow); }
.pic.banner { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.chaphead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(30, 18, 10, .72), rgba(30, 18, 10, .15) 70%); z-index: 1; }
.chaphead-txt, .chaphead .listenbtn { position: relative; z-index: 2; }
.chaphead-txt { color: #fff; }
.chaphead-txt small { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; opacity: .9; }
.chaphead-txt h2 { color: #fff; font-size: 30px; }
.chaphead .listenbtn { background: rgba(255, 252, 247, .94); color: var(--brand); }
.reading .chaphead { max-width: 680px; width: 100%; margin: 0 auto; }
.chapter.lines .v { display: block; padding: 6px 8px; margin: 0 -8px; border-radius: 10px; line-height: 1.7; }
.chapter.lines .v + .v { margin-top: 2px; }
.chapter .sn { width: 5px; height: 5px; opacity: .45; }
.listen { align-self: flex-start; }
.storybar { align-items: center; }
.devhead .listen, .prayhero .listen, .personhead .listen { margin-top: 6px; }

/* ---------- audio player ---------- */
#player { position: fixed; z-index: 40; left: 10px; right: 10px; bottom: calc(var(--tabh) + var(--sab) + 10px); display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: var(--ink); color: var(--paper); box-shadow: 0 12px 30px rgba(30, 18, 10, .3); max-width: 720px; margin: 0 auto; animation: tin .25s ease; }
#player .pmeta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#player .pmeta b { font: 600 15px var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#player .pmeta small { opacity: .7; font-size: 12px; }
#player .pseek { display: flex; align-items: center; gap: 8px; font-size: 11px; opacity: .85; }
#player .pseek input { flex: 1; accent-color: var(--gold); height: 18px; }
#player .pbtn { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: inherit; flex: none; font: 800 12px var(--ui); }
#player .pbtn.main { width: 46px; height: 46px; background: var(--gold); color: #2a1a10; }
#player .pbtn .ic { width: 20px; height: 20px; }
#player .pbtn.main .ic { fill: currentColor; }
body.hasplayer .view { padding-bottom: calc(var(--tabh) + var(--sab) + 110px); }
@media (min-width: 900px) { #player { left: calc(var(--railw) + 20px); bottom: 18px; } body.hasplayer .view { padding-bottom: 120px; } }
