/* Hephzibah Dating — app shell. Layout: one phone-width column, fixed top bar + bottom tab bar, sheets slide up from the bottom. */
:root {
  --bg: #f8f5f7;
  --surface: #ffffff;
  --surface-2: #f1ebef;
  --ink: #1d1220;
  --ink-2: #5d4f61;
  --ink-3: #8c7f90;
  --line: #e7dfe5;
  --wine: #8a1c4a;
  --wine-soft: #f6e3eb;
  --wine-ink: #ffffff;
  --gold: #b0843a;
  --gold-soft: #f5ecdc;
  --ok: #1f7a55;
  --ok-soft: #e1f2ea;
  --warn: #9a5b07;
  --warn-soft: #fbefd9;
  --bad: #b3261e;
  --bad-soft: #fbe4e2;
  --shadow: 0 18px 40px -18px rgba(45, 15, 40, .35);
  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-ui: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #110b13; --surface: #1b131e; --surface-2: #251a29; --ink: #f6eef4; --ink-2: #c4b4c2; --ink-3: #8f7f8e;
    --line: #33263a; --wine: #d9578a; --wine-soft: #3a1828; --wine-ink: #1a0c12; --gold: #d8ae62; --gold-soft: #33280f;
    --ok: #5cc59a; --ok-soft: #12291f; --warn: #e6a74a; --warn-soft: #2e2210; --bad: #f08a80; --bad-soft: #3a1714;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #110b13; --surface: #1b131e; --surface-2: #251a29; --ink: #f6eef4; --ink-2: #c4b4c2; --ink-3: #8f7f8e;
  --line: #33263a; --wine: #d9578a; --wine-soft: #3a1828; --wine-ink: #1a0c12; --gold: #d8ae62; --gold-soft: #33280f;
  --ok: #5cc59a; --ok-soft: #12291f; --warn: #e6a74a; --warn-soft: #2e2210; --bad: #f08a80; --bad-soft: #3a1714;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); color-scheme: dark;
}

.hd-root, .hd-root * { box-sizing: border-box; }
.hd-root {
  font-family: var(--f-ui); color: var(--ink); background: var(--bg);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  position: fixed; inset: 0; display: flex; justify-content: center; overflow: hidden;
}
.hd-app {
  position: relative; width: 100%; max-width: 480px; height: 100%;
  display: flex; flex-direction: column; background: var(--bg); overflow: hidden;
}
@media (min-width: 560px) {
  .hd-root { background: var(--surface-2); }
  .hd-app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
:where(.hd-root) :where(button) { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
:where(.hd-root) :where(a) { color: inherit; text-decoration: none; }
:where(.hd-root) :where(input, textarea, select) { font: inherit; color: var(--ink); }
.hd-root :focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; border-radius: 10px; }
.hd-root h1, .hd-root h2, .hd-root h3, .hd-root p { margin: 0; }
.hd-root svg { flex: none; }

/* top bar */
.hd-top {
  display: flex; align-items: center; gap: 12px; flex: none;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) max(18px, env(safe-area-inset-right, 0px)) 10px max(18px, env(safe-area-inset-left, 0px));
}
.hd-brand { font-family: var(--f-display); font-size: 22px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.hd-brand i { font-style: italic; color: var(--wine); font-weight: 500; }
.hd-top .hd-sp { flex: 1; }
.hd-title { font-family: var(--f-display); font-size: 24px; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.hd-icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line) !important; position: relative; }
.hd-dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--wine); border: 2px solid var(--surface); }

/* main scroll area */
.hd-main { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: 4px max(18px, env(safe-area-inset-right, 0px)) 24px max(18px, env(safe-area-inset-left, 0px)); }
.hd-main.hd-flush { padding: 0; display: flex; flex-direction: column; }

/* bottom tabs */
.hd-tabs {
  flex: none; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line);
  padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 6px) max(6px, env(safe-area-inset-left, 0px));
}
.hd-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); position: relative; }
.hd-tab[aria-current="page"] { color: var(--wine); }
.hd-tab .hd-badge { position: absolute; top: 2px; left: calc(50% + 6px); }
.hd-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--wine); color: var(--wine-ink); font-size: 10.5px; font-weight: 700; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }

/* type helpers */
.hd-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.hd-muted { color: var(--ink-2); }
.hd-small { font-size: 13px; }
.hd-xs { font-size: 12px; color: var(--ink-3); }
.hd-h2 { font-family: var(--f-display); font-size: 20px; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.hd-stack { display: flex; flex-direction: column; gap: 12px; }
.hd-stack > *, .hd-sheet-body > * { flex-shrink: 0; }
.hd-row { display: flex; align-items: center; gap: 10px; }
.hd-section { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.hd-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }

/* buttons */
.hd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 25px; font-weight: 700; font-size: 15px; letter-spacing: .01em; transition: transform .12s ease, opacity .12s ease; }
.hd-btn:active { transform: scale(.98); }
.hd-btn[disabled] { opacity: .45; pointer-events: none; }
.hd-btn-primary { background: var(--wine); color: var(--wine-ink); }
.hd-btn-ghost { background: var(--surface); border: 1px solid var(--line) !important; }
.hd-btn-quiet { background: var(--surface-2); }
.hd-btn-block { width: 100%; }
.hd-btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.hd-link { color: var(--wine); font-weight: 700; font-size: 13px; }

/* chips + pills */
.hd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hd-chip { padding: 7px 13px; border-radius: 999px; background: var(--surface-2); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.hd-chip.is-on { background: var(--wine); color: var(--wine-ink); }
.hd-chip.is-shared { background: var(--gold-soft); color: var(--gold); }
button.hd-chip { border: 0; }
.hd-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.hd-pill-ok { background: var(--ok-soft); color: var(--ok); }
.hd-pill-warn { background: var(--warn-soft); color: var(--warn); }
.hd-pill-wine { background: var(--wine-soft); color: var(--wine); }
.hd-pill-gold { background: var(--gold-soft); color: var(--gold); }
.hd-pill-bad { background: var(--bad-soft); color: var(--bad); }

/* surfaces */
.hd-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.hd-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.hd-li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; text-align: left; }
.hd-li + .hd-li { border-top: 1px solid var(--line); }
.hd-li-body { flex: 1; min-width: 0; }
.hd-li-title { font-weight: 700; font-size: 14.5px; }
.hd-li-sub { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 13px; color: var(--ink-2); }
.hd-note svg { margin-top: 1px; color: var(--wine); }

/* avatar / portrait art (used until a real photo is uploaded) */
.hd-av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; color: #fff; font-size: 18px; overflow: hidden; flex: none; background-size: cover; background-position: center; }
.hd-av-sm { width: 36px; height: 36px; font-size: 14px; }
.hd-av-lg { width: 84px; height: 84px; font-size: 30px; }

/* ---------- Discover deck ---------- */
.hd-discover { flex: 1; display: flex; flex-direction: column; padding: 0 max(14px, env(safe-area-inset-right, 0px)) 10px max(14px, env(safe-area-inset-left, 0px)); min-height: 0; }
.hd-deck-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 10px; }
.hd-deck { position: relative; flex: 1; min-height: 360px; }
.hd-cardx {
  position: absolute; inset: 0; border-radius: 26px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow);
  touch-action: pan-y; user-select: none; will-change: transform; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .35s;
}
.hd-cardx.is-dragging { transition: none; }
.hd-cardx.is-back { transform: scale(.95) translateY(14px); opacity: .7; pointer-events: none; }
.hd-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hd-photo-art { position: absolute; inset: 0; display: grid; place-items: center; }
.hd-photo-art span { font-family: var(--f-display); font-size: 120px; font-weight: 500; font-style: italic; color: rgba(255, 255, 255, .28); }
.hd-photo-bars { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 2; }
.hd-photo-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .4); }
.hd-photo-bars i.is-on { background: #fff; }
.hd-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: linear-gradient(to top, rgba(18, 6, 16, .92), rgba(18, 6, 16, .55) 45%, rgba(18, 6, 16, 0)); }
.hd-card-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 64px 20px 20px; color: #fff; display: flex; flex-direction: column; gap: 8px; }
.hd-card-name { font-family: var(--f-display); font-size: 30px; font-weight: 600; line-height: 1.05; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hd-card-name small { font-family: var(--f-ui); font-size: 22px; font-weight: 400; opacity: .9; }
.hd-card-line { display: flex; align-items: center; gap: 6px; font-size: 13.5px; opacity: .92; }
.hd-card-quote { font-size: 13.5px; line-height: 1.45; opacity: .95; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hd-card-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hd-card-chips span { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
.hd-card-chips span.is-shared { background: rgba(216, 174, 98, .35); }
.hd-verified { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 5px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-family: var(--f-ui); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hd-verified svg { color: #f0cd8a; }
.hd-info-btn { position: absolute; right: 16px; bottom: 20px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; display: grid; place-items: center; z-index: 3; }
.hd-stamp { position: absolute; top: 34px; padding: 6px 14px; border: 3px solid; border-radius: 10px; font-weight: 800; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; opacity: 0; z-index: 3; background: rgba(0, 0, 0, .15); }
.hd-stamp-yes { left: 22px; color: #ffd5e5; border-color: #ffd5e5; transform: rotate(-12deg); }
.hd-stamp-no { right: 22px; color: #fff; border-color: #fff; transform: rotate(12deg); }
.hd-actions { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 14px 0 4px; }
.hd-act { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line) !important; box-shadow: 0 8px 20px -12px rgba(40, 10, 30, .45); transition: transform .12s; }
.hd-act:active { transform: scale(.92); }
.hd-act-lg { width: 70px; height: 70px; background: var(--wine); color: var(--wine-ink); border: 0 !important; }
.hd-act-sm { width: 46px; height: 46px; color: var(--gold); }
.hd-act-pass { color: var(--ink-2); }
.hd-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 40px 20px; height: 100%; }
.hd-empty .hd-ring { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--wine-soft); color: var(--wine); }

/* ---------- Sheets / modals ---------- */
.hd-scrim { position: absolute; inset: 0; background: rgba(15, 5, 14, .45); z-index: 40; animation: hdFade .2s ease; }
.hd-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 92%; display: flex; flex-direction: column;
  background: var(--bg); border-radius: 26px 26px 0 0; animation: hdUp .28s cubic-bezier(.2, .8, .2, 1); overflow: hidden;
}
.hd-sheet-full { top: 0; max-height: none; border-radius: 0; }
.hd-sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0; flex: none; }
.hd-sheet-head { display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top, 0px) * 0 + 12px) 18px 8px; flex: none; }
.hd-sheet-full .hd-sheet-head { padding-top: calc(env(safe-area-inset-top, 0px) + 12px); }
.hd-sheet-body { overflow-y: auto; padding: 4px 18px calc(env(safe-area-inset-bottom, 0px) + 22px); flex: 1; }
.hd-sheet-foot { flex: none; padding: 10px 18px calc(env(safe-area-inset-bottom, 0px) + 14px); border-top: 1px solid var(--line); background: var(--bg); }
@keyframes hdUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes hdFade { from { opacity: 0; } to { opacity: 1; } }

/* profile detail */
.hd-detail-photo { position: relative; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 22px; overflow: hidden; }
.hd-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
.hd-kv dt { color: var(--ink-3); font-weight: 600; }
.hd-kv dd { margin: 0; font-weight: 600; min-width: 0; }
.hd-quote { font-family: var(--f-display); font-size: 18px; line-height: 1.45; font-style: italic; }

/* toast */
.hd-toast { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 86px); transform: translateX(-50%); z-index: 60; width: calc(100% - 36px); max-width: 420px; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 14px; font-size: 13.5px; font-weight: 600; display: flex; gap: 10px; align-items: center; animation: hdUp2 .25s ease; box-shadow: var(--shadow); }
@keyframes hdUp2 { from { transform: translate(-50%, 16px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* match celebration */
.hd-celebrate { position: absolute; inset: 0; z-index: 70; background: var(--wine); color: var(--wine-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 30px; text-align: center; animation: hdFade .3s ease; }
.hd-celebrate h2 { font-family: var(--f-display); font-size: 38px; font-style: italic; font-weight: 500; }

/* ---------- Matches ---------- */
.hd-limit { display: flex; align-items: center; gap: 14px; }
.hd-limit-dots { display: flex; gap: 6px; }
.hd-limit-dots i { width: 28px; height: 8px; border-radius: 4px; background: var(--surface-2); }
.hd-limit-dots i.is-on { background: var(--wine); }
.hd-pending-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.hd-pending { flex: none; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.hd-pending .hd-av { width: 72px; height: 72px; font-size: 26px; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--gold); }
.hd-pending .hd-av.is-wait { box-shadow: 0 0 0 2px var(--line); filter: saturate(.6); }

/* ---------- Chat ---------- */
.hd-chat { display: flex; flex-direction: column; height: 100%; }
.hd-msgs { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.hd-msg { max-width: 80%; padding: 10px 14px; border-radius: 20px; font-size: 14.5px; line-height: 1.4; word-wrap: break-word; }
.hd-msg-them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.hd-msg-me { align-self: flex-end; background: var(--wine); color: var(--wine-ink); border-bottom-right-radius: 6px; }
.hd-msg-sys { align-self: center; text-align: center; font-size: 12px; color: var(--ink-3); max-width: 90%; padding: 4px 8px; }
.hd-msg-time { font-size: 11px; color: var(--ink-3); align-self: flex-end; margin-top: -2px; }
.hd-msg-time.is-them { align-self: flex-start; }
.hd-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 10px) max(12px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--line); background: var(--surface); }
.hd-compose textarea { flex: 1; resize: none; border: 1px solid var(--line); background: var(--bg); border-radius: 22px; padding: 11px 16px; max-height: 120px; min-height: 44px; line-height: 1.35; }
.hd-send { width: 44px; height: 44px; border-radius: 50%; background: var(--wine); color: var(--wine-ink); display: grid; place-items: center; flex: none; }
.hd-blocked { margin: 0 12px 8px; }

/* ---------- Forms ---------- */
.hd-field { display: flex; flex-direction: column; gap: 6px; }
.hd-field label, .hd-label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); letter-spacing: .01em; }
.hd-input { width: 100%; height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px; font-size: 15px; }
textarea.hd-input { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.hd-input:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px var(--wine-soft); }
.hd-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hd-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); padding: 4px; border-radius: 14px; gap: 4px; }
.hd-seg button { height: 42px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.hd-seg button.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 2px 6px -2px rgba(30, 10, 25, .25); }
.hd-err { color: var(--bad); font-size: 13px; font-weight: 600; }

/* ---------- Onboarding ---------- */
.hd-welcome { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; padding: calc(env(safe-area-inset-top, 0px) + 28px) max(24px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 28px) max(24px, env(safe-area-inset-left, 0px)); position: relative; overflow: hidden; }
.hd-welcome-art { position: absolute; inset: 0; z-index: 0; }
.hd-welcome > *:not(.hd-welcome-art) { position: relative; z-index: 1; }
.hd-welcome h1 { font-family: var(--f-display); font-size: 44px; line-height: 1.02; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.hd-welcome h1 em { color: var(--wine); font-weight: 500; }
.hd-steps { display: flex; gap: 6px; }
.hd-steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-2); }
.hd-steps i.is-on { background: var(--wine); }
.hd-stage { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; }
.hd-stage + .hd-stage { border-top: 1px solid var(--line); }
.hd-stage-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--surface-2); color: var(--ink-2); flex: none; }
.hd-stage-n.is-done { background: var(--ok); color: #fff; }
.hd-stage-n.is-now { background: var(--wine); color: var(--wine-ink); }
.hd-upload { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 14px; background: var(--surface); width: 100%; text-align: left; }
.hd-upload.is-done { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.hd-upload input { display: none; }
.hd-progress-ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--wine) calc(var(--p) * 1%), var(--surface-2) 0); display: grid; place-items: center; flex: none; }
.hd-progress-ring > span { width: 50px; height: 50px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- Community ---------- */
.hd-cat-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
.hd-cat-row .hd-chip { flex: none; }
.hd-post { display: flex; flex-direction: column; gap: 8px; padding: 16px; width: 100%; text-align: left; }
.hd-post + .hd-post { border-top: 1px solid var(--line); }
.hd-post-title { font-weight: 700; font-size: 15.5px; line-height: 1.35; }
.hd-post-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.hd-meter { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.hd-meter > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--wine)); border-radius: 4px; }
.hd-fab { position: absolute; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 82px); width: 56px; height: 56px; border-radius: 50%; background: var(--wine); color: var(--wine-ink); display: grid; place-items: center; box-shadow: var(--shadow); z-index: 20; }

/* ---------- Corner ---------- */
.hd-hero-corner { border-radius: 24px; padding: 22px; background: var(--ink); color: var(--bg); display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.hd-hero-corner .hd-eyebrow { color: var(--gold); }
.hd-hero-corner h2 { font-family: var(--f-display); font-size: 25px; line-height: 1.15; font-weight: 600; text-wrap: balance; }
.hd-teach { display: flex; gap: 12px; align-items: center; padding: 12px; width: 100%; text-align: left; }
.hd-teach + .hd-teach { border-top: 1px solid var(--line); }
.hd-thumb { width: 74px; height: 74px; border-radius: 14px; flex: none; display: grid; place-items: center; color: #fff; }
.hd-books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hd-book { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hd-book-cover { aspect-ratio: 2 / 3; max-width: 100%; border-radius: 6px 10px 10px 6px; padding: 10px 8px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; font-family: var(--f-display); font-size: 12.5px; line-height: 1.2; font-weight: 600; box-shadow: inset 4px 0 0 rgba(0, 0, 0, .18); }
.hd-book-cover small { font-family: var(--f-ui); font-size: 9.5px; font-weight: 600; opacity: .85; }
.hd-event { display: flex; gap: 14px; align-items: center; }
.hd-date { width: 56px; flex: none; text-align: center; border-radius: 14px; background: var(--wine-soft); color: var(--wine); padding: 8px 0; }
.hd-date b { display: block; font-size: 22px; line-height: 1; font-family: var(--f-display); }
.hd-date span { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Profile ---------- */
.hd-me-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 6px 0 4px; }
.hd-me-head .hd-av-lg { width: 104px; height: 104px; font-size: 38px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .hd-root *, .hd-root *::before, .hd-root *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.hd-main.has-fab { padding-bottom: 96px; }
.hd-root [hidden] { display: none !important; }

/* ---- 1.1: prayerful interest, second look, prompts, pray together, coach marks ---- */
.hd-act { position: relative; }
.hd-act-pray { color: var(--gold); }
.hd-act-undo { color: var(--ink-2); }
.hd-act.is-spent { opacity: .42; }
.hd-act-count { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--gold); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.hd-act-count:empty { display: none; }
.hd-prayed { display: inline-flex; align-items: flex-start; gap: 6px; align-self: flex-start; max-width: 100%; padding: 6px 11px; border-radius: 14px; background: rgba(216, 174, 98, .92); color: #2a1a05; font-size: 12px; font-weight: 700; line-height: 1.3; }
.hd-prayed svg { flex: none; margin-top: 1px; }
.hd-card-prompt { margin: 0; font-size: 14px; line-height: 1.4; }
.hd-card-prompt span { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; opacity: .8; margin-bottom: 2px; }
.hd-prompt { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.hd-prompt p { margin: 4px 0 0; font-family: var(--f-display); font-size: 17px; line-height: 1.35; color: var(--ink); }
.hd-prompt-edit { display: grid; gap: 6px; padding: 10px; border-radius: 14px; background: var(--surface-2); margin-top: 6px; }
.hd-meter { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.hd-meter i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--wine), var(--gold)); transition: width .4s ease; }
.hd-pray-card { margin: 8px 12px 0; padding: 12px 14px; border-radius: 16px; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); display: grid; gap: 6px; }
.hd-pray-card .hd-small { margin: 0; color: var(--ink); }
.hd-starters { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 2px; border-top: 1px solid var(--line); background: var(--surface); }
.hd-starters .hd-chip { text-align: left; font-weight: 600; }
.hd-coach { position: absolute; inset: 0; z-index: 75; background: rgba(20, 8, 16, .62); display: grid; place-items: end center; padding: 16px; animation: hdFade .25s ease; }
.hd-coach-card { width: 100%; max-width: 420px; background: var(--surface); color: var(--ink); border-radius: 22px; padding: 20px; display: grid; gap: 14px; margin-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); }
.hd-coach-row { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.hd-coach-row svg { vertical-align: -4px; }
.hd-coach-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; }
.hd-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hd-pray-card .hd-pill { white-space: nowrap; flex: none; }

/* ---- challenge selfie ---- */
.hd-challenge { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 16px; border-radius: 18px; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
.hd-challenge-code { font-family: var(--f-display); font-size: 44px; line-height: 1; letter-spacing: .14em; color: var(--ink); font-variant-numeric: tabular-nums; }
.hd-challenge-do { font-size: 14.5px; line-height: 1.4; max-width: 30ch; }
.hd-cam { position: relative; aspect-ratio: 3 / 4; max-height: 52vh; width: 100%; border-radius: 22px; overflow: hidden; background: #140a12; display: grid; place-items: center; }
.hd-cam video, .hd-cam canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hd-cam-guide { position: absolute; inset: 12% 22% 26% 22%; border: 2px dashed rgba(255, 255, 255, .55); border-radius: 50%; pointer-events: none; }
.hd-cam-msg { position: relative; color: #fff; font-size: 13.5px; text-align: center; padding: 0 24px; max-width: 32ch; }
.hd-cam canvas:not([hidden]) ~ .hd-cam-guide { display: none; }

/* ================= 1.2: step-by-step sign-up ================= */
.hd-stepscreen { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; padding: calc(env(safe-area-inset-top, 0px) + 20px) max(22px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 24px) max(22px, env(safe-area-inset-left, 0px)); }
.hd-stepscreen .hd-welcome-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hd-stepcard { position: relative; z-index: 1; gap: 18px; width: 100%; max-width: 440px; margin: 0 auto; }
.hd-step-h { font-family: var(--f-display); font-size: 32px; line-height: 1.08; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
.hd-code { font-size: 24px; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; padding-left: calc(14px + .5em); }
.hd-code::placeholder { letter-spacing: .3em; color: var(--ink-3); }
.hd-code-form label svg { vertical-align: -5px; color: var(--wine); margin-right: 2px; }
.hd-unlock { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 6px; background: var(--wine-soft); border-color: transparent; }
.hd-jrow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 0; }
.hd-jrow + .hd-jrow { border-top: 1px solid var(--line); }
.hd-jrow[disabled] { cursor: default; }
.hd-jrow .hd-stage-n { width: 30px; height: 30px; font-size: 12.5px; }
.hd-jrow .hd-stage-n svg { width: 15px; height: 15px; }

/* install bar (phones, browser tab only) */
.hd-install-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; background: var(--surface); border-top: 1px solid var(--line); }
.hd-install-bar .hd-li-body { display: flex; flex-direction: column; line-height: 1.25; }
.hd-install-bar b { font-size: 13.5px; }
.hd-install-bar small { font-size: 11.5px; color: var(--ink-3); }
.hd-install-bar .hd-icon-btn { width: 34px; height: 34px; border: 0 !important; background: none; }
.hd-install-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--wine); color: var(--wine-ink); display: grid; place-items: center; flex: none; }

/* sidebar extras are desktop-only */
.hd-side-brand, .hd-side-me { display: none; }
.hd-side-detail { display: none; }
.hd-deck-col { display: flex; flex-direction: column; flex: 1; min-height: 0; }

/* ================= landing page (computers, signed out) ================= */
.hd-landing { flex: 1; overflow-y: auto; scroll-behavior: smooth; background: var(--bg); }
.hd-land-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 16px clamp(24px, 5vw, 64px); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hd-land-top .hd-sp { flex: 1; }
.hd-land-nav { display: flex; gap: 22px; margin-left: 28px; }
.hd-land-nav a { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hd-land-nav a:hover { color: var(--wine); }
.hd-land-hero { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 72px clamp(24px, 5vw, 64px) 80px; max-width: 1240px; margin: 0 auto; min-height: min(720px, calc(100vh - 70px)); }
.hd-land-hero .hd-welcome-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hd-land-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hd-land-copy h1 { font-family: var(--f-display); font-size: clamp(46px, 5.2vw, 72px); line-height: 1; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
.hd-land-copy h1 em { color: var(--wine); font-weight: 500; }
.hd-land-lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.hd-land-visual { position: relative; z-index: 1; display: grid; place-items: center; }
.hd-phone { width: 300px; aspect-ratio: 9 / 18.5; border-radius: 42px; background: var(--surface); border: 10px solid #1d1220; box-shadow: 0 40px 80px -30px rgba(45, 15, 40, .55); padding: 14px; display: flex; flex-direction: column; gap: 14px; transform: rotate(3deg); }
.hd-phone-card { flex: 1; border-radius: 22px; overflow: hidden; position: relative; background: linear-gradient(160deg, #9b2a5a, #2b0f2a); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.hd-phone-art { position: absolute; inset: 0; display: grid; place-items: center; }
.hd-phone-art span { font-family: var(--f-display); font-style: italic; font-size: 120px; color: rgba(255, 255, 255, .22); }
.hd-phone-info { position: relative; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(to top, rgba(18, 6, 16, .85), transparent); }
.hd-phone-info b { font-family: var(--f-display); font-size: 21px; }
.hd-phone-info small { display: flex; align-items: center; gap: 4px; font-size: 12px; opacity: .85; }
.hd-phone-info small svg { width: 13px; height: 13px; }
.hd-phone-actions { display: flex; justify-content: center; gap: 14px; }
.hd-phone-actions i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink-2); }
.hd-phone-actions i.is-lg { width: 56px; height: 56px; background: var(--wine); color: var(--wine-ink); border: 0; }
.hd-phone-actions i.is-gold { color: var(--gold); }
.hd-land-sec { padding: 84px clamp(24px, 5vw, 64px); max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.hd-land-alt { max-width: none; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-left: max(clamp(24px, 5vw, 64px), calc((100% - 1112px) / 2)); padding-right: max(clamp(24px, 5vw, 64px), calc((100% - 1112px) / 2)); }
.hd-land-sec h2 { font-family: var(--f-display); font-size: clamp(32px, 3.2vw, 44px); line-height: 1.08; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.hd-land-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
.hd-land-card { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.hd-land-sec:not(.hd-land-alt) .hd-land-card { background: var(--surface); }
.hd-land-card h3 { font-size: 17px; font-weight: 700; }
.hd-land-card p { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0; }
.hd-land-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--wine-soft); color: var(--wine); display: grid; place-items: center; }
.hd-land-num { position: absolute; top: 18px; right: 20px; font-family: var(--f-display); font-size: 34px; font-weight: 600; color: var(--line); }
.hd-land-about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hd-land-about p { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 54ch; margin: 10px 0 0; }
.hd-land-verse { margin: 0; padding: 30px; border-radius: 24px; background: var(--ink); color: var(--bg); font-family: var(--f-display); font-size: 24px; line-height: 1.35; font-style: italic; }
.hd-land-verse cite { display: block; margin-top: 14px; font-family: var(--f-ui); font-size: 13px; font-style: normal; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.hd-land-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 28px clamp(24px, 5vw, 64px); font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); }
.hd-land-foot .hd-sp { flex: 1; }

/* ================= computers: sidebar layout, modal sheets, side panels ================= */
.hd-root.is-desk { background: var(--bg); }
.hd-root.is-desk .hd-app { max-width: none; border: 0; }
.hd-root.is-desk #hd-screen.is-app { display: grid !important; grid-template-columns: 248px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.hd-root.is-desk #hd-screen.is-app .hd-tabs { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 4px; padding: 26px 14px 18px; border-top: 0; border-right: 1px solid var(--line); background: var(--surface); }
.hd-root.is-desk .hd-side-brand { display: block; font-family: var(--f-display); font-size: 23px; font-weight: 600; padding: 0 12px 22px; }
.hd-root.is-desk .hd-side-brand i { font-style: italic; color: var(--wine); font-weight: 500; }
.hd-root.is-desk .hd-tab { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 11px 14px; border-radius: 12px; font-size: 14.5px; letter-spacing: 0; }
.hd-root.is-desk .hd-tab:hover { background: var(--surface-2); color: var(--ink); }
.hd-root.is-desk .hd-tab[aria-current="page"] { background: var(--wine-soft); color: var(--wine); }
.hd-root.is-desk .hd-tab .hd-badge { position: static; margin-left: auto; }
.hd-root.is-desk .hd-side-me { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px; border-radius: 14px; text-align: left; border: 1px solid var(--line) !important; }
.hd-root.is-desk .hd-side-me:hover { background: var(--surface-2); }
.hd-root.is-desk #hd-screen.is-app .hd-top { grid-column: 2; padding: 26px 40px 10px; }
.hd-root.is-desk #hd-screen.is-app .hd-top .hd-brand { display: none; }
.hd-root.is-desk #hd-screen.is-app .hd-main { grid-column: 2; padding: 6px 40px 40px; }
.hd-root.is-desk #hd-screen.is-app .hd-main > * { max-width: 760px; }
.hd-root.is-desk #hd-screen.is-app .hd-main.hd-flush { padding: 0 40px 24px; }
.hd-root.is-desk #hd-screen.is-app .hd-main.hd-flush > * { max-width: none; }
.hd-root.is-desk .hd-install-bar { display: none; }
.hd-root.is-desk .hd-title { font-size: 30px; }
.hd-root.is-desk .hd-fab { right: 40px; bottom: 32px; }

/* discover: card on the left, full profile on the right */
.hd-root.is-desk .hd-discover { flex-direction: row; gap: 40px; padding: 0; align-items: stretch; }
.hd-root.is-desk .hd-deck-col { flex: 0 0 min(420px, 42%); }
.hd-root.is-desk .hd-deck { min-height: 520px; }
.hd-root.is-desk .hd-side-detail { display: block; flex: 1; max-width: 520px; overflow-y: auto; padding: 4px 6px 24px 0; }

/* sheets: centred dialogs; full sheets (chat, posts, camera) become a right-hand panel */
.hd-root.is-desk .hd-sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, calc(100% - 48px)); max-height: 86vh; border-radius: 24px; transform: translate(-50%, -50%); animation: hdPop .22s ease; box-shadow: var(--shadow); }
.hd-root.is-desk .hd-sheet-grip { display: none; }
.hd-root.is-desk .hd-sheet-full { top: 0; bottom: 0; right: 0; left: auto; width: min(520px, calc(100% - 248px)); max-height: none; height: 100%; border-radius: 0; transform: none; border-left: 1px solid var(--line); animation: hdSlide .26s cubic-bezier(.2, .8, .2, 1); box-shadow: -24px 0 60px -40px rgba(45, 15, 40, .5); }
.hd-root.is-desk .hd-sheet-full .hd-sheet-head { padding-top: 18px; }
.hd-root.is-desk .hd-app:has(.hd-sheet-full) #hd-screen.is-app .hd-main { padding-right: 560px; }
.hd-root.is-desk .hd-toast { bottom: 28px; left: calc(50% + 124px); }
.hd-root.is-desk .hd-coach { place-items: center; }
@keyframes hdPop { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes hdSlide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* step screens on computers: a centred card */
.hd-root.is-desk .hd-stepscreen { align-items: center; }
.hd-root.is-desk .hd-stepcard { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 34px; box-shadow: var(--shadow); max-width: 480px; }
.hd-root.is-desk .hd-sheet-full .hd-cam { max-height: 46vh; }

@media (max-width: 1180px) {
  .hd-land-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================= 1.3: engagement ================= */
.hd-rank { --rk: var(--gold); display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; color: var(--rk); background: color-mix(in srgb, var(--rk) 14%, transparent); border: 1px solid color-mix(in srgb, var(--rk) 30%, transparent); align-self: flex-start; white-space: nowrap; }
.hd-rank.is-sm { font-size: 11px; padding: 3px 9px 3px 7px; gap: 4px; }
.hd-rank-tag { color: var(--gold); font-weight: 700; }
.hd-rank-card, .hd-invite-card { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.hd-invite-card { flex-direction: row; align-items: center; gap: 12px; }
.hd-rank-card { background: linear-gradient(140deg, var(--surface) 55%, var(--gold-soft)); }
.hd-rank-pts { font-family: var(--f-display); font-size: 30px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.hd-rank-hero { background: linear-gradient(140deg, var(--surface) 50%, var(--wine-soft)); }
.hd-wallet { background: var(--ink); color: var(--bg); border: 0; }
.hd-wallet .hd-xs { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.hd-ladder { display: grid; gap: 6px; }
.hd-ladder-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); opacity: .6; }
.hd-ladder-row.is-done { opacity: 1; }
.hd-ladder-row.is-cur { opacity: 1; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.hd-pts { color: var(--ok); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hd-pts.is-neg { color: var(--bad); }
.hd-ref-code { font-family: var(--f-display); font-size: 36px; letter-spacing: .18em; font-weight: 600; }
.hd-rankup { background: linear-gradient(160deg, #8a1c4a, #3b0d24); color: #fff; }
.hd-rank-big { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #f0cd8a; box-shadow: 0 0 0 10px rgba(240, 205, 138, .12); }

/* install takeover */
.hd-take { position: absolute; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: calc(env(safe-area-inset-top, 0px) + 24px) 24px calc(env(safe-area-inset-bottom, 0px) + 24px); background: radial-gradient(120% 80% at 50% 0%, #a3285e 0%, #5c1233 55%, #2b0a19 100%); color: #fff; animation: hdFade .3s ease; overflow-y: auto; }
.hd-take-inner { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.hd-take-icon { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5); }
.hd-take h2 { font-family: var(--f-display); font-size: 34px; line-height: 1.05; font-weight: 600; }
.hd-take p { font-size: 15px; line-height: 1.5; opacity: .9; max-width: 32ch; }
.hd-take-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; text-align: left; }
.hd-take-perks li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .1); font-size: 14px; font-weight: 600; }
.hd-take-perks svg { color: #f0cd8a; flex: none; }
.hd-take-btn { background: #fff; color: #8a1c4a; height: 56px; font-size: 16px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); }
.hd-take-steps { margin: 0; padding: 0 0 0 4px; list-style: none; counter-reset: s; display: grid; gap: 10px; width: 100%; text-align: left; }
.hd-take-steps li { counter-increment: s; display: flex; align-items: center; gap: 12px; font-size: 15px; }
.hd-take-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #8a1c4a; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.hd-take-steps svg { vertical-align: -4px; }
.hd-take-arrow { color: #f0cd8a; transform: rotate(-90deg); animation: hdBob 1.2s ease-in-out infinite; }
@keyframes hdBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 8px; } }
.hd-take-skip { color: rgba(255, 255, 255, .8) !important; font-weight: 600; }
.hd-take-home { display: grid; place-items: center; width: 160px; height: 160px; border-radius: 30px; background: rgba(255, 255, 255, .08); border: 1px dashed rgba(255, 255, 255, .3); }
.hd-take-home span { display: grid; justify-items: center; gap: 6px; font-size: 12px; }
.hd-take-home .hd-take-icon { width: 64px; height: 64px; border-radius: 16px; animation: hdPulse 1.6s ease-in-out infinite; }
@keyframes hdPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* community tabs */
.hd-ctabs { margin: 6px 0 14px; }
.hd-ctabs button { font-size: 13px; height: 38px; }
.hd-wall-head { background: var(--gold-soft); border-color: transparent; gap: 6px; }
.hd-prayer.is-answered { border-color: color-mix(in srgb, var(--gold) 50%, transparent); background: linear-gradient(160deg, var(--surface) 60%, var(--gold-soft)); }
.hd-praise { padding: 10px 12px; border-radius: 12px; background: var(--gold-soft); }
.hd-pray-btn span { font-variant-numeric: tabular-nums; }

/* games */
.hd-game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hd-game { position: relative; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-align: left; padding: 16px; border-radius: 20px; color: #fff; min-height: 190px; overflow: hidden; }
.hd-game b { font-family: var(--f-display); font-size: 21px; font-weight: 600; }
.hd-game .hd-xs, .hd-game .hd-eyebrow { color: rgba(255, 255, 255, .82); }
.hd-game-quiz { background: linear-gradient(150deg, #9b2a5a, #4a0f2b); }
.hd-game-mem { background: linear-gradient(150deg, #3b5f86, #172c45); }
.hd-game-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; margin-bottom: 6px; }
.hd-game-cta { margin-top: auto; padding: 7px 14px; border-radius: 999px; background: #fff; color: #1d1220; font-size: 12.5px; font-weight: 800; }
.hd-game[data-done] .hd-game-cta { background: rgba(255, 255, 255, .2); color: #fff; }
.hd-wchallenge { border-color: color-mix(in srgb, var(--wine) 25%, transparent); }
.hd-wchallenge .hd-eyebrow { display: flex; align-items: center; gap: 6px; }
.hd-wchallenge .hd-eyebrow svg { width: 15px; height: 15px; }
.hd-poll { margin-top: 2px; }
.hd-poll-opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line) !important; background: var(--bg); text-align: left; overflow: hidden; font-size: 14px; font-weight: 600; }
.hd-poll-opt > i { position: absolute; inset: 0 auto 0 0; background: var(--wine-soft); transition: width .5s ease; z-index: 0; }
.hd-poll-opt span, .hd-poll-opt b { position: relative; z-index: 1; }
.hd-poll-opt.is-mine { border-color: var(--wine) !important; }
.hd-poll-opt.is-voted { cursor: default; }
.hd-lb-pos { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; background: var(--surface-2); color: var(--ink-2); flex: none; }
.hd-lb-pos.is-top { background: var(--gold); color: #fff; }
.hd-lb.is-me { background: var(--wine-soft); }
.hd-lb .hd-li-body { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.hd-quiz-verse { margin: 0; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font-family: var(--f-display); font-size: 20px; line-height: 1.45; }
.hd-blank { color: var(--wine); font-weight: 600; }
.hd-quiz-opt { width: 100%; padding: 15px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line) !important; text-align: left; font-weight: 700; font-size: 15px; transition: transform .1s; }
.hd-quiz-opt:active { transform: scale(.98); }
.hd-quiz-opt.is-picked { background: var(--wine); color: var(--wine-ink); border-color: var(--wine) !important; }
.hd-quiz-score { text-align: center; display: grid; gap: 6px; justify-items: center; background: linear-gradient(150deg, var(--surface) 50%, var(--gold-soft)); }
.hd-mem-built { min-height: 96px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px dashed var(--line); font-family: var(--f-display); font-size: 19px; line-height: 1.5; }

/* discover extras */
.hd-spotlight { display: flex; flex-direction: column; gap: 8px; padding: 2px 4px 12px; }
.hd-spotlight .hd-eyebrow { display: flex; align-items: center; gap: 5px; }
.hd-spot-row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.hd-spot { display: grid; justify-items: center; gap: 4px; flex: none; }
.hd-spot .hd-av { width: 54px; height: 54px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }
.hd-spot small { font-size: 11.5px; font-weight: 700; }
.hd-vision-chip { display: inline-flex; align-self: flex-start; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 12px; font-weight: 700; }
.hd-vision-chip svg { width: 14px; height: 14px; color: #ffd5e5; }
.hd-voice-play { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; border-radius: 16px; background: var(--wine-soft); color: var(--wine); font-weight: 700; }
.hd-voice-play span { flex: 1; text-align: left; }
.hd-voice-play i { width: 3px; height: 14px; border-radius: 2px; background: currentColor; opacity: .5; }
.hd-voice-play.is-on i { animation: hdWave .8s ease-in-out infinite; opacity: 1; }
.hd-voice-play.is-on i:nth-child(odd) { animation-delay: .2s; }
@keyframes hdWave { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1.3); } }
.hd-vrow { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); }
.hd-vrow.is-same .hd-small { color: var(--ok); font-weight: 600; }
.hd-vrow svg { width: 14px; height: 14px; vertical-align: -2px; }
.hd-voice-rec { display: grid; gap: 12px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.hd-voice-time { font-family: var(--f-display); font-size: 28px; font-variant-numeric: tabular-nums; }
.hd-voice-bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.hd-voice-bar i { display: block; height: 100%; width: 0; background: var(--wine); }

/* chat extras */
.hd-path-card { margin: 8px 12px 0; padding: 10px 12px; border-radius: 16px; background: var(--wine-soft); }
.hd-path-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--wine); color: var(--wine-ink); display: grid; place-items: center; flex: none; }
.hd-path-dots { display: flex; gap: 4px; }
.hd-path-dots i { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--wine) 22%, transparent); }
.hd-path-dots i.is-half { background: color-mix(in srgb, var(--wine) 55%, transparent); }
.hd-path-dots i.is-done { background: var(--wine); }
.hd-stage-card.is-locked { opacity: .55; }
.hd-stage-card.is-cur { border-color: var(--wine); }
.hd-stage-card .hd-chip { border-radius: 12px; }
.hd-scripture { max-width: 86%; border-radius: 18px; padding: 12px 14px; display: grid; gap: 6px; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); color: var(--ink); }
.hd-scripture.is-me { align-self: flex-end; }
.hd-scripture.is-them { align-self: flex-start; }
.hd-scripture p { font-family: var(--f-display); font-size: 16px; line-height: 1.45; font-style: italic; }
.hd-scripture .hd-eyebrow { color: var(--gold); display: flex; align-items: center; gap: 5px; }
.hd-reacts { align-self: flex-start; display: inline-flex; gap: 2px; margin: -10px 0 0 10px; padding: 2px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; position: relative; z-index: 1; }
.hd-reacts.is-me { align-self: flex-end; margin: -10px 10px 0 0; }
.hd-reacts .is-mine { filter: drop-shadow(0 0 2px var(--gold)); }
.hd-react-bar { align-self: flex-start; display: flex; gap: 4px; padding: 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: hdFade .15s ease; }
.hd-react-bar button { font-size: 22px; width: 38px; height: 38px; border-radius: 50%; }
.hd-react-bar button:active { transform: scale(1.3); }
.hd-msg-them[data-act] { cursor: pointer; }
.hd-typing { display: flex; align-items: center; gap: 3px; margin: 0; padding: 4px 18px 6px; font-size: 12px; color: var(--ink-3); }
.hd-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); animation: hdDot 1s infinite; }
.hd-typing i:nth-child(2) { animation-delay: .15s; }
.hd-typing i:nth-child(3) { animation-delay: .3s; margin-right: 4px; }
@keyframes hdDot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
.hd-compose-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: var(--gold-soft); flex: none; }
.hd-verse-pick { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line) !important; }
.hd-verse-pick b { font-size: 12.5px; color: var(--gold); }
.hd-verse-pick span { font-family: var(--f-display); font-size: 15px; line-height: 1.4; }
.hd-tips { margin: 0; padding: 12px 14px 12px 32px; border-radius: 14px; background: var(--ok-soft); font-size: 13px; line-height: 1.5; color: var(--ink); }

/* testimonies */
.hd-testi-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.hd-testi { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.hd-testi img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hd-testi h3 { font-family: var(--f-display); font-size: 19px; font-weight: 600; margin: 14px 16px 6px; }
.hd-testi p { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0 16px 16px; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.hd-root.is-desk .hd-game-grid { grid-template-columns: 1fr 1fr; }
.hd-root.is-desk .hd-take { display: none; }
.hd-app:has(.hd-install-bar:not([hidden])) .hd-fab { bottom: calc(env(safe-area-inset-bottom, 0px) + 140px); }

/* ================= 1.4 ================= */
/* install takeover */
.hd-take.is-out { opacity: 0; transition: opacity .2s; }
.hd-take-inner { gap: 14px; }
.hd-take-phone { width: 118px; height: 210px; border-radius: 24px; border: 5px solid rgba(255, 255, 255, .9); padding: 6px; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .6); animation: hdFloat 3s ease-in-out infinite; }
.hd-take-screen { height: 100%; border-radius: 16px; background: linear-gradient(170deg, #f8f5f7, #f1e2ea); display: grid; place-items: center; align-content: center; gap: 4px; color: #1d1220; position: relative; }
.hd-take-bar { position: absolute; top: 6px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: #1d1220; opacity: .8; }
.hd-take-mini { width: 46px; height: 46px; border-radius: 12px; }
.hd-take-screen b { font-family: var(--f-display); font-size: 14px; }
.hd-take-screen span { font-size: 8.5px; color: #5d4f61; font-weight: 600; }
@keyframes hdFloat { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(-3deg); } }
.hd-take-perks li span { line-height: 1.35; }
.hd-take-perks b { color: #fff; }
.hd-take-btn.is-ready, .hd-take-btn { animation: hdGlow 2s ease-in-out infinite; }
@keyframes hdGlow { 0%, 100% { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5), 0 0 0 0 rgba(255, 255, 255, .35); } 50% { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5), 0 0 0 10px rgba(255, 255, 255, 0); } }
.hd-take-ghost { background: rgba(255, 255, 255, .14); color: #fff; height: 48px; }
.hd-take-skip { margin-top: 4px; padding: 10px; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .75); text-decoration: underline; text-underline-offset: 3px; }
.hd-take-check { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #1f7a55; box-shadow: 0 0 0 12px rgba(255, 255, 255, .14); animation: hdPop2 .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes hdPop2 { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* today */
.hd-today-bar { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; margin-bottom: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line) !important; text-align: left; box-shadow: 0 10px 24px -20px rgba(45, 15, 40, .6); }
.hd-today-bar .hd-li-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hd-today-verse { font-family: var(--f-display); font-style: italic; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.hd-ring { --p: 0; width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--wine) calc(var(--p) * 1%), var(--surface-2) 0); }
.hd-ring b { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 11px; font-variant-numeric: tabular-nums; }
.hd-votd { display: grid; gap: 8px; padding: 20px; border-radius: 20px; color: #fff; background: radial-gradient(120% 120% at 100% 0%, #a3285e, #3b0d24); }
.hd-votd p { font-family: var(--f-display); font-size: 20px; line-height: 1.4; font-style: italic; }
.hd-votd b { color: #f0cd8a; font-size: 13px; letter-spacing: .04em; }

/* badges */
.hd-badge-strip { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; }
.hd-badge-dots { display: flex; gap: 4px; }
.hd-badge-dots i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); }
.hd-badge-dots i.is-on { background: var(--gold); color: #fff; }
.hd-badge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hd-bdg { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 16px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.hd-bdg b { font-size: 14px; }
.hd-badge-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); filter: grayscale(1); opacity: .6; }
.hd-bdg.is-on .hd-badge-ic { background: linear-gradient(140deg, #f0cd8a, #b0843a); color: #fff; filter: none; opacity: 1; box-shadow: 0 8px 18px -8px rgba(176, 132, 58, .8); }
.hd-bdg.is-on { border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.hd-mini-meter { width: 80%; height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.hd-mini-meter i { display: block; height: 100%; background: var(--gold); }
.hd-badge-big { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, #f0cd8a, #b0843a); color: #fff; box-shadow: 0 0 0 12px rgba(240, 205, 138, .16); }
.hd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hd-stats div { display: grid; gap: 2px; padding: 12px 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.hd-stats b { font-family: var(--f-display); font-size: 22px; }
.hd-stats span { font-size: 11px; color: var(--ink-3); font-weight: 600; }

/* games */
.hd-game-match { background: linear-gradient(150deg, #a35a2a, #4a2410); }
.hd-game-practice { background: linear-gradient(150deg, #1f6b5c, #0c2a24); }
.hd-qtimer { height: 4px; margin: 0 18px 8px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.hd-qtimer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--wine)); transition: width .1s linear; }
.hd-quiz-opt.is-right { background: var(--ok); color: #fff; border-color: var(--ok) !important; }
.hd-quiz-opt.is-wrong { background: var(--bad); color: #fff; border-color: var(--bad) !important; animation: hdShake .3s; }
@keyframes hdShake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.hd-chip.is-used { opacity: .35; }
.hd-vm-text { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--line) !important; }
.hd-vm-text span { font-family: var(--f-display); font-size: 15px; line-height: 1.4; }
.hd-vm-text.is-paired { border-style: solid !important; border-color: var(--wine) !important; background: var(--wine-soft); }
.hd-vm-text b { color: var(--wine); font-size: 12.5px; }

/* prayer wall */
.hd-prayer-body { display: grid; gap: 6px; text-align: left; width: 100%; }
.hd-pray-ring { --p: 0; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--surface-2) 0); transition: transform .3s; }
.hd-pray-ring > span { width: 128px; height: 128px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; align-content: center; gap: 2px; color: var(--gold); }
.hd-pray-ring b { font-family: var(--f-display); font-size: 30px; color: var(--ink); font-variant-numeric: tabular-nums; }
.hd-pray-ring.is-done { transform: scale(1.05); background: var(--ok); }
.hd-react-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line) !important; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.hd-react-chip.is-on { background: var(--wine-soft); color: var(--wine); border-color: var(--wine) !important; }

/* leaderboard podium */
.hd-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin: 18px 0 12px; }
.hd-pod { display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; }
.hd-pod b { font-size: 12.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-pod-av { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-size: 22px; font-weight: 600; color: #fff; background: linear-gradient(140deg, #8a1c4a, #3b0d24); }
.hd-pod-1 .hd-pod-av { width: 70px; height: 70px; font-size: 28px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--gold); }
.hd-pod-av i { position: absolute; bottom: -6px; right: -4px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; background: var(--gold); color: #fff; border: 2px solid var(--bg); }
.hd-pod-2 .hd-pod-av i { background: #9aa3ad; }
.hd-pod-3 .hd-pod-av i { background: #b2733f; }
.hd-pod-pts { font-weight: 800; font-size: 13px; color: var(--wine); }
.hd-pod-step { width: 100%; border-radius: 12px 12px 0 0; background: linear-gradient(180deg, var(--wine-soft), transparent); margin-top: 4px; }
.hd-pod-1 .hd-pod-step { height: 70px; background: linear-gradient(180deg, var(--gold-soft), transparent); }
.hd-pod-2 .hd-pod-step { height: 48px; }
.hd-pod-3 .hd-pod-step { height: 34px; }
.hd-pod.is-me b { color: var(--wine); }
.hd-pod.is-empty { visibility: hidden; }
.hd-root.is-desk .hd-badge-grid { grid-template-columns: repeat(3, 1fr); }

/* 1.4.2 bottom menu: Discover raised in the middle, the chosen tab pops up */
.hd-root:not(.is-desk) .hd-tabs { overflow: visible; position: relative; z-index: 5; }
.hd-root:not(.is-desk) .hd-tab[data-tab="matches"] { order: 1; }
.hd-root:not(.is-desk) .hd-tab[data-tab="community"] { order: 2; }
.hd-root:not(.is-desk) .hd-tab[data-tab="discover"] { order: 3; }
.hd-root:not(.is-desk) .hd-tab[data-tab="corner"] { order: 4; }
.hd-root:not(.is-desk) .hd-tab[data-tab="profile"] { order: 5; }
.hd-root:not(.is-desk) .hd-tab svg { transition: transform .32s cubic-bezier(.34, 1.56, .64, 1); }
.hd-root:not(.is-desk) .hd-tab span:not(.hd-badge) { transition: transform .32s cubic-bezier(.34, 1.56, .64, 1), color .2s; }
.hd-root:not(.is-desk) .hd-tab[aria-current="page"]:not([data-tab="discover"]) svg { transform: translateY(-4px) scale(1.32); }
.hd-root:not(.is-desk) .hd-tab[aria-current="page"]:not([data-tab="discover"]) span:not(.hd-badge) { transform: translateY(-2px) scale(1.08); font-weight: 700; }
.hd-root:not(.is-desk) .hd-tab[aria-current="page"]:not([data-tab="discover"])::before { content: ""; position: absolute; top: 0; left: 50%; width: 46px; height: 32px; margin-left: -23px; border-radius: 16px; background: var(--wine-soft); z-index: -1; animation: hd-tabpop .36s cubic-bezier(.34, 1.56, .64, 1); }
.hd-root:not(.is-desk) .hd-tab[data-tab="discover"] { margin-top: -40px; gap: 3px; }
.hd-root:not(.is-desk) .hd-tab[data-tab="discover"] svg { box-sizing: content-box; width: 28px; height: 28px; padding: 13px; border-radius: 50%; background: var(--wine); color: #fff; border: 4px solid var(--surface); box-shadow: 0 10px 22px -8px rgba(138, 28, 74, .7); transition: transform .32s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; }
.hd-root:not(.is-desk) .hd-tab[data-tab="discover"] span:not(.hd-badge) { font-size: 11.5px; }
.hd-root:not(.is-desk) .hd-tab[data-tab="discover"][aria-current="page"] svg { transform: translateY(-4px) scale(1.12); box-shadow: 0 16px 28px -8px rgba(138, 28, 74, .8); }
.hd-root:not(.is-desk) .hd-tab[data-tab="discover"]:not([aria-current="page"]) svg { background: var(--surface-2); color: var(--wine); box-shadow: 0 8px 18px -10px rgba(45, 15, 40, .5); }
.hd-root:not(.is-desk) .hd-tab:active svg { transform: scale(.9); }
@keyframes hd-tabpop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hd-root .hd-tab svg, .hd-root .hd-tab span { transition: none !important; } .hd-root .hd-tab::before { animation: none !important; } }

/* 1.4.3 Discover: start over */
.hd-round-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); letter-spacing: .06em; animation: hd-tabpop .4s cubic-bezier(.34, 1.56, .64, 1); }
.hd-round-pill svg { width: 14px; height: 14px; }
.hd-empty .hd-btn-primary svg { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; }
.hd-spin-soft svg { animation: hd-spin 1.4s linear infinite; }
@keyframes hd-spin { to { transform: rotate(360deg); } }
.hd-wallet-val { font: 700 30px/1.1 var(--serif, Georgia, serif); color: var(--gold); }
.hd-wallet .hd-meter { background: color-mix(in srgb, var(--bg) 18%, transparent); }
.hd-wallet details summary { color: var(--bg); }
.hd-wallet .hd-pill { white-space: nowrap; }
