/* Bear 10 Talents — warm watercolor look, app-like motion. Light + dark. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(fonts/fraunces.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400 600; font-display: swap; src: url(fonts/fraunces-italic.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/figtree.woff2) format("woff2"); }
:root {
  color-scheme: light;
  --bg: #f8f1e6;
  --paper: #fffaf2;
  --paper-2: #fbf2e4;
  --ink: #3a3631;
  --ink-soft: #6c645a;
  --line: #eadfcc;
  --rose: #d9748a;
  --rose-ink: #b04a63;
  --rose-soft: #f9dedb;
  --coral: #e0504f;
  --plum: #5b2a86;
  --sun: #e8a722;
  --sun-ink: #8a5c00;
  --sun-soft: #fbecc4;
  --leaf: #6a9a4a;
  --leaf-ink: #3f6a27;
  --leaf-soft: #e3eed6;
  --on-fill: #ffffff;
  --blob-a: rgba(246, 190, 185, .55);
  --blob-b: rgba(251, 226, 150, .5);
  --blob-c: rgba(190, 215, 240, .4);
  --shadow: 0 1px 2px rgba(80, 55, 30, .05), 0 8px 24px rgba(80, 55, 30, .08);
  --shadow-lg: 0 2px 4px rgba(80, 55, 30, .06), 0 18px 44px rgba(80, 55, 30, .14);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.5, .5, 1);
  --nav-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1b181d; --paper: #272230; --paper-2: #221e29; --ink: #f3ece2; --ink-soft: #b9afa6; --line: #3a3341;
    --rose: #e98aa0; --rose-ink: #f2a3b4; --rose-soft: #4a303a; --coral: #ff8383; --plum: #c9a3f2;
    --sun: #f0b840; --sun-ink: #f3c25a; --sun-soft: #44381c; --leaf: #8fbd6d; --leaf-ink: #a9d287; --leaf-soft: #2b3626;
    --on-fill: #1d1a1f; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 26px rgba(0, 0, 0, .32); --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
    --blob-a: rgba(150, 70, 100, .28); --blob-b: rgba(160, 120, 30, .2); --blob-c: rgba(70, 90, 160, .22);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1b181d; --paper: #272230; --paper-2: #221e29; --ink: #f3ece2; --ink-soft: #b9afa6; --line: #3a3341;
  --rose: #e98aa0; --rose-ink: #f2a3b4; --rose-soft: #4a303a; --coral: #ff8383; --plum: #c9a3f2;
  --sun: #f0b840; --sun-ink: #f3c25a; --sun-soft: #44381c; --leaf: #8fbd6d; --leaf-ink: #a9d287; --leaf-soft: #2b3626;
  --on-fill: #1d1a1f; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 26px rgba(0, 0, 0, .32); --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
  --blob-a: rgba(150, 70, 100, .28); --blob-b: rgba(160, 120, 30, .2); --blob-c: rgba(70, 90, 160, .22);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--sans);
  padding: env(safe-area-inset-top, 0) 0 0; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
/* soft watercolor wash behind everything */
body::before {
  content: ""; position: fixed; inset: -10% -10% auto -10%; height: 90vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 36% at 12% 12%, var(--blob-a), transparent 70%),
    radial-gradient(36% 32% at 92% 30%, var(--blob-b), transparent 70%),
    radial-gradient(40% 30% at 55% 85%, var(--blob-c), transparent 70%);
  animation: wash 26s ease-in-out infinite alternate;
}
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .1px; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; border-radius: 12px; }
button, .btn, .item { transition: transform .18s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, opacity .2s; }
button:active:not([disabled]), .btn:active { transform: scale(.96); }

.app { max-width: 560px; margin: 0 auto; padding: 0 16px calc(var(--nav-h) + 56px + var(--safe-b)); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; margin: 0 -16px; padding: 10px 16px 8px; padding-top: calc(10px + env(safe-area-inset-top, 0px));
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px;
  transition: background-color .25s, box-shadow .25s;
}
.topbar { margin-top: calc(-1 * env(safe-area-inset-top, 0px)); }
body.scrolled .topbar { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; }
.brand-mark { width: 30px; height: 30px; border-radius: 10px; flex: none; background: url("icons/icon-192.png") center / cover; box-shadow: var(--shadow); }
.brand h1 { font-size: 18px; line-height: 1.1; white-space: nowrap; }
.brand small { display: block; font: 500 11.5px var(--sans); color: var(--ink-soft); margin-top: 1px; letter-spacing: .02em; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 88%, transparent);
  display: grid; place-items: center; color: var(--ink-soft); text-decoration: none; box-shadow: var(--shadow);
}
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- reveal ---------- */
.reveal { animation: rise .6s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 55ms); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center; border-radius: 34px; margin-top: 6px; padding: 26px 20px 22px; min-height: 410px;
  display: flex; flex-direction: column; align-items: center; color: #3a3631; isolation: isolate;
  background:
    radial-gradient(90% 70% at 15% 0%, #fbdcd8 0%, transparent 60%),
    radial-gradient(90% 70% at 100% 100%, #fcecb8 0%, transparent 60%),
    radial-gradient(60% 50% at 50% 50%, #fffaf0 0%, transparent 100%), #f6ecdc;
  box-shadow: var(--shadow-lg);
}
.hero-art { position: absolute; top: 0; bottom: 0; width: 38%; z-index: -1; pointer-events: none; animation: float 9s ease-in-out infinite; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; display: block; user-select: none; -webkit-user-drag: none; }
.hero-art.left { left: 0; -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 100%); mask-image: linear-gradient(90deg, #000 40%, transparent 100%); }
.hero-art.left img { object-position: 52% 55%; }
.hero-art.right { right: 0; animation-delay: -4s; -webkit-mask-image: linear-gradient(270deg, #000 40%, transparent 100%); mask-image: linear-gradient(270deg, #000 40%, transparent 100%); }
.hero-art.right img { object-position: 50% 55%; }
.hero-date { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .65; font-weight: 600; }
.hero-hello { font-size: 25px; line-height: 1.15; margin-top: 5px; max-width: 18ch; }
.ring-wrap { position: relative; width: 168px; height: 168px; margin: 16px auto 0; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.seg { stroke: rgba(90, 60, 30, .13); transition: stroke .3s, stroke-width .3s var(--spring); }
.seg.on { stroke: url(#rg); stroke-width: 13; }
.ring-wrap.full .seg.on { stroke: #6a9a4a; }
.ring-wrap.full .ring { filter: drop-shadow(0 0 10px rgba(106, 154, 74, .55)); }
.ring-wrap.pulse { animation: pulse .55s var(--spring); }
.ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-num b { font: 600 52px/1 var(--serif); font-variant-numeric: tabular-nums; }
.ring-num span { font-size: 12.5px; opacity: .7; margin-top: 4px; }
.hero-msg { margin-top: 14px; font: italic 16px/1.35 var(--serif); max-width: 24ch; min-height: 2.7em; }
.chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 99px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(6px); font-size: 13.5px; font-weight: 600; border: 1px solid rgba(80, 55, 30, .08); box-shadow: 0 2px 8px rgba(80, 55, 30, .06); }
.chip svg { width: 15px; height: 15px; }
.chip b { font-variant-numeric: tabular-nums; }
.petals { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.petals i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%; background: #fffaf0; border: 1px solid #efd3c6; opacity: 0; animation: fall var(--d, 14s) linear infinite; animation-delay: var(--w, 0s); }

/* ---------- pills / banners ---------- */
.new-pill {
  width: 100%; margin-top: 14px; display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px 10px 14px;
  border: 0; border-radius: 99px; color: #fff; background: linear-gradient(95deg, #d8404a, #e8703f); box-shadow: 0 8px 22px rgba(216, 64, 74, .32);
}
.new-pill svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.new-pill span { flex: 1; min-width: 0; font-size: 14px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.new-pill i { font: 700 13px var(--sans); font-style: normal; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .22); }
.install-banner { margin-top: 14px; padding: 18px 16px; display: grid; gap: 12px; text-align: center; justify-items: center; background: linear-gradient(135deg, var(--sun-soft), var(--rose-soft)); }
.install-banner b { font-family: var(--serif); font-size: 18px; }
.install-banner p { font-size: 14px; color: var(--ink-soft); margin-top: 3px; }
.ib-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
a.btn { text-decoration: none; color: inherit; }
a.btn.primary { color: #fff; }

/* ---------- cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.sub { color: var(--ink-soft); font-size: 14.5px; }
.section-title { text-align: center; margin: 38px 0 16px; }
.section-title h2 { font-size: 23px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.section-title h2::before, .section-title h2::after { content: ""; flex: 0 1 44px; height: 1.5px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--rose)); opacity: .7; }
.section-title h2::after { background: linear-gradient(270deg, transparent, var(--rose)); }
.section-title p { color: var(--ink-soft); font-size: 14px; margin-top: 4px; }

/* level row */
.level-strip { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 16px; width: 100%; text-align: left; }
.lvl-badge { position: relative; width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(from 200deg, var(--rose), var(--sun), var(--rose)); box-shadow: 0 6px 16px rgba(217, 116, 138, .35); }
.lvl-badge::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--paper); }
.lvl-badge b { position: relative; font: 600 22px var(--serif); }
.level-strip .grow { flex: 1; min-width: 0; }
.level-strip .lv { font: 700 11.5px var(--sans); color: var(--plum); text-transform: uppercase; letter-spacing: .09em; }
.level-strip .nm { font: 600 18px/1.2 var(--serif); }
.level-strip .xp { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.level-strip .chev { width: 20px; height: 20px; color: var(--ink-soft); flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xpbar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--rose), var(--sun)); border-radius: 99px; transition: width .8s var(--ease); }

/* ---------- tiers + items ---------- */
.tier { margin-top: 34px; }
.tier-head { display: grid; justify-items: center; text-align: center; gap: 4px; margin-bottom: 16px; }
.tier-badge { width: 50px; height: 50px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 4px; transition: transform .4s var(--spring); }
.tier-badge svg { width: 26px; height: 26px; }
.tier.complete .tier-badge { transform: scale(1.08) rotate(-4deg); }
.tone-rose .tier-badge { background: var(--rose-soft); color: var(--rose-ink); }
.tone-sun .tier-badge { background: var(--sun-soft); color: var(--sun-ink); }
.tone-leaf .tier-badge { background: var(--leaf-soft); color: var(--leaf-ink); }
.tier-head h2 { font-size: 22px; line-height: 1.15; }
.tier-head p { font-size: 13.5px; color: var(--ink-soft); max-width: 34ch; }
.tier-prog { display: flex; align-items: center; gap: 10px; margin-top: 8px; width: min(220px, 70%); }
.tier-prog .bar { flex: 1; height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; }
.tier-prog .bar i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .7s var(--ease); }
.tone-rose .bar i { background: var(--rose); } .tone-sun .bar i { background: var(--sun); } .tone-leaf .bar i { background: var(--leaf); }
.tier-count { font: 700 13px var(--sans); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tier.complete .tier-count { color: var(--leaf-ink); }

.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.item { display: flex; align-items: center; gap: 13px; padding: 11px 10px 11px 12px; min-height: 68px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
.item.sweep::after { animation: sweep .8s var(--ease); }
.item:active { transform: scale(.985); }
.tone-rose .item.done { background: var(--rose-soft); border-color: transparent; }
.tone-sun .item.done { background: var(--sun-soft); border-color: transparent; }
.tone-leaf .item.done { background: var(--leaf-soft); border-color: transparent; }
.check { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; border: 2.5px solid var(--line); background: var(--paper-2); display: grid; place-items: center; padding: 0; }
.check svg { width: 25px; height: 25px; stroke: var(--on-fill); fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .35s .08s var(--ease); }
.tone-rose .check { border-color: color-mix(in srgb, var(--rose) 55%, var(--line)); }
.tone-sun .check { border-color: color-mix(in srgb, var(--sun) 55%, var(--line)); }
.tone-leaf .check { border-color: color-mix(in srgb, var(--leaf) 55%, var(--line)); }
.item.done .check { border-color: transparent; }
.tone-rose .item.done .check { background: var(--rose); }
.tone-sun .item.done .check { background: var(--sun); }
.tone-leaf .item.done .check { background: var(--leaf); }
.item.done .check svg { stroke-dashoffset: 0; }
.check.pop { animation: pop-check .5s var(--spring); }
.item .body { flex: 1; min-width: 0; }
.item .t { font-weight: 650; font-size: 16.5px; line-height: 1.25; }
.item .d { font-size: 13px; color: var(--ink-soft); margin-top: 3px; line-height: 1.35; }
.item .side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.xp-chip { font: 700 11.5px var(--sans); letter-spacing: .03em; color: var(--ink-soft); padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.item.done .xp-chip { color: var(--ink); background: rgba(255, 255, 255, .55); }
.note-btn { position: relative; width: 40px; height: 36px; border-radius: 12px; border: 0; background: transparent; color: var(--ink-soft); display: grid; place-items: center; }
.note-btn svg { width: 20px; height: 20px; }
.note-btn .dot { position: absolute; top: 5px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); border: 2px solid var(--paper); }
.linkbtn { border: 0; background: none; padding: 0; color: var(--plum); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; min-height: 0; }

/* ---------- Watch tab ---------- */
.wotd { display: block; width: 100%; text-align: center; padding: 24px 20px 22px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(145deg, var(--rose-soft), var(--sun-soft)); box-shadow: var(--shadow); }
.wotd::before { content: "\201C"; position: absolute; left: 50%; top: -22px; transform: translateX(-50%); font: 700 120px/1 var(--serif); color: var(--rose); opacity: .18; }
.kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--plum); }
.wotd q { display: block; font: 600 24px/1.25 var(--serif); color: var(--coral); margin-top: 8px; quotes: "\201C" "\201D"; position: relative; }
.wotd .when { font-size: 13.5px; color: var(--ink-soft); margin: 10px auto 0; max-width: 32ch; position: relative; }
.wotd .more { display: inline-block; margin-top: 14px; font: 700 13px var(--sans); color: var(--plum); position: relative; }

.video-stack { display: grid; gap: 14px; }
.video { overflow: hidden; border-radius: 26px; }
.video .frame { position: relative; aspect-ratio: 16 / 9; background: #2c2630; }
.video .frame iframe, .video .frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video .thumb { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: #2c2630 center / cover no-repeat; }
.video .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .25)); }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.video .play span { width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 250, 241, .94); display: grid; place-items: center; box-shadow: 0 8px 26px rgba(0, 0, 0, .35); transition: transform .25s var(--spring); }
.video .thumb:active .play span { transform: scale(.9); }
.video .play svg { width: 28px; height: 28px; margin-left: 4px; fill: var(--coral); }
.video .cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 16px; }
.video .cap b { font-family: var(--serif); font-size: 17px; display: block; line-height: 1.25; margin-top: 2px; }
.video.new { border: 2px solid var(--coral); }
.video .ribbon { position: absolute; top: 14px; left: 0; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px 7px 11px; background: #d8404a; color: #fff; font: 800 13px var(--sans); letter-spacing: .03em; border-radius: 0 99px 99px 0; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); pointer-events: none; animation: ribbon-in .7s var(--spring) .3s backwards; }
.video .ribbon svg { width: 15px; height: 15px; fill: currentColor; }
.empty-video { padding: 26px 18px; text-align: center; }
.empty-video p { margin: 6px 0 14px; color: var(--ink-soft); font-size: 14.5px; }
.lib { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lib-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 8px 12px 8px 8px; }
.lib-item .th { position: relative; flex: none; width: 112px; aspect-ratio: 16 / 9; border-radius: 14px; background: #2c2630 center / cover no-repeat; overflow: hidden; }
.lib-item .th::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .18); }
.lib-item .th svg { position: absolute; z-index: 1; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-45%, -50%); fill: #fff; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.lib-item .tx { flex: 1; min-width: 0; }
.lib-item .tx b { display: block; font-family: var(--serif); font-size: 15.5px; line-height: 1.25; }
.lib-item .tx small { font-size: 12.5px; color: var(--ink-soft); }
.lib-item .seen { width: 22px; height: 22px; border-radius: 50%; background: var(--leaf); display: grid; place-items: center; flex: none; }
.lib-item .seen svg { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); font-weight: 650; font-size: 15px; box-shadow: var(--shadow); }
.btn.primary { background: linear-gradient(180deg, #e8605e, var(--coral)); border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(224, 80, 79, .35); }
[data-theme="dark"] .btn.primary { color: #1d1a1f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #1d1a1f; } }
.btn.small { min-height: 40px; padding: 0 15px; font-size: 14px; border-radius: 13px; }
.btn.danger { color: var(--coral); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn[disabled] { opacity: .5; cursor: default; }

/* ---------- page heads / Words ---------- */
.page-head { text-align: center; padding: 8px 4px 0; }
.page-head h2 { font-size: 32px; line-height: 1.1; }
.page-head p { color: var(--ink-soft); margin: 8px auto 0; max-width: 34ch; font-size: 14.5px; }
.poster-head { text-align: center; padding: 10px 4px 0; }
.poster-head .pk { font: 600 14px var(--serif); color: #a5522a; display: flex; align-items: center; justify-content: center; gap: 10px; }
.poster-head .pk::before, .poster-head .pk::after { content: ""; height: 1px; width: 36px; background: currentColor; opacity: .5; }
[data-theme="dark"] .poster-head .pk { color: #e9a77f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .poster-head .pk { color: #e9a77f; } }
.poster-head h2 { font-family: var(--sans); font-weight: 800; line-height: .95; margin-top: 8px; letter-spacing: -.02em; }
.poster-head h2 .a { display: block; font-size: 34px; color: var(--plum); }
.poster-head h2 .b { display: block; font-size: 56px; color: var(--coral); }
.poster-head h2 .c { display: block; font-size: 56px; color: var(--plum); }
.poster-intro { margin: 16px 6px 0; display: grid; gap: 8px; text-align: center; color: var(--ink-soft); font-size: 14.5px; }
.word-progress { display: grid; justify-items: center; gap: 10px; margin: 30px 0 18px; font-weight: 650; }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); transition: background .3s, transform .4s var(--spring); }
.dots i.on { background: var(--coral); transform: scale(1.2); }
.words-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.word { padding: 16px; display: grid; grid-template-columns: 48px 1fr; gap: 8px 14px; align-items: start; }
.word .n { font: 700 42px/1 var(--sans); color: #f0957f; text-align: center; }
[data-theme="dark"] .word .n { color: #ff9d86; }
.word .when { font-size: 13.5px; color: var(--ink-soft); }
.word q { display: block; font-weight: 800; color: var(--coral); font-size: 18.5px; line-height: 1.25; margin-top: 4px; quotes: "\201C" "\201D"; }
.word .act { grid-column: 1 / -1; display: flex; justify-content: flex-end; margin-top: 4px; }
.word.said { background: linear-gradient(145deg, var(--rose-soft), var(--paper)); }
.word.featured { grid-template-columns: 1fr; text-align: center; padding: 24px 20px 20px; background: linear-gradient(145deg, var(--rose-soft), var(--sun-soft)); border: 2px solid var(--rose); }
.word.featured .n { font-size: 52px; }
.word.featured q { font-size: 24px; font-family: var(--serif); font-weight: 600; }
.word.featured .act { justify-content: center; margin-top: 12px; }
.word .tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--plum); display: block; margin-bottom: 4px; }
.toggle { min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 650; font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow); }
.toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; display: none; }
.toggle[aria-pressed="true"] { background: var(--coral); border-color: transparent; color: #fff; }
.toggle[aria-pressed="true"] svg { display: block; }
[data-theme="dark"] .toggle[aria-pressed="true"] { color: #1d1a1f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toggle[aria-pressed="true"] { color: #1d1a1f; } }

/* ---------- Journal ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; margin: 18px -16px 0; padding: 4px 16px 10px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); font-weight: 650; font-size: 14px; }
.filters button[aria-pressed="true"] { background: var(--plum); border-color: transparent; color: #fff; }
[data-theme="dark"] .filters button[aria-pressed="true"] { color: #1d1a1f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .filters button[aria-pressed="true"] { color: #1d1a1f; } }
.day-label { text-align: center; font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 28px 2px 12px; }
.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.entry { padding: 14px 16px; }
.entry .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.entry .type { font: 700 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--rose-soft); color: var(--rose-ink); }
.entry .type.sun { background: var(--sun-soft); color: var(--sun-ink); }
.entry .type.leaf { background: var(--leaf-soft); color: var(--leaf-ink); }
.entry .time { font-size: 12.5px; color: var(--ink-soft); }
.entry p { margin-top: 10px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; }
.entry .del { border: 0; background: none; color: var(--ink-soft); font-size: 13px; padding: 6px 4px; min-height: 32px; box-shadow: none; }
.entry .del.confirm { color: var(--coral); font-weight: 700; }
.empty { text-align: center; padding: 38px 24px; color: var(--ink-soft); display: grid; justify-items: center; gap: 6px; }
.empty .daisy { width: 84px; height: 84px; opacity: .9; margin-bottom: 6px; }
.empty h3 { color: var(--ink); font-size: 20px; }
.empty .btn { margin-top: 12px; }
.center-row { display: flex; justify-content: center; margin-top: 22px; }
.fab { position: fixed; right: max(16px, calc(50% - 264px)); bottom: calc(var(--nav-h) + 34px + var(--safe-b)); z-index: 25; min-height: 54px; padding: 0 22px 0 18px; border: 0; border-radius: 99px; display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: #fff; background: linear-gradient(180deg, #e8605e, var(--coral)); box-shadow: 0 12px 28px rgba(224, 80, 79, .45); animation: fab-in .5s var(--spring) backwards; }
.fab svg { width: 20px; height: 20px; }
[data-theme="dark"] .fab { color: #1d1a1f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fab { color: #1d1a1f; } }
.fab[hidden] { display: none; }

/* ---------- Path ---------- */
.level-hero { text-align: center; padding: 26px 18px 22px; background: linear-gradient(165deg, var(--rose-soft), var(--paper) 55%, var(--sun-soft)); }
.lvl-ring { position: relative; width: 150px; height: 150px; margin: 0 auto; }
.lvl-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lvl-ring .t { stroke: var(--line); } .lvl-ring .p { stroke: url(#lg); transition: stroke-dashoffset 1s var(--ease); }
.lvl-ring .c { position: absolute; inset: 0; display: grid; place-content: center; }
.lvl-ring .c small { font: 700 11.5px var(--sans); color: var(--plum); letter-spacing: .1em; text-transform: uppercase; }
.lvl-ring .c b { font: 600 52px/1 var(--serif); }
.level-hero .big { font: 600 28px/1.1 var(--serif); margin-top: 14px; }
.level-hero .nextline { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 16px 12px; }
.week .d { text-align: center; font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.week .dot { width: 100%; aspect-ratio: 1; max-width: 44px; margin: 6px auto 0; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); border: 1.5px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.week .dot.part { background: var(--sun-soft); border-color: transparent; color: var(--sun-ink); }
.week .dot.good { background: var(--rose-soft); border-color: transparent; color: var(--rose-ink); }
.week .dot.full { background: var(--leaf); border-color: transparent; color: var(--on-fill); }
.week .d.today { color: var(--plum); }
.week .d.today .dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--plum) 35%, transparent); }
.note-sub { text-align: center; margin: 10px 8px 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { padding: 16px 8px; text-align: center; }
.stat b { display: block; font: 600 30px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--ink-soft); }
.badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.badge { padding: 18px 12px 16px; text-align: center; }
.badge .ic { width: 58px; height: 58px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); border: 1.5px dashed var(--line); color: var(--ink-soft); }
.badge .ic svg { width: 28px; height: 28px; }
.badge.got .ic { background: radial-gradient(circle at 35% 30%, #fff3c4, var(--sun-soft)); border: 1.5px solid transparent; color: var(--sun-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 20%, transparent), 0 6px 16px rgba(232, 167, 34, .3); }
.badge b { display: block; font-size: 15px; }
.badge span { font-size: 12.5px; color: var(--ink-soft); display: block; margin-top: 2px; }
.badge:not(.got) { opacity: .62; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.timeline li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); font-size: 15px; }
.timeline li .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font: 700 13px var(--sans); color: var(--ink-soft); flex: none; }
.timeline li.reached .n { background: var(--leaf); color: var(--on-fill); }
.timeline li.current { border-color: var(--rose); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rose) 25%, transparent); }
.timeline li span:last-child { margin-left: auto; color: var(--ink-soft); font-size: 13px; }

/* ---------- floating tab bar (5 tabs) ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: calc(12px + var(--safe-b)); z-index: 40; display: flex; justify-content: center; pointer-events: none; padding: 0 12px; }
.tabs-inner {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr); width: min(100%, 440px); height: var(--nav-h); padding: 6px; pointer-events: auto;
  border-radius: 28px; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); box-shadow: var(--shadow-lg);
}
.indicator { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 5); border-radius: 22px; background: var(--rose-soft); transform: translateX(calc(var(--tab-i, 0) * 100%)); transition: transform .45s var(--spring); }
.tabs button { position: relative; z-index: 1; border: 0; background: none; display: grid; place-content: center; justify-items: center; gap: 2px; color: var(--ink-soft); font-size: 11px; font-weight: 650; border-radius: 22px; padding: 0; min-width: 0; }
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--spring); }
.tabs button[aria-current="page"] { color: var(--rose-ink); }
.tabs button[aria-current="page"] svg { stroke-width: 2.3; transform: translateY(-1px) scale(1.12); }
.tabs .badge-dot { position: absolute; top: 8px; right: calc(50% - 20px); width: 10px; height: 10px; border-radius: 50%; background: var(--coral); border: 2px solid var(--paper); animation: pulse 1.8s ease-in-out infinite; }
.tabs .badge-dot[hidden] { display: none; }

/* ---------- footer ---------- */
.creed { text-align: center; margin: 44px 0 0; color: var(--ink-soft); font: italic 14px/1.55 var(--serif); }
.creed::before { content: ""; display: block; width: 8px; height: 8px; margin: 0 auto 14px; border-radius: 50%; background: var(--rose); box-shadow: -18px 0 0 -2px var(--line), 18px 0 0 -2px var(--line); }

/* ---------- sheets ---------- */
#sheet-root .backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(40, 28, 20, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .25s both; }
#sheet-root .backdrop.closing { animation: fade-out .22s both; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-width: 560px; margin: 0 auto; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: 30px 30px 0 0; padding: 4px 20px calc(24px + var(--safe-b)); box-shadow: 0 -12px 50px rgba(0, 0, 0, .3); animation: sheet-up .4s var(--ease) both;
}
.sheet.dragging { transition: none; animation: none; }
.sheet.closing { animation: sheet-down .22s ease-in both; }
.sheet .grab { padding: 10px 0 14px; touch-action: none; cursor: grab; }
.sheet .grab::before { content: ""; display: block; width: 46px; height: 5px; border-radius: 99px; background: var(--line); margin: 0 auto; }
.sheet .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; touch-action: none; }
.sheet h2 { font-size: 23px; }
.sheet .close { min-height: 42px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); font-weight: 650; font-size: 14px; }
.sheet .foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.field { display: grid; gap: 6px; margin-top: 16px; }
.field label, .field .lbl { font-weight: 700; font-size: 13.5px; }
.field small { color: var(--ink-soft); font-size: 12.5px; }
.field input, .field textarea, .field select { width: 100%; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 16px; padding: 13px 15px; font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 4px color-mix(in srgb, var(--plum) 18%, transparent); }
.field textarea { min-height: 124px; resize: vertical; }
.group { margin-top: 18px; padding: 4px 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; }
.group h3 { font-size: 18px; margin-top: 14px; }
.vlist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.vlist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line); font-size: 14px; }
.vlist li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster-img { width: 100%; border-radius: 18px; display: block; }
.steps { padding-left: 20px; margin: 8px 0 0; color: var(--ink-soft); font-size: 14.5px; }
.steps li { margin: 4px 0; }
.sheet .frame { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; }
.sheet .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- celebration ---------- */
.celebrate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(40, 28, 20, .58); backdrop-filter: blur(4px); animation: fade .25s both; }
.celebrate .box { position: relative; overflow: hidden; max-width: 380px; width: 100%; text-align: center; background: var(--paper); border-radius: 32px; padding: 30px 22px 24px; box-shadow: 0 24px 70px rgba(0, 0, 0, .4); animation: pop .55s var(--spring) both; }
.celebrate .box::before { content: ""; position: absolute; inset: -40% -20% auto; height: 80%; background: radial-gradient(closest-side, color-mix(in srgb, var(--sun) 40%, transparent), transparent); }
.celebrate .box > * { position: relative; }
.celebrate .daisy { width: 104px; height: 104px; margin: 0 auto 8px; animation: spin 14s linear infinite; filter: drop-shadow(0 6px 14px rgba(217, 116, 138, .4)); }
.celebrate h2 { font-size: 28px; }
.celebrate .verse { font: italic 16.5px/1.4 var(--serif); margin: 10px 0 2px; }
.celebrate .ref { font-size: 13px; color: var(--ink-soft); }
.celebrate .earned { display: inline-block; margin: 14px 4px 18px; padding: 7px 16px; border-radius: 99px; background: var(--sun-soft); color: var(--sun-ink); font-weight: 700; }
.celebrate .earned.lv { background: var(--rose-soft); color: var(--rose-ink); }

/* ---------- toast + fx ---------- */
#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 38px + var(--safe-b)); transform: translate(-50%, 20px) scale(.96); z-index: 70; opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 99px; font-weight: 650; font-size: 14.5px; max-width: calc(100vw - 32px); text-align: center; box-shadow: var(--shadow-lg); transition: opacity .25s, transform .4s var(--spring); }
#toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 95; overflow: hidden; }
.petal { position: absolute; width: 12px; height: 18px; border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%; background: #fffaf0; border: 1px solid #ecd2c4; animation: petal .95s cubic-bezier(.15, .8, .3, 1) forwards; }
.petal.y { background: #f6c94d; border-color: #e3a92a; width: 9px; height: 9px; border-radius: 50%; }
.floatxp { position: absolute; font: 800 15px var(--sans); color: var(--coral); text-shadow: 0 1px 0 #fff, 0 0 10px rgba(255, 255, 255, .9); animation: floatxp 1s var(--ease) forwards; white-space: nowrap; }

/* ---------- launch splash ---------- */
#splash { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-content: center; justify-items: center; gap: 16px; pointer-events: none; animation: splash-out .5s ease 1.15s forwards; }
.no-splash #splash { display: none; }
#splash svg { width: 112px; height: 112px; animation: splash-in 1s var(--spring) both; filter: drop-shadow(0 8px 18px rgba(217, 116, 138, .4)); }
#splash p { font: 600 22px var(--serif); animation: rise .8s var(--ease) .25s backwards; }

/* ---------- keyframes ---------- */
@keyframes fade { from { opacity: 0 } }
@keyframes fade-out { to { opacity: 0 } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) } }
@keyframes sheet-up { from { transform: translateY(100%) } }
@keyframes sheet-down { to { transform: translateY(100%) } }
@keyframes pop { from { transform: scale(.8); opacity: 0 } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes wash { to { transform: translate3d(2%, 3%, 0) scale(1.06) } }
@keyframes float { 50% { transform: translateY(-6px) } }
@keyframes pulse { 40% { transform: scale(1.08) } }
@keyframes pop-check { 0% { transform: scale(.7) } 55% { transform: scale(1.18) } 100% { transform: scale(1) } }
@keyframes sweep { to { transform: translateX(120%) } }
@keyframes ribbon-in { from { transform: translateX(-100%) } }
@keyframes fab-in { from { transform: translateY(30px) scale(.8); opacity: 0 } }
@keyframes floatxp { from { transform: translate(-50%, 0); opacity: 1 } to { transform: translate(-50%, -64px); opacity: 0 } }
@keyframes fall { 0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 0 } 10% { opacity: .75 } 100% { transform: translate3d(var(--x, 30px), 460px, 0) rotate(300deg); opacity: 0 } }
@keyframes petal { from { transform: translate(0, 0) rotate(0) scale(.6); opacity: 1 } to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1); opacity: 0 } }
@keyframes splash-in { from { transform: scale(.5) rotate(-50deg); opacity: 0 } }
@keyframes splash-out { to { opacity: 0; visibility: hidden } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .petals { display: none; }
}
@media (max-width: 370px) {
  .hero-hello { font-size: 22px; }
  .ring-wrap { width: 150px; height: 150px; }
  .poster-head h2 .b, .poster-head h2 .c { font-size: 46px; }
  .badges { gap: 10px; }
  .lib-item .th { width: 92px; }
}

/* ---------- Me tab switcher ---------- */
.seg-ctl { display: flex; gap: 4px; padding: 4px; margin: 14px auto 24px; width: fit-content; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; box-shadow: var(--shadow); }
.seg-ctl button { border: 0; background: none; min-height: 42px; padding: 0 26px; border-radius: 99px; font-weight: 700; color: var(--ink-soft); }
.seg-ctl button[aria-pressed="true"] { background: var(--plum); color: #fff; box-shadow: 0 4px 12px rgba(91, 42, 134, .3); }
[data-theme="dark"] .seg-ctl button[aria-pressed="true"] { color: #1d1a1f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg-ctl button[aria-pressed="true"] { color: #1d1a1f; } }
.seg-filters { justify-content: center; padding-inline: 16px; }

/* ---------- extra credit ---------- */
.again { margin-top: 8px; min-height: 32px; padding: 0 13px; border-radius: 99px; border: 1.5px dashed color-mix(in srgb, var(--ink) 30%, transparent); background: rgba(255, 255, 255, .55); font: 700 12.5px var(--sans); color: var(--ink); }
.again[hidden] { display: none; }
.beyond { margin-top: 36px; padding: 24px 20px; text-align: center; display: grid; justify-items: center; gap: 10px; background: linear-gradient(145deg, var(--sun-soft), var(--paper)); }
.beyond h3 { font-size: 20px; }
.beyond p { font-size: 14px; color: var(--ink-soft); max-width: 34ch; }

/* ---------- Pray tab ---------- */
.pray-hero { display: grid; justify-items: center; text-align: center; gap: 16px; margin: 30px 0 6px; }
.pray-btn { position: relative; width: 208px; height: 208px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 28%, #b184de, #5b2a86 72%); box-shadow: 0 18px 50px rgba(91, 42, 134, .45), inset 0 2px 8px rgba(255, 255, 255, .3); }
.pray-btn .halo { position: absolute; inset: -12px; border-radius: 50%; border: 2px solid rgba(143, 86, 200, .4); animation: halo 3.6s ease-out infinite; pointer-events: none; }
.pray-btn .halo.h2 { animation-delay: 1.8s; }
.pray-btn .lbl { position: relative; display: grid; justify-items: center; gap: 8px; }
.pray-btn .lbl svg { width: 46px; height: 46px; }
.pray-btn .lbl b { font: 600 22px var(--serif); }
.pray-note { color: var(--ink-soft); max-width: 32ch; font-size: 14.5px; margin-top: 6px; }
.pray-count { font-size: 13.5px; color: var(--ink-soft); }
.pray-count b { color: var(--ink); }

/* ---------- prayer room ---------- */
.prayer-room { position: fixed; inset: 0; z-index: 85; display: flex; flex-direction: column; color: #f6eef7; overflow-y: auto;
  background: radial-gradient(120% 80% at 50% 0%, #5a3a82 0%, #2c1f45 55%, #171226 100%); animation: fade .5s both; }
.pr-top { display: flex; justify-content: flex-end; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 0; }
.pr-close { min-height: 44px; padding: 0 20px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; font-weight: 650; }
.pr-body { flex: 1; display: grid; align-content: center; justify-items: center; gap: 14px; text-align: center; padding: 8px 22px calc(32px + var(--safe-b)); }
.pr-kicker { font: 700 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #d8c2f0; }
.pr-body h2 { font-size: 30px; line-height: 1.15; }
.pr-orb { position: relative; width: 130px; height: 130px; margin: 6px 0; }
.pr-orb i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 150, .6), transparent 70%); animation: breathe 7s ease-in-out infinite; }
.pr-orb i:nth-child(2) { animation-delay: -2.3s; } .pr-orb i:nth-child(3) { animation-delay: -4.6s; }
.pr-frame { position: relative; width: min(84vw, 320px); aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 14px 40px rgba(0, 0, 0, .55); }
.pr-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pr-title { font: 600 18px var(--serif); max-width: 26ch; }
.pr-hint { font-size: 13.5px; color: #cdbfe0; max-width: 30ch; }
.amen { display: grid; justify-items: center; gap: 14px; width: 100%; max-width: 380px; animation: rise .7s var(--ease) both; }
.amen h2 { font-size: 40px; }
.amen-sub { color: #e4d6f3; font-size: 16px; }
.amen-sub b { color: #ffd98a; }
.pr-rec { width: 100%; display: grid; gap: 10px; margin-top: 8px; text-align: left; }
.pr-rec .kicker { text-align: center; color: #d8c2f0; }
.pr-actions { margin-top: 6px; }
.pr-actions .btn { color: #fff; border-color: rgba(255, 255, 255, .3); }
.prayer-room .daisy { width: 96px; height: 96px; animation: spin 18s linear infinite; }

@keyframes halo { 0% { transform: scale(.94); opacity: .9 } 100% { transform: scale(1.3); opacity: 0 } }
@keyframes breathe { 0%, 100% { transform: scale(.55); opacity: .35 } 50% { transform: scale(1.1); opacity: .95 } }

/* ---------- spacing polish ---------- */
.page-head { padding: 14px 4px 4px; }
.page-head + * { margin-top: 18px; }
.section-title { margin: 40px 0 18px; }
.page-head + .section-title { margin-top: 28px; }
.video-stack + .section-title { margin-top: 40px; }
.lib-item { min-height: 76px; }
.lib-item .tx b { overflow-wrap: anywhere; }
#watch-dot { right: calc(50% - 16px); }

/* ---------- fixes ---------- */
.chip[hidden] { display: none; }
main:focus, main:focus-visible { outline: none; }
.hero-msg { text-shadow: 0 0 10px #fbf2e4, 0 0 4px #fbf2e4; }
.hero .chips { position: relative; }
.prayer-room .card { color: var(--ink); }
.prayer-room .card .tx small { color: var(--ink-soft); }
