/* Starry night: always dark. Glass surfaces let the starfield (stars.js) show through. */
:root {
  --bg: #000;
  --surface: rgba(16, 18, 28, .62);
  --surface-2: rgba(255, 255, 255, .08);
  --surface-solid: #0b0d14;
  --text: #eef0f6;
  --muted: #9aa3b8;
  --line: rgba(255, 255, 255, .1);
  --accent: #e3a548;        /* starlight gold */
  --accent-ink: #1a1206;
  --accent-soft: rgba(188, 211, 232, .16);
  --calm: #8fb8e8;
  --good: #5cc28f;
  --danger: #e0796b;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, .8);
  --glass: blur(16px) saturate(130%);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --radius: 20px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(ellipse 120% 70% at 50% 120%, rgba(40, 52, 110, .35), transparent 60%),
              radial-gradient(ellipse 80% 50% at 85% -10%, rgba(90, 60, 140, .18), transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) 0 calc(76px + env(safe-area-inset-bottom));
}
main { max-width: 560px; margin: 0 auto; padding: 20px 16px 24px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; }
h1 { font-family: var(--serif); font-weight: 600; font-size: 30px; letter-spacing: -.01em; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-top: 28px; }
p { margin: 0 0 .8em; }
a { color: var(--calm); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
main, .tabbar, .toast { position: relative; z-index: 1; }

.card {
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass);
  backdrop-filter: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.sync-dot { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.sync-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.sync-dot.off::before { background: var(--muted); }

/* Streak */
.streak { text-align: center; padding: 26px 18px; background: linear-gradient(160deg, var(--surface) 30%, var(--accent-soft)); }
.streak .num { font-family: var(--serif); font-size: 72px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.streak .label { color: var(--muted); margin-top: 6px; }

/* Verse */
.verse { font-family: var(--serif); font-size: 19px; line-height: 1.55; margin: 0 0 16px; padding-left: 14px; border-left: 3px solid var(--accent); }
.verse cite { display: block; font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--muted); margin-top: 8px; letter-spacing: .02em; }
.verse.big { font-size: 23px; }

/* Buttons */
button, .btn {
  font: inherit; cursor: pointer; border: 0; border-radius: 14px; padding: 13px 18px;
  background: var(--surface-2); color: var(--text); font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
}
button:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--calm); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--muted); font-weight: 500; }
.btn-good { background: var(--good); color: #fff; }
.btn-block { width: 100%; }
.tempted {
  width: 100%; min-height: 84px; font-size: 22px; border-radius: 22px;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px var(--accent);
  margin: 6px 0 10px;
}
.tempted:active { transform: scale(.98); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }

/* Bars */
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: 10px; font-size: 14px; }
.bar .track { height: 10px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--accent); border-radius: 6px; }
.bar .n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 500; font-size: 15px;
}
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Forms */
label { display: block; font-weight: 600; margin: 16px 0 8px; }
input[type="text"], input[type="tel"], input[type="date"], textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px;
}
textarea { min-height: 90px; resize: vertical; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* Flow (tempted / fell) */
.flow { min-height: calc(100dvh - 140px); display: flex; flex-direction: column; }
.flow .grow { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.flow .steps { display: flex; gap: 6px; margin-bottom: 20px; }
.flow .steps i { flex: 1; height: 3px; border-radius: 4px; background: var(--line); transition: background .4s var(--ease), box-shadow .4s; }
.flow .steps i.on { background: var(--accent); box-shadow: 0 0 10px rgba(188, 211, 232, .6); }
.hero-line { font-family: var(--serif); font-size: 34px; line-height: 1.15; font-weight: 600; margin-bottom: 18px; }
.reasons { list-style: none; padding: 0; margin: 0; }
.reasons li { padding: 10px 0; border-top: 1px solid var(--line); }
.reasons li:first-child { border-top: 0; }

/* Breath */
.breath { display: grid; place-items: center; margin: 12px 0 20px; }
.breath .circle {
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--accent-soft), transparent 70%);
  border: 2px solid var(--accent); display: grid; place-items: center; text-align: center; padding: 20px;
  font-family: var(--serif); font-size: 18px; transform: scale(.7); transition: transform 4s ease-in-out;
}
.breath .circle.in { transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .breath .circle { transition: none; transform: none; } }

/* Escape list */
.escape { display: grid; gap: 10px; }
.escape a, .escape button {
  justify-content: flex-start; text-align: left; background: var(--surface); border: 1px solid var(--line); font-weight: 500;
}

/* Lists */
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .when { font-size: 13px; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); margin-right: 4px; }
.tag.good { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.tag.fell { background: color-mix(in srgb, var(--calm) 18%, transparent); color: var(--calm); }
.icon-btn { min-height: 36px; padding: 6px 10px; font-size: 13px; background: transparent; color: var(--muted); border: 1px solid var(--line); }
.domain { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; word-break: break-all; }

.keybox { font-family: ui-monospace, Menlo, monospace; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; word-break: break-all; font-size: 14px; }
details { border-top: 1px solid var(--line); padding: 12px 0; }
details summary { cursor: pointer; font-weight: 600; }
details ol { padding-left: 20px; margin: 10px 0 0; }
details li { margin-bottom: 6px; }

/* Tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); text-decoration: none; padding: 6px 0; }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.on { color: var(--accent); }
body.focus .tabbar { display: none; }
body.focus { padding-bottom: env(safe-area-inset-bottom); }

.toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.celebrate { text-align: center; }
.celebrate .big { font-family: var(--serif); font-size: 64px; font-weight: 600; color: var(--good); line-height: 1; }

/* Photos */
.photo {
  position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 18px;
  min-height: 170px; padding: 20px; color: #fff; background: #1d2640 center / cover no-repeat;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 12, 24, .05) 0%, rgba(8, 12, 24, .72) 100%); }
.photo > * { position: relative; }
.photo.tall { min-height: 260px; }
.photo.short { min-height: 140px; }
.photo.center { text-align: center; justify-content: center; }
.photo .hero-line { color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.photo.streak-photo { min-height: 240px; text-align: center; justify-content: center; }
.photo.streak-photo::before { background: linear-gradient(180deg, rgba(8, 12, 24, .25), rgba(8, 12, 24, .6)); }
.photo .num { font-family: var(--serif); font-size: 76px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.photo .label { opacity: .9; margin-top: 6px; }
.kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; opacity: .85; }
.bignum { font-family: var(--serif); font-size: 52px; line-height: 1.05; font-weight: 600; margin: 4px 0; }

/* Home cards */
.plan-cta { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); border-color: var(--accent); }
.plan-cta b::after { content: " →"; color: var(--accent); }
.reclaim-card .kicker { color: var(--muted); }
.reclaim-card .mid { font-size: 18px; margin: 4px 0 6px; }
.reclaim-card .mid b { font-family: var(--serif); font-size: 40px; color: var(--accent); }

/* Onboarding */
.flowtop { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.flowtop .btn-ghost { padding-left: 0; }
.options { display: grid; gap: 10px; margin-top: 8px; }
.option { justify-content: flex-start; background: var(--surface); border: 1px solid var(--line); font-weight: 500; min-height: 56px; }
.option[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.hours { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 24px 0 16px; text-align: center; }
.hours b { display: block; font-family: var(--serif); font-size: 64px; line-height: 1; font-variant-numeric: tabular-nums; min-width: 2.5ch; }
.hours span { color: var(--muted); font-size: 14px; }
.round { width: 56px; height: 56px; border-radius: 50%; font-size: 26px; padding: 0; background: var(--surface); border: 1px solid var(--line); }
.reclaim { list-style: none; margin: 0; padding: 0; }
.reclaim li { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--line); }
.reclaim li:first-child { border-top: 0; padding-top: 0; }
.reclaim b { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.reclaim span { font-family: var(--serif); font-size: 20px; }

.stakes { display: flex; gap: 10px; margin-bottom: 6px; }
.stakes > div { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; }
.stakes b { display: block; font-family: var(--serif); font-size: 34px; line-height: 1.1; color: var(--accent); }
.stakes span { font-size: 13px; color: var(--muted); }
.punch { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 12px 0 18px; }

/* Partner, letter */
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; margin: 10px 0; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.letter-media { width: 100%; max-height: 60vh; border-radius: 14px; background: #000; display: block; margin-bottom: 10px; }
audio.letter-media { background: transparent; }
.letter-card .kicker { color: var(--accent); margin-bottom: 8px; }
.rec-dot { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.rec-dot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--danger); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .3; } }
button:disabled { opacity: .45; cursor: not-allowed; }

/* Auth */
.seg { display: flex; background: var(--surface-2); border-radius: 14px; padding: 4px; margin: 6px 0 14px; }
.seg button { flex: 1; min-height: 40px; background: transparent; font-weight: 600; color: var(--muted); }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
input[type="email"], input[type="password"] {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px;
}

/* ---------- Starry polish ---------- */
.stat, .stakes > div, .option, .chip, .escape a, .escape button, .round {
  background: var(--surface); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass);
}
input[type="text"], input[type="tel"], input[type="date"], input[type="email"], input[type="password"], textarea {
  background: rgba(255, 255, 255, .04); border-color: var(--line); transition: border-color .2s, background .2s;
}
input:focus, textarea:focus { border-color: rgba(188, 211, 232, .6); background: rgba(255, 255, 255, .07); outline: none; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.6); }

.tabbar { background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); border-top-color: rgba(255, 255, 255, .08); }
.tabbar a { transition: color .25s var(--ease), transform .25s var(--ease); }
.tabbar a.on { color: var(--accent); text-shadow: 0 0 18px rgba(188, 211, 232, .5); }
.tabbar a:active { transform: scale(.92); }
.toast { background: rgba(238, 240, 246, .95); color: #05060a; transition: opacity .35s var(--ease), transform .35s var(--ease); }

/* Buttons: soft press, glow on primary */
button, .btn { transition: transform .18s var(--ease), background .25s, box-shadow .25s, opacity .2s; -webkit-tap-highlight-color: transparent; }
button:active, .btn:active { transform: scale(.97); }
.btn-primary, .tempted { background: linear-gradient(180deg, #f0b85e, #d9963a); color: var(--accent-ink); }
.btn-primary { box-shadow: 0 6px 24px -8px rgba(188, 211, 232, .7); }
.tempted { box-shadow: 0 0 0 1px rgba(255, 255, 255, .22) inset, 0 12px 44px -10px rgba(188, 211, 232, .85); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .22) inset, 0 12px 60px -6px rgba(188, 211, 232, 1); } }
.chip[aria-pressed="true"], .seg button[aria-selected="true"] { box-shadow: 0 0 18px -4px rgba(188, 211, 232, .6); }
.seg { background: rgba(255, 255, 255, .06); }
.seg button[aria-selected="true"] { background: rgba(255, 255, 255, .12); }

/* Screen transitions */
.enter > * { animation: rise .5s var(--ease) both; }
.enter > *:nth-child(2) { animation-delay: .04s; }
.enter > *:nth-child(3) { animation-delay: .08s; }
.enter > *:nth-child(4) { animation-delay: .12s; }
.enter > *:nth-child(n+5) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Photos blend into the night */
.photo { box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, .06); }
.photo::before { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .75) 100%); }
.photo .num, .bignum { text-shadow: 0 0 30px rgba(255, 220, 160, .45); }
.streak-photo .num { color: #fff; }
.hero-line { letter-spacing: -.01em; }
.verse { border-left-color: rgba(188, 211, 232, .7); }
.verse.warn { border-left-color: rgba(224, 121, 107, .75); }

/* Word tab */
.warrior { position: relative; overflow: hidden; }
.warrior .who { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.warrior .who b { font-family: var(--serif); font-size: 26px; }
.warrior .who span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: right; }
.warrior .fell { font-size: 17px; margin: 8px 0 14px; }
.warrior .lesson { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--accent); margin: 14px 0 0; }
.warrior.ran { border-color: rgba(92, 194, 143, .35); }
.warrior.ran .lesson { color: var(--good); }
.warrior details summary { color: var(--muted); font-size: 14px; margin-top: 12px; }
.mini-warrior { display: block; text-decoration: none; color: var(--text); }
.mini-warrior .kicker { color: var(--danger); margin-bottom: 4px; }
.mini-warrior p { margin: 0; font-family: var(--serif); font-size: 18px; }
.mini-warrior span { color: var(--muted); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .enter > *, .tempted { animation: none; } }
.seg button { min-width: 0; padding: 8px 6px; font-size: 14px; white-space: nowrap; }

/* ---------- Black + cream palette (no navy, no gold) ---------- */
:root {
  --cream: #f4ede0;
  --ink: #1a1714;
  --ink-muted: #6b6358;
  --accent: var(--cream);
  --accent-ink: var(--ink);
  --accent-soft: rgba(244, 237, 224, .12);
  --danger: #c0705f;
  --good: #8fc4a5;
  --calm: #d8cfc0;
}
body { background: #000; }

/* Cream text boxes: everything inside reads as dark ink on cream. */
.card, .stat, .stakes > div, .option, .chip, .escape a, .escape button, .round, .seg,
input[type="text"], input[type="tel"], input[type="date"], input[type="email"], input[type="password"], textarea {
  --text: var(--ink);
  --muted: var(--ink-muted);
  --line: rgba(26, 23, 20, .12);
  --surface-2: rgba(26, 23, 20, .06);
  --accent: var(--ink);
  --accent-ink: var(--cream);
  --accent-soft: rgba(26, 23, 20, .07);
  --danger: #9c4a3a;
  --good: #3f7a5a;
  --calm: #5b4f40;
  background: var(--cream);
  color: var(--ink);
  border-color: rgba(26, 23, 20, .1);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.card { box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 18px 50px -20px rgba(0, 0, 0, .9); }
.card a { color: var(--ink); }
.card .btn:not(.btn-primary), .card button:not(.btn-primary):not(.chip):not(.option) { background: rgba(26, 23, 20, .07); color: var(--ink); }
.card .btn-primary { background: var(--ink); color: var(--cream); box-shadow: none; }
.card .icon-btn { background: transparent; border-color: rgba(26, 23, 20, .18); color: var(--ink-muted); }
.card details { border-top-color: rgba(26, 23, 20, .12); }
input::placeholder, textarea::placeholder { color: #9a9083; }
input:focus, textarea:focus { border-color: var(--ink); background: #fbf7ef; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: none; opacity: .6; }
.keybox { background: rgba(26, 23, 20, .07); color: var(--ink); }
.check input { accent-color: var(--ink); }

/* Primary actions on black: cream with a soft white glow */
.btn-primary, .tempted { background: var(--cream); color: var(--ink); }
.btn-primary { box-shadow: 0 6px 24px -10px rgba(255, 255, 255, .45); }
.tempted { box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 12px 44px -12px rgba(255, 255, 255, .55); animation: breathe-cream 5s ease-in-out infinite; }
@keyframes breathe-cream { 50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 12px 60px -8px rgba(255, 255, 255, .75); } }
.btn:not(.btn-primary):not(.tempted), button:not(.btn-primary):not(.chip):not(.option):not(.round) { background: transparent; color: var(--cream); box-shadow: 0 0 0 1px rgba(244, 237, 224, .25) inset; }
.btn-ghost, .btn-ghost:not(.btn-primary) { box-shadow: none !important; color: #b9b1a4; }
.tabbar a.on { color: var(--cream); text-shadow: 0 0 16px rgba(255, 255, 255, .45); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); box-shadow: none; }
.option[aria-pressed="true"] { background: #e7dcc8; border-color: var(--ink); }
.seg button { color: var(--ink-muted); box-shadow: none !important; background: transparent; }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--cream); }
.flow .steps i.on { background: var(--cream); box-shadow: 0 0 10px rgba(255, 255, 255, .45); }
.verse { border-left-color: rgba(244, 237, 224, .55); }
.card .verse { border-left-color: rgba(26, 23, 20, .35); }
.verse.warn, .card .verse.warn { border-left-color: #9c4a3a; }
.photo .num, .bignum { text-shadow: 0 0 30px rgba(255, 255, 255, .35); }
.reclaim-card .mid b, .stakes b, .warrior .lesson { color: var(--ink); }
.warrior.ran .lesson { color: #3f7a5a; }
.mini-warrior .kicker, .letter-card .kicker { color: #9c4a3a; }
.breath .circle { border-color: var(--cream); background: radial-gradient(circle at 50% 40%, rgba(244, 237, 224, .14), transparent 70%); }
.toast { background: var(--cream); color: var(--ink); }
.sync-dot::before { background: #8fc4a5; }
.bar .fill { background: var(--ink); }
.bar .track { background: rgba(26, 23, 20, .08); }
.tag { background: rgba(26, 23, 20, .08); color: var(--ink); }
.tag.good { background: rgba(63, 122, 90, .15); color: #3f7a5a; }
.tag.fell { background: rgba(91, 79, 64, .15); color: #5b4f40; }
.plan-cta { border-color: rgba(26, 23, 20, .2); }
.plan-cta b::after { color: var(--ink); }
h2 { color: #b9b1a4; }
.card h2 { color: var(--ink-muted); }
.muted { color: var(--muted); }
:root { --muted: #b9b1a4; }
.card .btn-ghost { color: var(--ink-muted) !important; }
.tabbar { background: rgba(0, 0, 0, .88); }
.tabbar a { color: #8d867b; }
/* Buttons inside cream boxes: ink, never cream-on-cream */
.card button:not(.btn-primary):not(.chip):not(.option):not(.btn-ghost),
.card .btn:not(.btn-primary):not(.btn-ghost) { background: rgba(26, 23, 20, .07) !important; color: var(--ink) !important; box-shadow: none !important; }
.card .btn-primary { background: var(--ink) !important; color: var(--cream) !important; }
.seg button { color: var(--ink-muted) !important; background: transparent !important; box-shadow: none !important; }
.seg button[aria-selected="true"] { background: var(--ink) !important; color: var(--cream) !important; }
.chip { color: var(--ink) !important; background: var(--cream) !important; box-shadow: none !important; }
.chip[aria-pressed="true"] { background: var(--ink) !important; color: var(--cream) !important; }
.option, .round, .escape a, .escape button { color: var(--ink) !important; background: var(--cream) !important; box-shadow: none !important; }
.option[aria-pressed="true"] { background: #e7dcc8 !important; }

/* What's at stake */
.stake .kicker { color: #9c4a3a; margin-bottom: 6px; }
.stake .punchline { font-family: var(--serif); font-size: 21px; line-height: 1.35; font-weight: 600; margin: 0 0 14px; }
.stake .verse { font-size: 16px; margin-bottom: 10px; }
.stake .verse:last-child { margin-bottom: 0; }
.research .kicker { color: var(--ink-muted); margin-bottom: 8px; }
.research ul { list-style: none; margin: 0; padding: 0; }
.research li { padding: 10px 0; border-top: 1px solid rgba(26, 23, 20, .12); font-size: 15px; line-height: 1.45; }
.research li:first-child { border-top: 0; padding-top: 0; }
.research li span { display: block; font-size: 12px; color: var(--ink-muted); margin-top: 4px; }
.research a { color: var(--ink-muted) !important; }

/* One-at-a-time "what's at stake" slides */
.slide-wrap { min-height: 52vh; display: flex; align-items: center; }
.slide { width: 100%; padding: 26px 22px; cursor: pointer; user-select: none; -webkit-user-select: none; }
.slide .kicker { color: #9c4a3a; margin-bottom: 10px; }
.slide.fact .kicker { color: var(--ink-muted); }
.slide .punchline { font-family: var(--serif); font-size: 26px; line-height: 1.3; font-weight: 600; margin: 0 0 18px; }
.slide.fact .punchline { font-size: 22px; }
.slide .source { font-size: 12px; color: var(--ink-muted); margin: -6px 0 0; }
.slide .reasons li { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.slide .verse { font-size: 17px; margin: 0; }
.from-right { animation: slide-in-r .45s var(--ease) both; }
.from-left { animation: slide-in-l .45s var(--ease) both; }
@keyframes slide-in-r { from { opacity: 0; transform: translateX(28px) scale(.98); } }
@keyframes slide-in-l { from { opacity: 0; transform: translateX(-28px) scale(.98); } }
.dots { display: flex; justify-content: center; gap: 7px; margin: 18px 0 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(244, 237, 224, .25); transition: all .3s var(--ease); }
.dots i.on { width: 18px; border-radius: 4px; background: var(--cream); }
@media (prefers-reduced-motion: reduce) { .from-right, .from-left { animation: none; } }
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
.slide-wrap { touch-action: pan-y; }

/* Private blocklist */
.lockcard { text-align: center; padding: 28px 22px; }
.lockcard h3 { font-family: var(--serif); font-size: 24px; margin: 10px 0 4px; }
.lock-icon svg { width: 42px; height: 42px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.pin-input { text-align: center; font-size: 26px !important; letter-spacing: .5em; padding-left: .5em !important; }
.titlebar { display: flex; align-items: center; justify-content: space-between; }
.titlebar .icon-btn { color: var(--cream); border-color: rgba(244, 237, 224, .3); }
.pulse { animation: pulse-ring 1.6s ease-out 2; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(244, 237, 224, .5) inset; } 100% { box-shadow: 0 0 0 14px rgba(244, 237, 224, 0) inset; } }
.slide .quote { font-style: italic; }
.feel-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.feel-tags span { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(156, 74, 58, .1); color: #9c4a3a; }

/* Brain milestones */
.milestones .kicker { color: var(--ink-muted); margin-bottom: 6px; }
.ms-head { display: flex; align-items: baseline; justify-content: space-between; }
.ms-head b { font-family: var(--serif); font-size: 30px; }
.ms-head span { color: var(--ink-muted); font-size: 14px; }
.ms-bar { height: 6px; border-radius: 6px; background: rgba(26, 23, 20, .1); overflow: hidden; margin: 8px 0 14px; }
.ms-bar i { display: block; height: 100%; background: var(--ink); border-radius: 6px; transition: width .8s var(--ease); }
.ms-list { list-style: none; margin: 0; padding: 0; }
.ms details { border-top: 1px solid rgba(26, 23, 20, .1); padding: 10px 0; }
.ms:first-child details { border-top: 0; }
.ms summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 15px; }
.ms summary::-webkit-details-marker { display: none; }
.ms summary b { min-width: 62px; }
.ms-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(26, 23, 20, .35); flex: none; }
.ms.done .ms-dot { background: #3f7a5a; border-color: #3f7a5a; }
.ms.next .ms-dot { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26, 23, 20, .12); }
.ms.later summary { color: var(--ink-muted); }
.ms p { margin: 8px 0 4px 22px; font-size: 15px; line-height: 1.5; }
.ms-src { display: block; margin-left: 22px; font-size: 12px; color: var(--ink-muted) !important; }
.ms summary b { min-width: 72px; white-space: nowrap; }
.benefit { margin: 10px 0 4px 22px; padding-top: 8px; border-top: 1px dashed rgba(26, 23, 20, .12); }
.benefit:first-of-type { border-top: 0; padding-top: 0; }
.b-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.b-area { font-weight: 700; font-size: 14px; }
.b-ev { font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.b-ev.measured { background: rgba(63, 122, 90, .14); color: #3f7a5a; }
.b-ev.reported { background: rgba(26, 23, 20, .07); color: var(--ink-muted); }
.benefit p { margin: 6px 0 4px; font-size: 15px; line-height: 1.5; }
.benefit .ms-src { margin-left: 0; }
.b-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.b-chips span { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--cream); }
.ms-note { font-size: 12px; color: var(--ink-muted); margin: 10px 0 0; }

/* Forgiven */
.fstep { display: flex; gap: 14px; }
.fnum { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 18px; }
.fbody { min-width: 0; }
.fbody h3 { font-family: var(--serif); font-size: 22px; margin: 4px 0 6px; }
.fbody .verse { font-size: 16px; margin-bottom: 10px; }
.cross .punchline { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.35; margin: 0 0 16px; }
.cross .verse { margin-bottom: 12px; }
.restored .who b { font-family: var(--serif); font-size: 24px; }
.restored .phase { margin-top: 12px; }
.restored .phase p { margin: 6px 0 8px; }
.restored .verse { font-size: 16px; }
.restored .lesson { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 12px 0 0; color: #3f7a5a; }

/* ================= Simpler, smoother, cleaner (redesign) ================= */
:root { --gap: 16px; }
main { padding: 12px 20px 28px; }
body { padding-top: env(safe-area-inset-top); }

/* Header: big title left, gear right */
.top { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 18px; min-height: 44px; }
.page-title { font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.top + .page-title { margin: -6px 0 18px; }
.top-right { display: flex; align-items: center; gap: 12px; }
.gear { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #b9b1a4; transition: background .2s, color .2s; }
.gear:hover, .gear:active { background: rgba(244, 237, 224, .08); color: var(--cream); }
.gear svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.offline { font-size: 12px; color: #b9b1a4; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(244, 237, 224, .2); }
.back { color: #b9b1a4; text-decoration: none; font-size: 16px; padding: 8px 0; }
h2 { font-size: 12px; margin: 30px 4px 10px; letter-spacing: .1em; }
.card { padding: 18px 20px; border-radius: 22px; margin-bottom: 12px; box-shadow: none; }

/* Today: progress ring hero */
.hero-ring { display: flex; flex-direction: column; align-items: center; margin: 4px 0 26px; }
.ring-wrap { position: relative; width: min(68vw, 270px); aspect-ratio: 1; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring-bg { stroke: rgba(244, 237, 224, .1); }
.ring-fg { stroke: var(--cream); stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .35)); transition: stroke-dashoffset 1.2s var(--ease); }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-center b { font-family: var(--serif); font-size: clamp(64px, 20vw, 88px); line-height: 1; font-weight: 600; text-shadow: 0 0 40px rgba(255, 255, 255, .25); font-variant-numeric: tabular-nums; }
.ring-center span { color: #b9b1a4; margin-top: 6px; font-size: 15px; letter-spacing: .02em; }
.ring-center em { font-style: normal; color: #8d867b; font-size: 13px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.next-goal { margin-top: 16px; color: #d8cfc0; text-decoration: none; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; background: rgba(244, 237, 224, .06); }
.next-goal b { color: var(--cream); }
.next-goal span { color: #8d867b; margin-left: 2px; }
.tempted { min-height: 72px; font-size: 21px; border-radius: 22px; margin: 0 0 12px; }
.pledge { width: 100%; min-height: 50px; border-radius: 16px; font-size: 16px; margin-bottom: 22px; background: transparent !important; color: var(--cream) !important; box-shadow: 0 0 0 1px rgba(244, 237, 224, .22) inset !important; }
.pledge.done { color: #8fc4a5 !important; box-shadow: 0 0 0 1px rgba(143, 196, 165, .35) inset !important; opacity: 1; cursor: default; }
.today-word .kicker { color: var(--ink-muted); margin-bottom: 10px; }
.today-word .verse { margin: 0; }
.quiet-links { display: flex; justify-content: center; gap: 10px; margin: 18px 0 4px; font-size: 15px; }
.quiet-links a { color: #b9b1a4; text-decoration: none; padding: 8px 4px; }
.quiet-links span { color: #5f5a52; padding-top: 8px; }

/* Progress */
.stats-2 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stats-2 .stat { padding: 16px 14px; text-align: left; border-radius: 18px; }
.stats-2 .stat b { font-family: var(--serif); font-size: 32px; font-weight: 600; }
details.inner { margin-top: 14px; border-top: 1px solid rgba(26, 23, 20, .1); padding-top: 12px; }
details.inner summary { color: var(--ink-muted); font-size: 14px; }
details.inner h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); margin: 16px 0 8px; }

/* Protect */
.lead-in { margin: -4px 0 16px; }
.lead-in .icon-btn { margin-left: 6px; vertical-align: middle; color: var(--cream); border-color: rgba(244, 237, 224, .3); }
.btn-block.subtle { margin: -2px 0 8px; min-height: 44px; font-weight: 500; }
.card.rows { padding: 4px 0; }
.row-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 15px 20px; border: 0; border-top: 1px solid rgba(26, 23, 20, .09); background: transparent !important; color: var(--ink) !important; text-decoration: none; font: inherit; font-weight: 600; box-shadow: none !important; border-radius: 0; min-height: 0; text-align: left; }
.card.rows > :first-child { border-top: 0; }
.row-link small { color: var(--ink-muted); font-weight: 400; font-size: 13px; }
a.row-link::after, button.row-link::after { content: "›"; color: var(--ink-muted); font-size: 20px; margin-left: 6px; }
details.row-link { display: block; padding: 0; }
details.row-link summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; cursor: pointer; list-style: none; }
details.row-link summary::-webkit-details-marker { display: none; }
details.row-link summary::after { content: "›"; color: var(--ink-muted); font-size: 20px; transition: transform .25s var(--ease); }
details.row-link[open] summary::after { transform: rotate(90deg); }
details.row-link summary small { margin-left: auto; }
.row-body { padding: 0 20px 16px; font-weight: 400; }
.row-body .btn-block { margin-top: 8px; }

/* Settings: grouped rows that open in place */
details.group { background: var(--cream); color: var(--ink); border-radius: 18px; margin-bottom: 10px; overflow: hidden;
  --text: var(--ink); --muted: var(--ink-muted); --line: rgba(26,23,20,.12); --accent: var(--ink); --accent-ink: var(--cream); }
details.group > summary { display: flex; align-items: center; gap: 12px; padding: 17px 20px; cursor: pointer; list-style: none; font-weight: 600; }
details.group > summary::-webkit-details-marker { display: none; }
details.group > summary small { margin-left: auto; color: var(--ink-muted); font-weight: 400; font-size: 13px; text-align: right; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.group > summary::after { content: "›"; color: var(--ink-muted); font-size: 20px; transition: transform .25s var(--ease); }
details.group[open] > summary::after { transform: rotate(90deg); }
.group-body { padding: 0 20px 18px; animation: rise .35s var(--ease) both; }
.group-body label:first-child { margin-top: 0; }
.group-body button:not(.btn-primary):not(.chip):not(.icon-btn), .group-body .btn:not(.btn-primary) { background: rgba(26, 23, 20, .07) !important; color: var(--ink) !important; box-shadow: none !important; }
.group-body .btn-primary { background: var(--ink) !important; color: var(--cream) !important; box-shadow: none !important; }
.group-body .btn-ghost { background: transparent !important; color: var(--ink-muted) !important; }
.group-body .seg { background: rgba(26, 23, 20, .06); }
.group-body label { color: var(--ink); }

/* Tab bar: four tabs, calm active state */
.tabbar { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
.tabbar a { gap: 3px; font-size: 10.5px; letter-spacing: .02em; }
.tabbar svg { width: 23px; height: 23px; stroke-width: 1.6; }
.tabbar a.on { text-shadow: none; }
.tabbar a.on svg { filter: drop-shadow(0 0 6px rgba(255, 255, 255, .35)); }

/* Gentler screen entrance */
.enter > * { animation: rise .38s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
details.group, details.row-link { border-top: 0; padding: 0; }
details.group { margin-bottom: 8px; }
details.group > summary { min-height: 56px; padding: 14px 20px; }
.card.rows > details.row-link { border-top: 1px solid rgba(26, 23, 20, .09); }
.row-link:focus { outline: none; }
.row-link:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }

/* Partner approval sheet */
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0); display: flex; align-items: flex-end; justify-content: center; transition: background .3s var(--ease); }
.sheet-backdrop.open { background: rgba(0, 0, 0, .55); }
.sheet { width: min(560px, 100%); background: var(--cream); color: var(--ink); border-radius: 26px 26px 0 0; padding: 10px 22px calc(22px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .38s var(--ease);
  --text: var(--ink); --muted: var(--ink-muted); --accent: var(--ink); --accent-ink: var(--cream); }
.sheet-backdrop.open .sheet { transform: none; }
.grabber { width: 38px; height: 5px; border-radius: 3px; background: rgba(26, 23, 20, .2); margin: 0 auto 14px; }
.sheet h3 { font-family: var(--serif); font-size: 24px; margin: 0 0 4px; }
.sheet .btn-primary { background: var(--ink) !important; color: var(--cream) !important; box-shadow: none !important; margin-top: 8px; }
.sheet button:not(.btn-primary) { background: rgba(26, 23, 20, .07) !important; color: var(--ink) !important; box-shadow: none !important; }
.sheet .btn-ghost { background: transparent !important; color: var(--ink-muted) !important; }
.sheet details.inperson { margin: 10px 0 4px; border-top: 0; padding: 0; }
.sheet details.inperson summary { padding: 12px 0; font-weight: 600; cursor: pointer; }
.waiting { font-size: 13px; color: #9c4a3a; font-weight: 600; }
.row-link em.this { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--cream); margin-left: 6px; vertical-align: middle; }
details.danger { margin-top: 12px; border-top: 1px solid rgba(26, 23, 20, .1); padding-top: 8px; }
details.danger summary { color: #9c4a3a; cursor: pointer; padding: 6px 0; }
details.danger #delacct { color: #9c4a3a !important; }
.why-list { list-style: none; padding: 0; margin: 4px 0 14px; }
.why-list li { padding: 8px 0 8px 26px; position: relative; color: #d8cfc0; }
.why-list li::before { content: "✦"; position: absolute; left: 4px; color: var(--cream); }

/* Breathe gate */
.gate { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0); display: flex; align-items: center; justify-content: center; transition: background .35s var(--ease); padding: 24px; }
.gate.open { background: rgba(0, 0, 0, .92); }
.gate-inner { width: min(420px, 100%); text-align: center; opacity: 0; transform: translateY(10px); transition: all .4s var(--ease); }
.gate.open .gate-inner { opacity: 1; transform: none; }
.gate-what { font-size: 17px; }
.gate-left { font-family: var(--serif); font-size: 40px; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.gate .punch { font-size: 22px; }
.gate.open { background: rgba(0, 0, 0, .985); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.gate .breath { margin: 24px 0; }

/* Bible in a year */
.plan-head { display: flex; justify-content: space-between; align-items: baseline; }
.plan-card .kicker, .plan-day .kicker { color: var(--ink-muted); margin-bottom: 4px; }
.plan-more { font-size: 13px; color: var(--ink-muted) !important; text-decoration: none; }
.read-group { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid rgba(26, 23, 20, .08); }
.read-group:first-of-type { border-top: 0; }
.read-group > span { width: 64px; flex: none; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); padding-top: 9px; }
.read-group ul { list-style: none; margin: 0; padding: 0; flex: 1; }
.reading { display: flex; align-items: center; gap: 10px; }
.reading .check { width: 26px; height: 26px; min-height: 0; padding: 0; border-radius: 50%; background: transparent !important; box-shadow: 0 0 0 1.5px rgba(26, 23, 20, .35) inset !important; color: var(--cream) !important; font-size: 14px; flex: none; }
.reading.read .check { background: #3f7a5a !important; box-shadow: none !important; }
.reading .ref { background: transparent !important; box-shadow: none !important; color: var(--ink) !important; padding: 8px 0; min-height: 0; font-family: var(--serif); font-size: 18px; font-weight: 600; justify-content: flex-start; text-align: left; }
.reading.read .ref { color: var(--ink-muted) !important; text-decoration: line-through; text-decoration-color: rgba(26, 23, 20, .3); }
.behind { display: block; font-size: 13px; color: #9c4a3a; text-decoration: none; margin-top: 6px; font-weight: 600; }
.plan-bar { background: rgba(244, 237, 224, .12); margin: 0 0 8px; }
.plan-bar i { background: var(--cream); }
.plan-day.today { box-shadow: 0 0 0 2px rgba(244, 237, 224, .55); }
.reader { position: fixed; inset: 0; z-index: 70; background: #000; overflow-y: auto; opacity: 0; transform: translateY(16px); transition: all .35s var(--ease); }
.reader.open { opacity: 1; transform: none; }
.reader-inner { max-width: 640px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom)); }
.reader-top { display: flex; justify-content: space-between; align-items: center; color: #b9b1a4; font-size: 14px; }
.reader-top .btn-ghost { padding-left: 0; }
.reader-text { font-family: var(--serif); font-size: 20px; line-height: 1.7; color: #eee6d8; margin: 8px 0 24px; }
.reader-text h3 { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #8d867b; margin: 22px 0 6px; }
.reader-text p { margin: 0 0 10px; }
.reader-text sup { font-family: var(--sans); font-size: 11px; color: #8d867b; margin-right: 6px; }
/* beat the generic in-card button style */
.card .read-group .reading button.ref:not(.btn-primary):not(.chip):not(.option):not(.btn-ghost) { background: transparent !important; box-shadow: none !important; color: var(--ink) !important; padding: 8px 0; }
.card .read-group .reading.read button.ref:not(.btn-primary):not(.chip):not(.option):not(.btn-ghost) { color: var(--ink-muted) !important; }
.card .read-group .reading button.check:not(.btn-primary):not(.chip):not(.option):not(.btn-ghost) { background: transparent !important; box-shadow: 0 0 0 1.5px rgba(26, 23, 20, .35) inset !important; color: var(--cream) !important; }
.card .read-group .reading.read button.check:not(.btn-primary):not(.chip):not(.option):not(.btn-ghost) { background: #3f7a5a !important; box-shadow: none !important; }
.protect-here .kicker { color: var(--ink-muted); }
.protect-here .ok { font-size: 13px; font-weight: 600; color: #3f7a5a; }
.protect-here .btn-primary { margin-top: 10px; min-height: 54px; font-size: 17px; }
.protect-here p { margin: 10px 0 0; }

/* Plan picker, reader translation switch */
.plan-options { display: grid; gap: 10px; margin-bottom: 12px; }
.plan-option { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; text-align: left; align-items: baseline; width: 100%; margin: 0; min-height: 0; font-weight: 400; border: 2px solid transparent; }
.plan-option b { font-family: var(--serif); font-size: 20px; }
.plan-option span { font-size: 13px; color: var(--ink-muted); }
.plan-option small { grid-column: 1 / -1; font-size: 14px; color: var(--ink-muted); }
.card.plan-option[aria-pressed="true"] { border-color: var(--ink); background: #fbf7ef !important; }
.card.plan-option:not(.x):not(.y):not(.z):not(.w) { background: var(--cream) !important; color: var(--ink) !important; box-shadow: none !important; }
.read-group:not(:has(> span)) ul { padding-left: 0; }
.seg.tiny { margin: 0; padding: 3px; background: rgba(244, 237, 224, .1); }
.seg.tiny button { min-height: 30px; padding: 4px 12px; font-size: 12px; color: #b9b1a4 !important; }
.seg.tiny button[aria-selected="true"] { background: var(--cream) !important; color: var(--ink) !important; }

/* Memorize */
.memory-card .kicker { color: var(--ink-muted); }
.mem-ref { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 4px 0 12px; }
.mem-done { font-weight: 600; color: #3f7a5a; margin: 6px 0 4px; }
.memory-card .btn-primary { background: var(--ink) !important; color: var(--cream) !important; }
.mem-li { font-family: var(--serif); font-size: 19px; }
.sheet textarea { width: 100%; min-height: 130px; margin: 10px 0 4px; font-family: var(--serif); font-size: 18px; line-height: 1.5; }
.boxes { display: flex; gap: 4px; margin: 6px 0 2px; }
.boxes i { width: 14px; height: 5px; border-radius: 3px; background: rgba(26, 23, 20, .14); }
.boxes i.on { background: #3f7a5a; }
.mem-text { font-family: var(--serif); font-size: 24px; line-height: 1.6; color: #eee6d8; margin: 18px 0 24px; }
.mem-ref { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--cream); letter-spacing: -.01em; margin: 0 0 6px; }
.mem-text.letters i { font-style: normal; color: #5f5a52; letter-spacing: 1px; }
.blank { color: #5f5a52; letter-spacing: 1px; }
.blank.now { color: var(--cream); border-bottom: 2px solid var(--cream); }
.bank { justify-content: center; }
.bank .chip.wrong { animation: shake .35s; background: #9c4a3a !important; color: var(--cream) !important; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.mem-practice .row button { min-height: 50px; }

/* Areas, setup choices, safety notes */
.area-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 0; }
.area-chips.left { justify-content: flex-start; margin: 0 0 14px; }
.area-chip { min-height: 34px; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; background: transparent !important; color: #d8cfc0 !important; box-shadow: 0 0 0 1px rgba(244, 237, 224, .22) inset !important; }
.area-chip[aria-pressed="true"] { background: var(--cream) !important; color: var(--ink) !important; box-shadow: none !important; }
.option.want { flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 18px; }
.option.want b { font-size: 17px; }
.option.want small { color: var(--ink-muted); font-weight: 400; }
.option[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink) inset !important; }
.card.safety { border-left: 4px solid #9c4a3a; }
.card.safety .kicker { color: #9c4a3a; margin-bottom: 6px; }
.card.safety p { margin: 0 0 8px; font-size: 15px; }
.measure .kicker { color: var(--ink-muted); }
.measure label { font-weight: 500; font-size: 15px; margin: 10px 0 6px; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper b { font-family: var(--serif); font-size: 30px; min-width: 3ch; text-align: center; }
.stepper span { color: var(--ink-muted); font-size: 14px; flex: 1; }
.stepper .round { width: 44px; height: 44px; font-size: 22px; }
.chips.sub { margin: 0 0 14px; }
select { font: inherit; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(26, 23, 20, .15); background: #fbf7ef; color: var(--ink); -webkit-appearance: none; appearance: none; }

/* NIV in the reader: YouVersion's markup (USFM classes), footnotes, Biblica's notice */
.niv .p, .niv .m, .niv .pi, .niv .mi, .niv .nb, .niv .pm, .niv .pmo, .niv .pmc, .niv .pc, .niv .pr { margin: 0 0 10px; }
.niv .pi, .niv .mi, .niv .pm, .niv .pmo, .niv .pmc { padding-left: 1.2em; }
.niv .pc, .niv .qc { text-align: center; }
.niv .pr, .niv .qr { text-align: right; }
.niv .q, .niv .q1, .niv .qm, .niv .qm1 { padding-left: 1.2em; text-indent: -1.2em; margin-left: 0; }
.niv .q2, .niv .qm2 { padding-left: 2.4em; text-indent: -1.2em; }
.niv .q3, .niv .q4, .niv .qm3 { padding-left: 3.6em; text-indent: -1.2em; }
.niv .b { height: 10px; }
.niv .li, .niv .li1 { padding-left: 1.2em; } .niv .li2 { padding-left: 2.4em; }
.niv .d, .niv .sp, .niv .qa { font-style: italic; color: #b9b1a4; margin: 0 0 8px; }
.niv .yv-h, .niv .s, .niv .s1, .niv .s2, .niv .ms, .niv .ms1, .niv .mr, .niv .r, .niv .sr { font-family: var(--sans); font-size: 14px; font-weight: 600; line-height: 1.35; color: #b9b1a4; margin: 20px 0 8px; text-indent: 0; padding-left: 0; }
.niv .r, .niv .mr, .niv .sr { font-weight: 400; font-style: italic; margin-top: -4px; }
.niv .nd, .niv .sc { font-variant: small-caps; }
.niv .it, .niv .tl, .niv .bk { font-style: italic; } .niv .bd { font-weight: 700; }
.niv .yv-vlbl { font-family: var(--sans); font-size: 11px; color: #8d867b; margin-right: 6px; vertical-align: super; line-height: 0; }
.niv .yv-n { display: none; }
.fn-mark.on:not(.x):not(.y):not(.z):not(.w) { color: #fff; }
.fn-box { position: sticky; bottom: 0; display: flex; gap: 10px; align-items: flex-start; max-width: 640px; margin: 0 auto; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); background: #1b1916; border-top: 1px solid #3a352e; font-family: var(--sans); font-size: 14px; line-height: 1.45; color: #d9d1c3; }
.fn-box > div { flex: 1; } .fn-box .fq, .fn-box .fqa { font-style: italic; } .fn-box .fr { color: #8d867b; }
.fn-box .btn-ghost { padding: 0 4px; min-height: 0; color: #8d867b; }
.fn-mark:not(.x):not(.y):not(.z):not(.w) { all: unset; cursor: pointer; font-family: var(--sans); font-size: 13px; color: #c9a37a; padding: 0 5px; vertical-align: super; line-height: 0; }
.niv-pager { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-family: var(--sans); }
#rattr { white-space: pre-line; } #rattr a { color: inherit; text-decoration: underline; }

/* Struggles (pride, anxiety…): no counter. A line of hope, the button, and today's practice. */
.hero-struggle { text-align: center; padding: 6px 0 2px; }
.hero-struggle .area-chips { margin: 0 0 6px; }
.hero-struggle p { font-family: var(--serif); font-size: 25px; line-height: 1.28; color: #f4ede0; margin: 18px 6px 22px; }
.card.practice .kicker { color: var(--ink-muted); margin-bottom: 4px; }
.card.practice h3 { font-family: var(--serif); font-size: 21px; margin: 0 0 6px; }
.card.practice p { margin: 0 0 10px; }
.card.practice .verse { margin: 0; }

/* ---------- Tidy-up pass: fewer words, fewer boxes, fewer taps ---------- */
.sheet-backdrop.over { z-index: 90; }
.stats-4 { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stats-4 .stat { padding: 14px 4px 12px; border-radius: 16px; text-align: center; }
.stats-4 .stat b { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.1; }
.stats-4 .stat span { display: block; font-size: 11px; line-height: 1.25; margin-top: 4px; }
.warrior .lesson { margin: 8px 0 0; }
.warrior details { margin-top: 10px; }
.warrior details summary { margin-top: 0; padding: 6px 0; cursor: pointer; }
.warrior details .fell { margin: 8px 0 12px; }
.warrior details .kicker { color: var(--ink-muted); margin: 14px 0 6px; }
.more-ways summary { list-style: none; cursor: pointer; text-align: center; color: #b9b1a4; font-size: 15px; padding: 10px 0; }
.more-ways summary::-webkit-details-marker { display: none; }
.more-ways[open] summary { display: none; }
.group-body.flush { padding: 0 0 14px; }
.group-body.flush > .row-link:first-child { border-top: 1px solid rgba(26, 23, 20, .09); }
.plan-day .read-group > span { width: 64px; }

/* ---------- Reading quiz ---------- */
.quiz-btn { width: 100%; margin-top: 12px; min-height: 46px; background: var(--ink) !important; color: var(--cream) !important; box-shadow: none !important; font-weight: 600; }
.card .quiz-btn:not(.btn-primary):not(.chip):not(.option):not(.btn-ghost) { background: var(--ink) !important; color: var(--cream) !important; }
.quiz-choices { display: grid; gap: 10px; margin-bottom: 16px; }
.quiz-choice { width: 100%; justify-content: flex-start; text-align: left; background: rgba(244, 237, 224, .08) !important; color: var(--cream) !important; box-shadow: 0 0 0 1px rgba(244, 237, 224, .18) inset !important; font-weight: 500; }
.quiz-choice.right { background: #3f7a5a !important; box-shadow: none !important; color: #fff !important; }
.quiz-choice.wrong { background: #9c4a3a !important; box-shadow: none !important; color: #fff !important; }
.quiz-choice:disabled { opacity: 1; cursor: default; }
.quiz-choice:disabled:not(.right):not(.wrong) { opacity: .45; }
.mem-text .blank.filled { color: #8fc4a5; border-bottom: 2px solid #8fc4a5; }
.quiz-ref { color: #b9b1a4; margin: -4px 0 14px; }
.quiz-done { text-align: center; padding-top: calc(48px + env(safe-area-inset-top)); }
.gem-burst { font-size: 64px; line-height: 1; color: var(--cream); text-shadow: 0 0 30px rgba(255, 255, 255, .5); animation: gemPop .7s var(--ease) both; }
.gem-earned { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--cream); margin: 6px 0 18px; animation: rise .5s .2s var(--ease) both; }
.gem-next { margin: 8px 0 18px; }
.unlock { display: flex; align-items: center; gap: 14px; text-align: left; }
.unlock b { font-family: var(--serif); font-size: 22px; }
.unlock .kicker { color: var(--ink-muted); }
.unlock .btn-primary { min-height: 40px; padding: 8px 16px; }
.pop { animation: gemPop .6s .35s var(--ease) both; }
@keyframes gemPop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .gem-burst, .pop, .gem-earned { animation: none; } }

/* ---------- Colors: the sky changes with each stone ---------- */
.swatch { width: 34px; height: 34px; border-radius: 50%; flex: none; display: inline-block; box-shadow: 0 0 0 1px rgba(26, 23, 20, .15) inset; }
.t-night { background: radial-gradient(circle at 30% 30%, #3a3f6e, #0b0b14 70%); }
.t-opal { background: conic-gradient(from 200deg, #f6c6d8, #c9e8f2, #cfeedd, #e9d6f5, #f6c6d8); }
.t-sapphire { background: radial-gradient(circle at 30% 30%, #5c86ff, #12245e 75%); }
.t-emerald { background: radial-gradient(circle at 30% 30%, #4fd09a, #0d4d34 75%); }
.t-amethyst { background: radial-gradient(circle at 30% 30%, #b58cf0, #3d1f63 75%); }
.t-topaz { background: radial-gradient(circle at 30% 30%, #ffc36b, #8a4d0f 75%); }
.t-pearl { background: radial-gradient(circle at 30% 30%, #ffffff, #d9d3c7 55%, #a9a39a); }
.t-gold { background: radial-gradient(circle at 30% 30%, #ffe08a, #b8860b 70%, #6e4f06); }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.swatch-btn { flex-direction: column; gap: 6px; padding: 10px 4px; min-height: 0; border-radius: 14px; }
.swatch-btn b { font-size: 13px; }
.swatch-btn small { font-size: 11px; color: var(--ink-muted); font-weight: 400; }
.swatch-btn[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink) inset !important; }
.swatch-btn:disabled { opacity: .5; }
body[data-theme="opal"] { background: radial-gradient(ellipse 90% 55% at 85% -5%, rgba(246, 170, 205, .29), transparent 60%), radial-gradient(ellipse 90% 60% at 10% 105%, rgba(120, 215, 210, .29), transparent 60%), radial-gradient(ellipse 70% 50% at 50% 50%, rgba(190, 160, 240, .13), transparent 70%), #000; background-attachment: fixed; }
body[data-theme="sapphire"] { background: radial-gradient(ellipse 120% 70% at 50% 115%, rgba(40, 90, 230, .56), transparent 60%), radial-gradient(ellipse 80% 50% at 85% -10%, rgba(80, 130, 255, .27), transparent 60%), #000; background-attachment: fixed; }
body[data-theme="emerald"] { background: radial-gradient(ellipse 120% 70% at 50% 115%, rgba(30, 170, 110, .51), transparent 60%), radial-gradient(ellipse 80% 50% at 85% -10%, rgba(60, 200, 150, .21), transparent 60%), #000; background-attachment: fixed; }
body[data-theme="amethyst"] { background: radial-gradient(ellipse 120% 70% at 50% 115%, rgba(140, 70, 210, .56), transparent 60%), radial-gradient(ellipse 80% 50% at 85% -10%, rgba(190, 120, 255, .27), transparent 60%), #000; background-attachment: fixed; }
body[data-theme="topaz"] { background: radial-gradient(ellipse 120% 70% at 50% 115%, rgba(235, 150, 45, .48), transparent 60%), radial-gradient(ellipse 80% 50% at 85% -10%, rgba(255, 190, 90, .21), transparent 60%), #000; background-attachment: fixed; }
body[data-theme="pearl"] { background: radial-gradient(ellipse 120% 70% at 50% 115%, rgba(235, 228, 215, .29), transparent 60%), radial-gradient(ellipse 80% 50% at 85% -10%, rgba(255, 255, 255, .16), transparent 60%), #000; background-attachment: fixed; }
body[data-theme="gold"] { background: radial-gradient(ellipse 120% 70% at 50% 115%, rgba(230, 180, 40, .54), transparent 60%), radial-gradient(ellipse 80% 50% at 85% -10%, rgba(255, 215, 110, .24), transparent 60%), #000; background-attachment: fixed; }

.quiz [hidden], .reader [hidden] { display: none !important; }

.quiz-list li { align-items: center; }
.quiz-list b { font-weight: 600; }
.card .quiz-mini:not(.btn-primary):not(.chip):not(.option):not(.btn-ghost) { min-height: 36px; padding: 6px 14px; font-size: 14px; background: var(--ink) !important; color: var(--cream) !important; border-radius: 999px; flex: none; }
.quiz-past { display: block; text-align: center; font-size: 13px; color: var(--ink-muted) !important; text-decoration: none; margin-top: 10px; }

.quiz-choice.long { font-family: var(--serif); font-size: 17px; line-height: 1.45; font-weight: 400; align-items: flex-start; padding: 12px 16px; white-space: normal; }
.quiz-choice .ord { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 13px; font-weight: 700; margin-right: 10px; box-shadow: 0 0 0 1.5px rgba(244, 237, 224, .35) inset; }
.quiz-choice.picked .ord, .quiz-choice.right .ord, .quiz-choice.wrong .ord { background: var(--cream); color: var(--ink); box-shadow: none; }
.mem-text.smaller { font-size: 20px; }
.mem-text .blank.missed { color: #e6a596; border-bottom: 2px solid #e6a596; }
.quiz-verdict { margin: 0 0 12px; color: #d8cfc0 !important; }

.say-back { margin: 8px 0 12px; }
.say-back label { color: #d8cfc0; }
.say-back textarea { min-height: 72px; font-family: var(--serif); font-size: 17px; }
.review-card .kicker { color: var(--ink-muted); }
.note-card { margin: 4px 0 14px; }
.note-card p { font-family: var(--serif); font-size: 19px; margin: 6px 0 0; }
.note-card .kicker { color: var(--ink-muted); }
#qgrade button { flex: 1; }

.just-today { margin: 10px 0 0; font-size: 14px; color: #b9b1a4; text-align: center; }
.just-today span { color: #8d867b; margin-left: 4px; }
.niv-note { font-size: 11px; line-height: 1.4; color: var(--ink-muted); margin: 8px 0 0; }

.recall-box { min-height: 150px; font-family: var(--serif); font-size: 19px; line-height: 1.5; margin: 6px 0 10px; }
.recall-score { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--cream); margin: 14px 0 4px; }
.mem-text mark { background: rgba(230, 165, 150, .25); color: #f3c2b6; border-radius: 4px; padding: 0 2px; }

.reader-text [data-ref], .reader-text .yv-vlbl { cursor: pointer; }
.reader-text .picked-verse { background: rgba(244, 237, 224, .1); border-radius: 6px; }
.mem-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 80; width: min(520px, calc(100% - 32px));
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 18px; background: var(--cream); color: var(--ink); box-shadow: 0 12px 40px rgba(0, 0, 0, .6); }
.mem-bar span { flex: 1; font-family: var(--serif); font-weight: 600; font-size: 17px; }
.mem-bar .btn-primary { background: var(--ink) !important; color: var(--cream) !important; min-height: 40px; padding: 8px 14px; box-shadow: none !important; }
.mem-bar .btn-ghost { color: var(--ink-muted) !important; min-height: 40px; padding: 8px; }
.card .mem-this:not(.btn-primary):not(.chip):not(.option):not(.btn-ghost) { background: transparent !important; color: var(--ink-muted) !important; min-height: 0; padding: 8px 0 0; font-size: 14px; font-weight: 600; }

.quiz-verse { background: rgba(244, 237, 224, .07); border-left: 3px solid rgba(244, 237, 224, .35); border-radius: 0 12px 12px 0; padding: 10px 14px; margin: 0 0 10px; }
.quiz-verse p { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.55; color: #eee6d8; }
.quiz-verse mark { background: rgba(143, 196, 165, .25); color: #cde8d6; border-radius: 4px; padding: 0 2px; }

/* ---------- Your day, the window, purpose ---------- */
.dayplan h3 { margin: 4px 0 0; }
.checks { list-style: none; margin: 6px 0 8px; padding: 0; }
.checks li { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.checks button.check, .checks button.x { all: unset; box-sizing: border-box; cursor: pointer; }
.checks .check:focus-visible, .checks .x:focus-visible { outline: 2px solid #c8952b; outline-offset: 2px; border-radius: 8px; }
.checks button.check { flex: 1; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 11px 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.checks .box { flex: 0 0 22px; height: 22px; border-radius: 7px; border: 2px solid currentColor; opacity: .55; display: grid; place-items: center; transition: all .2s; }
.checks button.check[aria-pressed="true"] .box { opacity: 1; background: #c8952b; border-color: #c8952b; }
.checks button.check[aria-pressed="true"] .box::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.checks button.check[aria-pressed="true"] .t { opacity: .55; text-decoration: line-through; }
.checks button.x { background: none; border: 0; color: inherit; opacity: .4; font-size: 20px; padding: 4px 8px; cursor: pointer; }
.additem { display: flex; gap: 8px; }
.additem input { flex: 1; min-width: 0; }
.dayplan .sugg { margin-top: 10px; }
.dayplan .sugg .chip { font-size: 13px; padding: 6px 10px; }
.dayfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.dayfoot button { padding: 10px 14px; }
.purpose-link { display: inline-block; margin-top: 10px; color: inherit; opacity: .75; }
.window-card { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.window-card .kicker { align-self: flex-start; }
.glass-window { width: 100%; max-width: 190px; display: block; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.window-full .glass-window { max-width: 320px; margin: 0 auto; }
.lb-window .glass-window { max-width: 220px; margin: 10px auto 0; }
.pane-new { animation: pane-in 1.6s ease-out both; transform-box: fill-box; transform-origin: center; }
@keyframes pane-in { 0% { opacity: 0; transform: scale(.2); } 60% { opacity: 1; transform: scale(1.35); } 100% { transform: none; } }
.lb-verse, .purpose-verse { margin: 12px 0 16px; padding-left: 12px; border-left: 3px solid rgba(255,255,255,.25); font-family: Georgia, "Iowan Old Style", serif; font-size: 17px; line-height: 1.5; }
.lb-verse cite, .purpose-verse cite { display: block; font: 12px system-ui, sans-serif; opacity: .7; font-style: normal; margin-top: 4px; }
.lookback h2 { margin-top: 22px; }
.lookback .checks button.check { color: var(--text, #f4ede0); }
.stone-key { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; }
.stone-key span { display: inline-flex; align-items: center; gap: 5px; }
.stone-key i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.thanks { list-style: none; margin: 0; padding: 0; }
.thanks li { padding: 6px 0; border-top: 1px solid var(--line); }
.thanks li:first-child { border-top: 0; }
.purpose-area label { display: block; margin: 10px 0 4px; font-size: 13px; font-weight: 600; }
.purpose-area .step { margin-top: 6px; }
.checks button.check:not(.btn-primary):not(.chip):not(.option):not(.btn-ghost), .checks button.x:not(.btn-primary):not(.chip):not(.option):not(.btn-ghost) { background: transparent !important; box-shadow: none !important; color: inherit !important; min-height: 0 !important; }
.pickup { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(26, 23, 20, .06); }
.pickup .btn { padding: 8px 12px; white-space: nowrap; }

/* ---------- Scroll: the Bible one verse at a time (scroll.js) ---------- */
main.feed-view { max-width: none; padding: 0; }
.feed { position: fixed; left: 0; right: 0; top: 0; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 1; outline: none; }
.fscroll { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fscroll::-webkit-scrollbar { display: none; }
.fcard { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; justify-content: center;
  padding: calc(96px + env(safe-area-inset-top)) 84px 40px 28px; max-width: 760px; margin: 0 auto; user-select: none; -webkit-user-select: none; }
.fv { font-family: var(--serif); margin: 0; color: var(--text); line-height: 1.42; text-wrap: pretty; letter-spacing: -.005em; }
.fv.xl { font-size: clamp(28px, 7.4vw, 40px); } .fv.l { font-size: clamp(24px, 6vw, 32px); } .fv.m { font-size: clamp(20px, 5vw, 26px); } .fv.s { font-size: clamp(17px, 4.3vw, 21px); }
.fref { margin: 22px 0 0; color: var(--accent); font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.fref span { color: var(--muted); font-weight: 500; font-size: 11px; letter-spacing: .1em; margin-left: 6px; }
.fnote { margin: 14px 0 0; color: var(--muted); font-style: italic; font-size: 14px; }
.ftitle, .fdone { text-align: center; padding-right: 28px; }
.ftitle h2 { font-family: var(--serif); font-size: clamp(38px, 10vw, 56px); text-transform: none; letter-spacing: -.01em; color: var(--text); margin: 6px 0 0; font-weight: 600; }
.fkick { margin: 0; color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.fhint { margin-top: 34px; color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; animation: fhint 2.4s ease-in-out infinite; }
@keyframes fhint { 50% { opacity: .35; transform: translateY(-4px); } }
.fdone h2 { font-family: var(--serif); font-size: clamp(30px, 8vw, 42px); text-transform: none; letter-spacing: 0; color: var(--text); font-weight: 600; margin: 10px 0 8px; }
.fdone p { color: var(--muted); max-width: 30em; margin: 0 auto; }
.fcheck { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; font-size: 30px; background: var(--accent-soft); color: var(--accent); }
.fbtns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.ftop { position: absolute; z-index: 5; left: 0; right: 0; top: 0; padding: calc(10px + env(safe-area-inset-top)) 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none; }
.ftop > * { pointer-events: auto; }
.fmodes { display: flex; background: rgba(255, 255, 255, .08); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.fmodes button { border: 0; background: transparent; color: var(--muted); font: 600 13px var(--sans); padding: 7px 13px; border-radius: 999px; cursor: pointer; }
.fmodes button[aria-selected="true"] { background: rgba(255, 255, 255, .14); color: var(--text); }
.ftools { display: flex; align-items: center; gap: 8px; }
.fstreak { font-size: 13px; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, .08); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; }
.fsaved { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.fsaved svg, .frail svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.fwhere { position: absolute; z-index: 5; left: 50%; translate: -50% 0; top: calc(58px + env(safe-area-inset-top)); border: 0; background: none; color: var(--muted); font: 500 13px var(--sans); cursor: pointer; white-space: nowrap; padding: 4px 8px; }
.fwhere:disabled { cursor: default; }
.fbar { position: absolute; z-index: 5; left: 0; right: 0; top: 0; height: 2px; background: rgba(255, 255, 255, .06); }
.fbar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s var(--ease); }
.frail { position: absolute; z-index: 5; right: 12px; bottom: 28px; display: flex; flex-direction: column; gap: 14px; }
.frail button { width: 50px; min-height: 50px; border-radius: 25px; border: 1px solid var(--line); background: rgba(10, 12, 20, .55); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass);
  color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; padding: 8px 0; }
.frail button span { font-size: 10px; font-weight: 600; letter-spacing: .02em; }
.frail button.on { color: var(--ice); }
.frail button[data-act="like"].on svg { fill: currentColor; }
.frail button[data-act="note"].on { color: var(--accent); }
.fburst { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; color: var(--ice); opacity: 0; pointer-events: none; }
.fburst svg { width: 100%; height: 100%; fill: currentColor; stroke: none; filter: drop-shadow(0 6px 24px rgba(188, 211, 232, .45)); }
.fburst.go { animation: fburst .8s var(--ease); }
@keyframes fburst { 0% { opacity: 0; transform: scale(.3); } 25% { opacity: 1; transform: scale(1.1); } 60% { opacity: .9; transform: scale(.95); } 100% { opacity: 0; transform: scale(1.2) translateY(-30px); } }
.scroll-cta { display: block; margin-top: 10px; font-weight: 600; font-size: 14px; color: var(--accent); text-decoration: none; }

.fsheet.tall { max-height: 86dvh; overflow-y: auto; }
.fsheet-v { font-family: var(--serif); font-size: 18px; line-height: 1.5; margin: 6px 0 12px; }
.fsheet h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin: 18px 0 8px; color: var(--ink); }
.fsheet h4 .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.fsheet textarea { width: 100%; font: 16px/1.5 var(--sans); border-radius: 14px; border: 1px solid rgba(26, 23, 20, .18); padding: 12px; background: #fff; color: var(--ink); }
.fwords { display: flex; flex-wrap: wrap; gap: 6px; }
.fwords.rtl { direction: rtl; }
.fword { direction: ltr; display: flex; flex-direction: column; align-items: center; gap: 1px; border: 0; border-radius: 12px; padding: 8px 10px; cursor: pointer; min-width: 64px; }
.fword b { font: 500 22px "SBL Hebrew", "SBL Greek", "Times New Roman", serif; }
.fword i { font-size: 11px; opacity: .7; }
.fword span { font-size: 12px; font-weight: 600; }
.fword.on { outline: 2px solid var(--ink); }
.fword-detail { margin-top: 12px; padding: 14px; border-radius: 16px; background: rgba(26, 23, 20, .06); }
.fword-detail p { margin: 6px 0; font-size: 15px; }
.fd-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fd-head b { font: 500 28px "SBL Hebrew", "SBL Greek", "Times New Roman", serif; }
.fd-head small { margin-left: auto; opacity: .6; }
.fdef { font-size: 14px; line-height: 1.5; max-height: 260px; overflow-y: auto; padding-top: 6px; }
.fword-detail details { border-top: 0; padding: 6px 0 0; }
.fcompare { font-family: var(--serif); font-size: 16px; margin: 0; }
.fcontext p { font-family: var(--serif); font-size: 15px; margin: 0 0 6px; opacity: .65; }
.fcontext p.here { opacity: 1; font-weight: 600; }
.fcredit { margin-top: 18px; }
.fcredit a { color: inherit; }
.fsrow { display: flex !important; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; text-align: left; border: 0; border-radius: 14px; padding: 12px 14px; margin-top: 8px; cursor: pointer; font: inherit; }
.fsrow span { font-family: var(--serif); font-size: 15px; }
.fsrow em { font-size: 13px; opacity: .8; }
.fpick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.fbooks, .fchaps { max-height: 52dvh; overflow-y: auto; }
.fbooks button { display: block; width: 100%; text-align: left; border: 0; border-radius: 10px; padding: 9px 12px; margin-bottom: 4px; font: 500 15px var(--sans); cursor: pointer; }
.fbooks button[aria-pressed="true"] { background: var(--ink) !important; color: var(--cream) !important; }
.fchaps { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; align-content: start; }
.fchaps button { border: 0; border-radius: 10px; padding: 10px 0; font: 600 15px var(--sans); cursor: pointer; }
.ftrans { margin-top: 6px; }
@media (min-width: 900px) { .frail { right: max(24px, calc(50% - 440px)); } }
.fmodes button, .fwhere { box-shadow: none !important; border: 0 !important; min-height: 0; }
.fwhere { background: none !important; }
.frail[hidden] { display: none; }
.fmodes button { background: transparent !important; color: var(--muted) !important; }
.fmodes button[aria-selected="true"] { background: rgba(255, 255, 255, .16) !important; color: var(--text) !important; }
.ftabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 4px -4px 12px; padding: 0 4px; }
.ftabs::-webkit-scrollbar { display: none; }
.ftabs button { flex: none; border: 0; border-radius: 999px; padding: 8px 14px; font: 600 14px var(--sans); cursor: pointer; }
.ftabs button[aria-selected="true"] { background: var(--ink) !important; color: var(--cream) !important; }
.fpane { min-height: 180px; }
.fpane h4:first-child { margin-top: 4px; }
.fbig { font-family: var(--serif); font-size: 19px; line-height: 1.5; margin: 0 0 4px; }
.fkeys { padding-left: 18px; margin: 0; }
.fkeys li { margin-bottom: 6px; font-size: 15px; }
.fkeys span { font-family: "SBL Hebrew", "SBL Greek", "Times New Roman", serif; font-size: 17px; }
.fabout { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 8px; font-size: 14px; }
.fabout dt { opacity: .6; }
.fabout dd { margin: 0; }
.flink { border: 0; background: none !important; padding: 0; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.fqs { padding-left: 18px; margin: 0 0 12px; font-size: 15px; }
.fqs li { margin-bottom: 4px; }
.fcmp { padding: 10px 0; border-bottom: 1px solid rgba(26, 23, 20, .1); }
.fcmp b { font-size: 12px; letter-spacing: .08em; }
.fcmp p { font-family: var(--serif); font-size: 16px; margin: 4px 0 2px; }
.fsheet-actions { display: flex; gap: 8px; margin-top: 16px; }
.fsheet-actions .btn { flex: 1; }
.ftabs { flex-wrap: wrap; overflow: visible; }
.ftabs button { padding: 7px 12px; font-size: 13px; }
.sheet .flink { background: none !important; padding: 0 !important; }

/* ---------- Oct 2026: pure black night, one quiet accent (ice blue), warm cream cards ---------- */
:root { --ice: #bcd3e8; --ice-soft: rgba(188, 211, 232, .14); --ease-out: cubic-bezier(.23, 1, .32, 1); }
.tabbar { background: rgba(0, 0, 0, .72); border-top-color: rgba(255, 255, 255, .07); }
.tabbar a.on { color: var(--ice); }
.tabbar a { transition: color .15s ease; }
.fbar i { background: var(--ice); }
.fcheck { background: var(--ice-soft); color: var(--ice); }
.fstreak { color: var(--ice); border-color: rgba(188, 211, 232, .25); background: rgba(188, 211, 232, .06); }
button, .btn, a.btn, .vset, .fword, .frail button { -webkit-tap-highlight-color: transparent; }
.btn:active, .btn-primary:active, .vset:active, .fword:active, .frail button:active, .fsrow:active { transform: scale(.97); }
.btn, .btn-primary, .vset, .fword, .frail button, .fsrow { transition: transform .16s var(--ease-out); }

/* Protect: Today · Progress · Blocking */
.protect-nav { display: flex; margin: 0 0 16px; }
.protect-nav a { flex: 1; text-align: center; text-decoration: none; color: var(--ink-muted); font-weight: 600; font-size: 14px; padding: 8px 6px; border-radius: 999px; }
.protect-nav a[aria-selected="true"] { background: var(--ink); color: var(--cream); }

/* Scroll: the reading dropdown */
.fdrop { position: relative; }
.fdrop-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 255, 255, .14) !important; background: rgba(0, 0, 0, .55) !important; color: var(--text) !important;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 999px; padding: 8px 12px 8px 14px; font: 600 14px var(--sans); cursor: pointer; max-width: 70vw; box-shadow: none !important; min-height: 0; }
.fdrop-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fdrop-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; transition: transform .18s var(--ease-out); }
.fdrop-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.fmenu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; max-width: 86vw; padding: 6px; border-radius: 18px; background: rgba(18, 18, 20, .92);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 20px 50px -16px rgba(0, 0, 0, .9);
  transform-origin: top left; opacity: 0; transform: scale(.96) translateY(-4px); transition: opacity .16s ease-out, transform .18s var(--ease-out); }
.fmenu.open { opacity: 1; transform: none; }
.fmenu-h { margin: 6px 10px 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fmenu button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--text) !important;
  font: 500 15px var(--sans); padding: 10px 10px; border-radius: 12px; cursor: pointer; min-height: 0; }
.fmenu button:hover { background: rgba(255, 255, 255, .06) !important; }
.fmenu-check { width: 16px; color: var(--ice); font-size: 13px; flex: none; }
.fmenu hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .08); margin: 6px 4px; }
.fwhere { top: calc(60px + env(safe-area-inset-top)); left: 28px; translate: none; font-size: 12px; letter-spacing: .04em; }

/* Learn */
.learn-more { display: block; margin: -4px 0 14px 4px; color: var(--muted); text-decoration: none; }
.vsets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vset { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 84px; padding: 14px 16px; border-radius: 18px; text-decoration: none;
  background: var(--cream); color: var(--ink); overflow: hidden; }
.vset b { font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.2; }
.vset span { font-size: 12px; color: var(--ink-muted); }
.vset.photo { grid-column: span 2; min-height: 128px; background-size: cover; background-position: center; color: #fff; isolation: isolate; }
.vset.photo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: inherit; filter: grayscale(1) contrast(1.05) brightness(.62); }
.vset.photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 30%, rgba(0, 0, 0, .55)); }
.vset.photo span { color: rgba(255, 255, 255, .75); }
.vset.photo b { font-size: 22px; }
.facts { display: flex; flex-direction: column; gap: 12px; }
.fact { margin: 0; }
.fact-head b { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.fact-v { font-family: var(--serif); font-size: 18px; line-height: 1.45; margin: 6px 0 10px; }
.fact-t { font-size: 15px; margin: 0 0 8px; }
.fact-src { font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
.fact-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.fact-actions .btn { flex: 1; text-align: center; }

/* Saved */
.saved-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.saved-card { margin: 0; }
.saved-head { display: flex; justify-content: space-between; align-items: baseline; }
.saved-v { font-family: var(--serif); font-size: 17px; line-height: 1.45; margin: 6px 0 8px; }
.saved-note { margin: 0 0 8px; padding-left: 10px; border-left: 2px solid rgba(26, 23, 20, .2); font-style: italic; color: var(--ink-muted); }
.saved-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .fmenu { transition: opacity .15s ease; transform: none; } }
.fmenu button { justify-content: flex-start !important; text-align: left !important; }
.tabbar { background: rgba(0, 0, 0, .88) !important; }
.tabbar svg { stroke-width: 1.6; transition: transform .2s var(--ease-out); }
.tabbar a.on svg { fill: rgba(188, 211, 232, .14); }
.tabbar a:active svg { transform: scale(.9); }
.tabbar a span { letter-spacing: .02em; }

/* The radial menu (hold a verse) */
.radial { position: fixed; z-index: 40; width: 0; height: 0; pointer-events: none; }
.radial[hidden] { display: none; }
.radial-dot { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08);
  transform: scale(.6); opacity: 0; transition: transform .2s var(--ease-out), opacity .15s ease-out; }
.radial.open .radial-dot { transform: none; opacity: 1; }
.radial button { position: absolute; left: -27px; top: -27px; width: 54px; height: 54px; border-radius: 50%; border: 0 !important; padding: 0; pointer-events: auto;
  background: rgba(244, 237, 224, .96) !important; color: var(--ink) !important; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .8) !important; display: grid; place-items: center; min-height: 0;
  transform: translate(0, 0) scale(.4); opacity: 0; transition: transform .24s var(--ease-out), opacity .16s ease-out, background-color .12s ease; }
.radial.open button { transform: translate(var(--x), var(--y)) scale(1); opacity: 1; }
.radial button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.radial button.on[data-r="like"] svg { fill: currentColor; }
.radial button span { position: absolute; top: -26px; left: 50%; translate: -50% 0; white-space: nowrap; font: 600 12px var(--sans); color: #fff; opacity: 0; transition: opacity .12s ease; text-shadow: 0 1px 8px #000; }
.radial button.hot { background: #fff !important; transform: translate(var(--x), var(--y)) scale(1.18); }
.radial button.hot span { opacity: 1; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fverse { -webkit-touch-callout: none; touch-action: pan-y; }
.fheart { display: none; width: 15px; height: 15px; margin-left: 8px; vertical-align: -2px; color: var(--ice); }
.fheart svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }
.fverse.liked .fheart { display: inline-block; }
.fhold { margin: 20px 0 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); animation: fhint 2.4s ease-in-out infinite; }
.fnote span { font-style: normal; opacity: .7; }
.fmenu-g { margin: 8px 10px 2px; font-size: 11px; color: var(--muted); }
.fcomments { list-style: none; padding: 0; margin: 4px 0 12px; }
.fcomments li { padding: 10px 12px; border-radius: 14px; background: rgba(26, 23, 20, .06); margin-bottom: 8px; }
.fcomments p { margin: 0 0 4px; }
.fcomments small { color: var(--ink-muted); }
.saved-note small { display: block; font-style: normal; font-size: 11px; margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .radial button, .radial-dot { transition: opacity .15s ease; } }
.flogo { width: 26px; height: 26px; fill: var(--cream); margin-left: 4px; flex: none; }
.ftools { gap: 10px; }
/* Verses: centered, with the star above */
.fverse { text-align: center; align-items: center; padding-left: 30px; padding-right: 30px; }
.fverse .fv { text-wrap: balance; }
.vlogo { width: 26px; height: 26px; fill: var(--cream); margin: 0 auto 26px; flex: none; opacity: .92; }
/* Hold menu: the buttons spring out of the finger */
.radial button { transition: transform .32s cubic-bezier(.34, 1.56, .64, 1), opacity .14s ease-out, background-color .12s ease; transform: translate(0, 0) scale(.3); }
.radial:not(.open) button { transition-delay: 0ms !important; transition-duration: .14s; }
/* Hold menu, refined: dark glass buttons that grow out of the finger; the chosen one turns cream; its name in a pill */
.radial-dim { position: fixed; inset: 0; z-index: 39; pointer-events: none; opacity: 0; transition: opacity .2s ease-out;
  background: radial-gradient(circle at var(--rx) var(--ry), rgba(0, 0, 0, .15) 0, rgba(0, 0, 0, .15) 70px, rgba(0, 0, 0, .62) 260px); }
.radial-dim[hidden] { display: none; }
.radial-dim.open { opacity: 1; }
.radial-dot { left: -26px; top: -26px; width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .04); transform: scale(.7); transition: transform .22s cubic-bezier(.23, 1, .32, 1), opacity .15s ease-out; }
.radial button { left: -25px; top: -25px; width: 50px; height: 50px; background: rgba(30, 30, 33, .72) !important; color: var(--cream) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px rgba(255, 255, 255, .1), 0 12px 28px -10px rgba(0, 0, 0, .9) !important;
  transform: translate(0, 0) scale(.55); opacity: 0;
  transition: transform .24s cubic-bezier(.23, 1, .32, 1), opacity .16s ease-out, background-color .12s ease, color .12s ease; }
.radial.open button { transform: translate(var(--x), var(--y)) scale(1); opacity: 1; }
.radial button svg { width: 21px; height: 21px; stroke-width: 1.6; }
.radial button.on[data-r="like"] { color: var(--ice) !important; }
.radial button.hot { background: var(--cream) !important; color: var(--ink) !important; transform: translate(var(--x), var(--y)) scale(1.12); }
.radial button span { top: auto; bottom: calc(100% + 10px); padding: 5px 10px; border-radius: 999px; background: rgba(20, 20, 22, .85); color: var(--cream);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); text-shadow: none; font: 600 12px var(--sans);
  transform: translateY(4px); transition: opacity .12s ease, transform .16s cubic-bezier(.23, 1, .32, 1); }
.radial button.hot span { opacity: 1; transform: none; }
.radial:not(.open) button { transition-duration: .12s; transition-delay: 0ms !important; }

/* Learn: verse collections in one swipeable row of photo cards */
.vrow { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; scroll-padding: 0 16px; }
.vrow::-webkit-scrollbar { display: none; }
.vcard { position: relative; flex: 0 0 148px; height: 196px; border-radius: 20px; overflow: hidden; scroll-snap-align: start; text-decoration: none; color: #fff;
  background: #111 center / cover no-repeat; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; isolation: isolate;
  transition: transform .16s var(--ease-out); }
.vcard::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .72)); }
.vcard b { font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.2; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.vcard span { font-size: 12px; opacity: .8; margin-top: 3px; }
.vcard:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .radial button, .radial-dot, .radial-dim { transition: opacity .15s ease; } }
.fn-mark { border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 1px; min-height: 0; color: var(--ice) !important; font: inherit; font-size: .7em; vertical-align: super; cursor: pointer; }
.fnotice { margin: 18px auto 0; max-width: 32em; font-size: 10px; line-height: 1.4; color: var(--muted); opacity: .75; }
.fnotice a { color: inherit; }
/* Verse rail (left edge) */
.vnav { position: absolute; z-index: 6; left: 4px; top: calc(110px + env(safe-area-inset-top)); bottom: 24px; width: 26px; display: flex; flex-direction: column; justify-content: center;
  touch-action: none; user-select: none; -webkit-user-select: none; }
.vnav[hidden] { display: none; }
.vnav button { flex: 1 1 0; min-height: 0; max-height: 22px; border: 0 !important; background: none !important; box-shadow: none !important; padding: 0; color: rgba(244, 237, 224, .38) !important;
  font: 600 10px var(--sans); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.vnav.dense button:not(.lbl):not(.on):not(.vnext) { font-size: 0; }
.vnav.dense button:not(.lbl):not(.on):not(.vnext)::before { content: ''; width: 3px; height: 1px; background: rgba(244, 237, 224, .25); }
.vnav button.on { color: var(--ice) !important; font-size: 11px !important; }
.vnav button.on::before { display: none; }
.vnav .vnext { color: var(--cream) !important; font-size: 16px; max-height: 26px; }
.vnav-bubble { position: fixed; z-index: 41; left: 40px; translate: 0 -50%; padding: 6px 12px; border-radius: 999px; background: rgba(20, 20, 22, .9); color: var(--cream);
  font: 700 15px var(--sans); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); pointer-events: none; }
.vnav-bubble[hidden] { display: none; }
.fverse { padding-left: 40px; padding-right: 40px; }
/* Verse rail: a fragmented bar, no numbers */
.vnav { width: 22px; left: 8px; gap: 0; }
.vnav button { font-size: 0 !important; max-height: 26px; }
.vnav button i { display: block; width: 3px; height: calc(100% - 3px); min-height: 2px; max-height: 20px; border-radius: 2px; background: #2c2c2f; transition: background-color .15s ease, width .15s ease; }
.vnav button.on i { background: var(--cream); width: 4px; }
.vnav button::before { display: none !important; }
.vnav .vnext i { height: 9px; width: 9px; background: none; border-right: 2px solid #4a4a4e; border-bottom: 2px solid #4a4a4e; border-radius: 1px; transform: rotate(45deg); max-height: none; }
/* Land each verse in the middle of its page */
.fcard { padding-top: calc(74px + env(safe-area-inset-top)); padding-bottom: 74px; }
.fscroll { scroll-snap-type: y mandatory; }
.fcard { scroll-snap-align: center; }
.vnav button { position: relative; }
.vnav button.read i { background: #6c6c70; }
.vnav button b { position: absolute; left: 14px; top: 50%; translate: 0 -50%; font: 600 10px var(--sans); color: #6c6c70; display: none; white-space: nowrap; }
.vnav button.on b { display: block; color: var(--cream); font-size: 11px; }
.vnav button.last b { display: block; }
.vnav button.last.on b { color: var(--cream); }
/* Listening */
.faudio { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14) !important; background: rgba(0, 0, 0, .5) !important; color: var(--cream) !important;
  box-shadow: none !important; display: grid; place-items: center; padding: 0; min-height: 0; cursor: pointer; }
.faudio svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.faudio.on { color: var(--ice) !important; border-color: rgba(188, 211, 232, .4) !important; }
.fplayer { position: absolute; z-index: 7; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 4px; padding: 8px 10px; border-radius: 22px;
  background: rgba(22, 22, 24, .82); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 16px 40px -14px #000;
  transform: translateY(10px); opacity: 0; transition: transform .24s var(--ease-out), opacity .18s ease-out; }
.fplayer[hidden] { display: none; }
.fplayer.on { transform: none; opacity: 1; }
.fp-btn { width: 38px; height: 38px; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--cream) !important; display: grid; place-items: center; padding: 0; min-height: 0; flex: none; cursor: pointer; }
.fp-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.fp-main { background: var(--cream) !important; color: var(--ink) !important; border-radius: 50%; }
.fp-main svg { fill: currentColor; }
.fp-main .fp-play, .fplayer.paused .fp-main .fp-pause { display: none; }
.fplayer.paused .fp-main .fp-play { display: block; }
.fp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 0 6px; }
.fp-info b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-info span { font-size: 10px; color: var(--muted); }
.fp-bar { display: block; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .12); margin-top: 5px; overflow: hidden; }
.fp-bar i { display: block; height: 100%; width: 0; background: var(--ice); }
.feed.listening .vnav { bottom: 86px; }
.feed.listening .fcard { padding-bottom: 120px; }
/* Today header, simplified */
.ftop .ftools:first-of-type { margin-right: auto; margin-left: 8px; }
.ftr, .ficon { height: 38px; min-width: 38px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14) !important; background: rgba(0, 0, 0, .5) !important; color: var(--cream) !important;
  box-shadow: none !important; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 12px; min-height: 0; font: 600 13px var(--sans); cursor: pointer; }
.ficon { padding: 0 10px; }
.ficon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.fflame span { font-size: 13px; }
.fflame svg { color: var(--ice); }
.fstreak { display: none; }
/* Streak sheet */
.stk h3 { text-align: center; margin: 4px 0 16px; }
.st-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-card { padding: 14px; border-radius: 18px; background: rgba(26, 23, 20, .06); display: flex; flex-direction: column; }
.st-card span { font-size: 13px; color: var(--ink-muted); }
.st-card b { font: 700 34px var(--sans); margin: 4px 0; }
.st-card small { color: var(--ink-muted); }
.st-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 18px 0; text-align: center; }
.st-week span { display: block; font-size: 12px; color: var(--ink-muted); margin-bottom: 6px; }
.st-week i { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto; border-radius: 50%; font-style: normal; font-weight: 600; font-size: 14px; color: var(--ink-muted); }
.st-week .on i { background: var(--ink); color: var(--cream); }
.st-week .today:not(.on) i { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.st-plan { padding: 14px; border-radius: 18px; background: rgba(26, 23, 20, .06); }
.st-plan > div { display: flex; justify-content: space-between; margin-bottom: 10px; }
.st-plan > i { display: block; height: 6px; border-radius: 3px; background: rgba(26, 23, 20, .1); overflow: hidden; }
.st-plan > i i { display: block; height: 100%; background: var(--ink); }
.ftop { gap: 6px; }
.ftop .ftools { gap: 6px; }
.fdrop-btn { max-width: 44vw; }
.ftr, .ficon, .faudio { height: 36px; min-width: 36px; width: auto; }
.faudio { width: 36px; }
.ficon { padding: 0 9px; }
@media (max-width: 380px) { .ftr { padding: 0 9px; } }
.ftop { justify-content: flex-start; }
.ftop .ftools:first-of-type { margin: 0; }
.ftop .ftools:last-of-type { margin-left: auto; }

/* Discover row: deep studies, facts and quotes */
.drow .dcard { flex: 0 0 236px; height: 208px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left;
  padding: 16px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .05); color: var(--cream); font: inherit; cursor: pointer; overflow: hidden; }
.dcard i { font-style: normal; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.dcard b { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.2; margin-top: auto; }
.dcard p, .dcard q { margin: 0; font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.dcard q { font-family: var(--serif); font-size: 17px; font-style: italic; quotes: '“' '”'; }
.dcard span { font-size: 13px; opacity: .6; margin-top: auto; }
.dcard b + span { margin-top: 0; }
.dcard.study { background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); }
.dcard:active { transform: scale(.98); }
.sheet.disc h3 { font-family: var(--serif); font-size: 26px; margin: 4px 0 10px; }
.sheet.disc ul { padding-left: 18px; margin: 6px 0 18px; line-height: 1.5; }
.sheet.disc .disc-big { font-size: 18px; line-height: 1.5; }
.sheet.disc .disc-q { font-family: var(--serif); font-style: italic; font-size: 21px; }
.sheet.disc .btn-block { margin-top: 8px; }

/* Discover feed: framed cards, each built around a verse, that snap one at a time with the next peeking */
main.disc-view { max-width: none; padding: 0; }
.drow .dcard { text-decoration: none; }
.dfeed { display: flex; flex-direction: column; }
.dtop { flex: none; display: flex; align-items: center; justify-content: space-between; padding: calc(8px + env(safe-area-inset-top)) 14px 4px; }
.dtop .fsaved { text-decoration: none; }
.dhead { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--text); }
.dscroll { flex: 1; height: auto; min-height: 0; padding: 0; scroll-padding-top: 40px; }
.dscroll > .dslot:first-child { margin-top: 40px; }
.dslot { height: calc(100% - 40px); scroll-snap-align: start; scroll-snap-stop: always; padding: 0 14px 14px; box-sizing: border-box; }
.dslot + .dslot { margin-top: 0; }
.dc { height: 100%; max-width: 560px; margin: 0 auto; box-sizing: border-box; border-radius: 28px; padding: 22px 22px 14px; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035)); border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); color: var(--text); }
.dpill { align-self: center; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--ice); background: rgba(188, 211, 232, .1); border: 1px solid rgba(188, 211, 232, .18); padding: 5px 12px; border-radius: 999px; }
.dref { font-family: var(--serif); font-size: clamp(26px, 7vw, 34px); font-weight: 600; line-height: 1.15; text-align: center; text-transform: none; letter-spacing: -.01em; color: var(--text); margin: 12px 0 2px; }
.dsub { text-align: center; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
.dverse { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.5; text-align: center; color: var(--text); opacity: .9; margin: 0 0 12px; min-height: 1.5em;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.dverse.sm { font-size: 15px; text-align: left; margin-bottom: 8px; -webkit-line-clamp: 3; }
.dlabel { margin: 4px 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dbody { margin: 0; font-family: var(--serif); font-size: 16.5px; line-height: 1.5; color: var(--text); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.dbox { margin-top: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); border-radius: 18px; padding: 12px 14px; }
.dbox ul { margin: 2px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.dbox li + li { margin-top: 4px; }
.dsrc { display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.dchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dchip { font-size: 13.5px; font-weight: 500; color: var(--text); text-decoration: none; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); }
.dchip:active { background: rgba(255, 255, 255, .12); }
.dact { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 6px; }
.dicon { width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.dicon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.dicon.on { color: var(--ice); } .dicon.on svg { fill: currentColor; }
.dmore { margin-left: auto; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; padding: 8px 4px; }
.dq { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 6px 4px; }
.dqmark { width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .07); display: grid; place-items: center; font-family: var(--serif); font-size: 46px; line-height: 1; padding-top: 14px; box-sizing: border-box; color: var(--text); margin-bottom: 12px; }
.dquote { font-family: var(--serif); font-size: clamp(21px, 5.6vw, 27px); line-height: 1.4; margin: 6px 0 0; color: var(--text); text-wrap: pretty; }
.dwho { margin: 14px 0 2px; color: var(--ice); font-weight: 600; font-size: 14.5px; }
.dwork { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.dwork a { color: var(--muted); }
.dalong { margin-top: 10px; }
.dalong .dchips { margin-top: 0; }
.dc > * { flex-shrink: 0; }
.dc > .dbox { flex-shrink: 1; min-height: 0; overflow: hidden; }
.dc .dicon { border: none !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; min-height: 0 !important; }
.dc .dicon:active { background: rgba(255, 255, 255, .08); }

/* Learn: one still Discover card at the top; tapping it opens scroll mode */
.lhead { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.lhead h2 { margin: 0 0 10px; }
.lone { cursor: pointer; }
.lone .dslot { height: 520px; padding: 0; }
.lone .dc { box-shadow: none; transition: transform .2s var(--ease); }
.lone:active .dc { transform: scale(.985); }
.lone .dc.study .dbox { display: none; }
.lone .dc .dbody { -webkit-line-clamp: 5; }
/* Quiz and memory cards */
.dref.sm { font-size: clamp(22px, 5.6vw, 26px); }
.dqtext { font-family: var(--serif); font-size: 17.5px; line-height: 1.5; margin: 4px 0 14px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.dchoices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dchoice { border: 1px solid rgba(255, 255, 255, .14) !important; background: rgba(255, 255, 255, .04) !important; color: var(--text) !important; border-radius: 16px !important; padding: 11px 10px !important;
  font: 500 15px var(--sans) !important; min-height: 0 !important; text-align: center; transition: background .2s, border-color .2s, opacity .2s; }
.dchoice.long { grid-column: 1 / -1; text-align: left; font-size: 14px !important; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dchoice.right { background: rgba(188, 211, 232, .2) !important; border-color: var(--ice) !important; }
.dchoice.wrong { background: rgba(255, 120, 110, .14) !important; border-color: rgba(255, 140, 130, .6) !important; }
.dchoice.dim { opacity: .45; }
.dresult { margin: 12px 0 0; font-size: 14.5px; color: var(--text); }
.dresult a { color: var(--ice); }
.dletters { font-family: var(--serif); font-size: 21px; line-height: 1.6; letter-spacing: .04em; margin: 0; color: var(--text); }
.dmem .dreveal { margin: 12px 0 0; text-align: left; -webkit-line-clamp: 8; }
.dshow { margin-top: 14px; }
/* Memorize sheet */
.sheet .wk { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; margin-top: 8px; padding: 14px 16px; }
.sheet .wk span { font-size: 13px; opacity: .7; font-weight: 400; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.brand img { border-radius: 10px; }
.brand span { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .01em; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.events .ev-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.events .ev-btns a { text-decoration: none; }
.events .ev-city { display: flex; gap: 8px; margin-top: 12px; }
.events .ev-city input { flex: 1; min-width: 0; }
.events { margin-top: 18px; }
.events .ev-city input { background: rgba(26, 23, 20, .06) !important; color: var(--ink) !important; border: 1px solid rgba(26, 23, 20, .14) !important; border-radius: 12px !important; padding: 10px 12px !important; }
.events .ev-city input::placeholder { color: rgba(26, 23, 20, .45); }
