/* Shaninan — base + chrome. Mobile-first iPhone. Built on tokens.css.
   Milestone 1: reset, layout shell, generic card/button/eyebrow/chip primitives.
   Later milestones extend this with per-screen component styles. */

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink-text);
  font-family: var(--ui);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}
button { font: inherit; cursor: pointer; }
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

/* ---------- app shell layout ---------- */
#app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* persistent top status bar */
#statusbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--statusbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: 0 1rem;
  padding-top: env(safe-area-inset-top);
  background: var(--ink);
  border-bottom: 1px solid rgba(217, 184, 106, .12);
}
#statusbar .sb-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: .01em;
  color: var(--cream);
}
#statusbar .sb-chips { display: flex; align-items: center; gap: .5rem; }

/* main scroll region — screens mount into #screen */
#screen {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* persistent bottom tab bar */
#tabbar {
  position: sticky;
  bottom: 0;
  z-index: 40;
  height: var(--tabbar-h);
  display: flex;
  align-items: stretch;
  background: var(--ink);
  border-top: 1px solid rgba(217, 184, 106, .12);
  padding-bottom: env(safe-area-inset-bottom);
}
#tabbar button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  background: none;
  border: none;
  color: var(--cream-mute);
  font-family: var(--ui);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .35rem 0;
}
#tabbar button .tab-ic {
  font-size: 1.1rem;
  line-height: 1;
}
#tabbar button[aria-current="page"] { color: var(--gold-pale); }

/* ---------- chrome chips ---------- */
.pts-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--navy);
  color: var(--gold-pale);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: .3rem .75rem;
  font-family: var(--ui);
  font-weight: 700;
  font-size: .85rem;
  line-height: 1;
}
.flame-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--navy);
  color: var(--gold-pale);
  border: 1px solid rgba(217, 184, 106, .35);
  border-radius: 999px;
  padding: .3rem .7rem;
  font-family: var(--ui);
  font-weight: 700;
  font-size: .85rem;
  line-height: 1;
}

/* ---------- generic primitives ---------- */
.screen-pad { padding: 1.5rem 1.25rem 2rem; }

/* surfaces flip to parchment on study screens by wrapping in .on-parchment */
.on-parchment { background: var(--parchment); color: var(--ink-text); }
.on-ink { background: var(--ink); color: var(--cream); }

.eyebrow {
  font-family: var(--ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-label);
  margin: 0 0 .5rem;
}

.display-h {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  margin: .1rem 0 .4rem;
}
.display-h.xl { font-size: 2.6rem; }
.display-h.lg { font-size: 2rem; }

.lead {
  font-size: 1rem;
  margin: 0 0 1.5rem;
  max-width: 40ch;
}

.card {
  background: var(--parchment);
  color: var(--ink-text);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
}
.card.shaded { background: var(--parchment-2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: none;
  border-radius: 12px;
  padding: .85rem 1.1rem;
  font-family: var(--ui);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  text-align: center;
}
.btn-gold { background: var(--gold); color: #2A1E08; }
.btn-gold:active { background: var(--gold-bright); }
.btn-block { display: flex; width: 100%; }
.btn-ghost {
  background: transparent;
  color: var(--gold-pale);
  border: 1px solid rgba(217, 184, 106, .4);
}
.btn small {
  display: block;
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
  margin-top: .2rem;
}

/* chapter number badge */
.badge-num {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--navy);
  color: var(--gold-pale);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}

/* completion seal */
.seal {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-pale), var(--gold) 60%, #8C6E2F);
  box-shadow: 0 4px 10px rgba(140, 110, 47, .4);
  display: flex; align-items: center; justify-content: center;
  color: #3a2a08; font-weight: 800;
  flex: none;
}

/* gold-on-hairline progress */
.prog { height: 3px; background: var(--line); border-radius: 99px; overflow: hidden; }
.prog > i { display: block; height: 100%; background: var(--gold); }

/* ---------- modal root (learn popup, etc.) ---------- */
#modal-root:empty { display: none; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11, 12, 16, .92);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* ---------- learn popup (bottom-sheet) · ref screen-1 ---------- */
/* prevent the screen behind from scrolling while the sheet is open */
body.modal-open #screen { overflow: hidden; }

/* dimmed, subtly-blurred ink backdrop filling the viewport */
.learn-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11, 12, 16, .82);
  -webkit-backdrop-filter: blur(3px) saturate(.9);
  backdrop-filter: blur(3px) saturate(.9);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* the parchment sheet itself */
.learn-sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  background: var(--parchment);
  color: var(--ink-text);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -14px 40px rgba(0, 0, 0, .45);
  /* slide-up entrance */
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.22, .61, .36, 1);
}
.learn-sheet.is-in { transform: translateY(0); }

/* grip handle */
.learn-grip {
  width: 44px;
  height: 5px;
  flex: none;
  margin: .65rem auto .25rem;
  border-radius: 99px;
  background: var(--line);
}

/* scrollable content region */
.learn-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: .6rem 1.25rem 1.1rem;
}
/* seif context header anchoring the sheet (navy badge + real seif title) */
.learn-seif-head {
  display: flex; align-items: center; gap: .7rem;
  padding-bottom: .85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.learn-seif-title {
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
  color: var(--ink-text); line-height: 1.2;
}
.learn-eyebrow { margin-top: .35rem; }

/* gold-keyline parchment frame holding the Hebrew source */
.he-frame {
  font-family: var(--hebrew);
  direction: rtl;
  text-align: right;
  font-size: 1.18rem;
  line-height: 2;
  color: var(--ink);
  background: var(--parchment);
  border: 1px solid var(--gold);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(182, 144, 71, .25);
  padding: 1rem 1.1rem;
}

/* translation / explanation eyebrow sections */
.learn-block { margin-top: 1.4rem; }
.learn-prose {
  font-family: var(--ui);
  font-size: .92rem;
  line-height: 1.6;
  color: var(--ink-text);
}
.learn-prose em { font-style: italic; }
.learn-prose strong { font-weight: 700; }

/* translation carries a gold/indigo left-rule accent */
.learn-translation {
  border-left: 3px solid var(--gold);
  padding-left: .9rem;
  margin-left: .1rem;
}
.learn-explanation .learn-prose { color: #4A4438; }

/* footer holds the full-width gold commit button */
.learn-foot {
  flex: none;
  padding: .85rem 1.25rem calc(1.1rem + env(safe-area-inset-bottom));
  background: var(--parchment);
  border-top: 1px solid var(--line);
}
.learn-commit {
  padding: .9rem 1rem;
  font-size: .9rem;
  letter-spacing: -.01em;
  flex-direction: column;
  white-space: nowrap;
}
.learn-commit small { white-space: normal; }

/* ambient floating Hebrew letters behind hero moments */
.he-bg {
  position: absolute; inset: 0;
  font-family: var(--hebrew);
  color: rgba(217, 184, 106, .06);
  font-size: 7rem; line-height: 1.2; letter-spacing: .5rem;
  user-select: none; pointer-events: none;
  word-break: break-all; padding: 1rem;
  overflow: hidden;
}

/* the choshen crest */
.crest { position: relative; }

/* ambient floating Hebrew letters — spaced grid behind hero moments */
.ambient-letters {
  position: absolute; inset: 0;
  font-family: var(--hebrew);
  color: rgba(217, 184, 106, .055);
  font-size: 2.4rem; line-height: 2.1; letter-spacing: .9rem;
  text-align: center;
  user-select: none; pointer-events: none;
  overflow: hidden; padding: .75rem;
  z-index: 0;
}

/* ---------- brand lockup (splash + home) ---------- */
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--cream);
  letter-spacing: .005em;
  margin: 0;
  line-height: 1;
}
.hebrew-mark {
  font-family: var(--hebrew);
  color: var(--gold-pale);
  letter-spacing: .12em;
}
.tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--cream-mute);
  margin: 0;
}
.crest-svg { margin: 0 auto; }

/* ---------- splash ---------- */
.splash {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem 1.5rem calc(2rem + env(safe-area-inset-bottom));
}
.splash-inner {
  position: relative; z-index: 1;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.splash-crest { margin-bottom: 1.5rem; }
.splash .wordmark { font-size: 4.2rem; }
.splash .hebrew-mark { font-size: 1.5rem; margin-top: .4rem; }
.splash .tagline { font-size: 1.1rem; margin-top: 1rem; }
.splash-start { min-width: 220px; margin-top: 2.75rem; }

/* ---------- home hero ---------- */
.home { position: relative; min-height: 100%; }
.home-hero {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  padding: 1.25rem 1.25rem 2rem;
  text-align: center;
}
.hero-top {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.hero-emblem { display: inline-flex; }
.hero-wordmark { position: relative; z-index: 1; font-size: 3.2rem; }
.hero-tagline { position: relative; z-index: 1; font-size: .95rem; margin-top: .5rem; }

/* parchment sheet that the flame card + list sit on */
.home-sheet {
  position: relative;
  background: var(--parchment);
  border-radius: 20px 20px 0 0;
  margin-top: -.5rem;
  padding: 1.5rem 1.25rem 2rem;
}

/* ---------- KEEP THE FLAME card ---------- */
.flame-card {
  display: flex; align-items: center; gap: 1.1rem;
  background: var(--parchment-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
}
.flame-ring {
  position: relative;
  width: 86px; height: 86px; flex: none;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 46%, rgba(217,184,106,.42), rgba(217,184,106,.12) 55%, transparent 72%),
    var(--parchment);
  border: 2px solid var(--gold);
  box-shadow:
    inset 0 0 18px rgba(217,184,106,.45),
    0 0 16px rgba(182,144,71,.4);
}
/* the lit flame fills the ring */
.flame-glyph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  line-height: 0;
}
.flame-svg { filter: drop-shadow(0 0 6px rgba(217,184,106,.65)); }
.flame-count {
  position: relative; z-index: 1;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.55rem;
  color: #3a2a08;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(255,247,228,.85);
  margin-top: .9rem;
}
.flame-unit {
  position: relative; z-index: 1;
  font-family: var(--ui);
  font-size: .5rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: #6b4f1c;
  margin-top: .05rem;
  text-shadow: 0 1px 1px rgba(255,247,228,.8);
}
.flame-copy { flex: 1; min-width: 0; }
.flame-eyebrow {
  font-family: var(--ui);
  font-size: .62rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-label);
  margin: 0 0 .15rem;
}
.flame-head {
  font-family: var(--serif);
  font-weight: 600; font-size: 1.45rem;
  color: var(--ink-text);
  margin: 0 0 .2rem; line-height: 1.1;
}
.flame-body {
  font-size: .82rem; color: #6B6457; margin: 0; line-height: 1.45;
}

/* ---------- Continue Studying ---------- */
.continue-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 1.75rem 0 .85rem;
}
.continue-title {
  font-family: var(--serif);
  font-weight: 600; font-size: 1.5rem;
  color: var(--ink-text); margin: 0;
}
.continue-all {
  background: none; border: none;
  font-family: var(--ui); font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-label);
}
.continue-all span { margin-left: .15rem; }
.continue-list { display: flex; flex-direction: column; }

.continue-row {
  display: flex; align-items: center; gap: .9rem;
  width: 100%; text-align: left;
  background: none; border: none;
  padding: .95rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-text);
}
.continue-row:last-child { border-bottom: 1px solid var(--line); }
.cr-num {
  width: 34px; height: 34px; flex: none;
  border-radius: 9px; background: var(--navy); color: var(--gold-pale);
  font-family: var(--serif); font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.cr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cr-title {
  font-family: var(--serif); font-weight: 600; font-size: 1.05rem;
  color: var(--ink-text); line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.cr-sub {
  font-family: var(--ui); font-size: .68rem; color: #6B6457;
  margin-top: .1rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cr-pct {
  font-family: var(--ui); font-weight: 700; font-size: .8rem;
  color: var(--gold-label); flex: none;
}
.cr-chev { color: var(--gold); flex: none; display: inline-flex; }
.cr-lock { flex: none; font-size: .9rem; opacity: .6; }
.continue-row.is-locked { opacity: .45; }

/* small seal variant for list rows */
.seal-sm {
  width: 30px; height: 30px; font-size: .9rem; flex: none;
}

/* ---------- siman map (parchment) ---------- */
.map {
  min-height: 100%;
  padding: 1.5rem 1.25rem calc(2rem + env(safe-area-inset-bottom));
}
.map-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.5rem;
}
.map-title {
  font-family: var(--serif);
  font-weight: 600; font-size: 2.1rem;
  color: var(--ink-text); margin: 0; line-height: 1.05;
}
.seif-list { display: flex; flex-direction: column; gap: 0; }

/* editorial flat card: no filled panel — a hairline divider separates rows */
.seif-card {
  display: block; width: 100%; text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1.35rem .25rem 1.5rem;
  color: var(--ink-text);
}
.seif-card:first-child { padding-top: .25rem; }
.seif-top { display: flex; align-items: flex-start; gap: 1rem; }
.seif-text { flex: 1; min-width: 0; }
.seif-title {
  display: block;
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem;
  color: var(--ink-text); line-height: 1.15;
}
.seif-sub {
  display: block;
  font-family: var(--ui); font-size: .76rem; color: #6B6457;
  margin-top: .25rem; line-height: 1.4;
}
.seif-mark { flex: none; min-width: 22px; display: inline-flex; align-items: center; }
.seif-prog {
  display: flex; align-items: center; gap: .75rem;
  margin-top: 1rem;
}
.seif-prog .prog { flex: 1; }
.seif-pct {
  font-family: var(--ui); font-weight: 700; font-size: .78rem;
  color: var(--gold-label); flex: none;
}
.seif-card.is-locked {
  opacity: .55;
}
.seif-card.is-locked .badge-num { background: #3a3d49; color: #9a9486; }

/* ---------- timed quiz (ink) · ref mockup screens 4 & 5 ---------- */
/* The whole quiz screen sits on ink; gold owns the timer + points energy.
   Green/red appear ONLY on answered choice/feedback states. NO study text. */
.quiz { position: relative; min-height: 100%; display: flex; flex-direction: column; }
.quiz-wrap {
  flex: 1;
  display: flex; flex-direction: column;
  padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
}

/* timer row: gold draining ring + live "points if now" — one tight HUD row */
.quiz-timerrow {
  display: flex; align-items: center; gap: 1rem;
  margin: .25rem 0 .9rem;
}
.timer-ring {
  position: relative; width: 58px; height: 58px; flex: 0 0 58px;
}
.timer-ring svg { display: block; }
.ring-track { stroke: rgba(217, 184, 106, .18); }
.ring-arc {
  stroke: var(--gold);
  transition: stroke-dashoffset .12s linear;
}
.timer-ring.is-correct .ring-arc { stroke: var(--green); stroke-dashoffset: 0 !important; }
.timer-ring.is-wrong .ring-arc { stroke: var(--red); stroke-dashoffset: 0 !important; }
.ring-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ui); font-weight: 800; font-size: 1.05rem;
  color: var(--cream);
}
.timer-ring.is-correct .ring-num { color: var(--green); }
.timer-ring.is-wrong .ring-num { color: var(--red); }

.pts-live {
  margin-left: auto; text-align: right;
  display: flex; flex-direction: column; align-items: flex-end;
  line-height: 1;
}
.pts-live-v {
  font-family: var(--serif); font-weight: 700;
  font-size: 1.5rem; line-height: 1;
  color: var(--gold-pale);
}
.pts-live-l {
  font-family: var(--ui); font-size: .58rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream-mute); margin-top: .2rem;
}

/* thin decay bar mirroring the points chip */
.decay-bar {
  height: 6px; border-radius: 99px; overflow: hidden;
  background: rgba(217, 184, 106, .14);
  margin-bottom: 1.4rem;
}
.decay-bar > i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-pale));
  transition: width .12s linear;
}

.quiz-qno {
  font-family: var(--ui); font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--cream-mute); margin: 0 0 .5rem;
}
.quiz-q {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.55rem; line-height: 1.25;
  color: var(--cream); margin: 0 0 1.25rem;
}

/* lettered parchment choice cards */
.quiz-choices { display: flex; flex-direction: column; gap: .7rem; }
.choice {
  display: flex; align-items: center; gap: .8rem;
  width: 100%; text-align: left;
  background: var(--parchment);
  color: var(--ink-text);
  border: 1.5px solid var(--line);
  border-radius: 13px;
  padding: .85rem .9rem;
  font-family: var(--ui); font-weight: 600; font-size: .92rem;
  line-height: 1.35;
}
.choice-key {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--navy);
  border: 1px solid var(--navy);
  color: var(--gold-pale);
  font-family: var(--ui); font-weight: 800; font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
}
.choice-label { flex: 1; min-width: 0; }
.choice.is-locked { pointer-events: none; }
/* answered states — the ONLY place green/red appear on the quiz */
.choice.is-correct {
  border-color: var(--green);
  background: #E6F4EC;
}
.choice.is-correct .choice-key {
  background: var(--green); color: #fff; border-color: var(--green);
}
.choice.is-wrong {
  border-color: var(--red);
  background: #F8E9E7;
}
.choice.is-wrong .choice-key {
  background: var(--red); color: #fff; border-color: var(--red);
}

/* peek pill */
.quiz-peek {
  margin: 1.6rem auto 0;
  background: none;
  border: 1px dashed rgba(217, 184, 106, .5);
  color: var(--gold-pale);
  font-family: var(--ui); font-size: .72rem; font-weight: 700;
  padding: .55rem 1rem; border-radius: 99px;
}

/* ---------- feedback band · ref mockup screen 5 ---------- */
/* Fixed above the persistent tab bar so it overlays the question, never sits
   behind the tabbar (which would steal taps on the Next button). */
.fb-band {
  position: fixed; left: 0; right: 0;
  bottom: var(--tabbar-h);
  z-index: 50;
  padding: .85rem 1.25rem 1rem;
  border-radius: 18px 18px 0 0;
  color: #fff;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .35);
  transform: translateY(100%);
  transition: transform .26s cubic-bezier(.22, .61, .36, 1);
}
.fb-band.is-in { transform: translateY(0); }
.fb-band[hidden] { display: none; }
.fb-band.is-correct { background: var(--green); }
.fb-band.is-wrong { background: var(--red); }
.fb-earn {
  position: absolute; top: -14px; right: 1.25rem;
  background: var(--parchment); color: var(--ink-text);
  border-radius: 99px; padding: .35rem .8rem;
  font-family: var(--ui); font-weight: 800; font-size: .82rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}
.fb-big {
  font-family: var(--ui); font-weight: 800; font-size: .98rem;
  line-height: 1.25;
}
.fb-why {
  font-family: var(--ui); font-size: .76rem; line-height: 1.45;
  opacity: .95; margin-top: .25rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.fb-why em { font-style: italic; }
.fb-why strong { font-weight: 700; }
.fb-next {
  margin-top: .7rem; width: 100%;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .55);
  color: #fff;
  padding: .65rem; border-radius: 11px;
  font-family: var(--ui); font-weight: 800; font-size: .92rem;
}

/* ---------- seif results (screen 6) ---------- */
.results {
  min-height: 100%;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.res-wrap {
  position: relative; z-index: 1;
  margin: auto 0;
  width: 100%; max-width: 360px;
  margin-left: auto; margin-right: auto;
  text-align: center;
}
.res-seal {
  width: 58px; height: 58px;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #3a2a08; font-weight: 800;
}
.res-eyebrow { margin: 0 0 .25rem; }
.res-score {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 4.75rem; line-height: .95;
  color: var(--gold-pale);
  letter-spacing: -.01em;
}
.res-score-l {
  font-family: var(--ui);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cream-mute);
  margin: .35rem 0 0;
}
.res-pb {
  font-family: var(--ui);
  font-weight: 800; font-size: .85rem;
  color: var(--green);
  margin: .65rem 0 0;
}
.res-stats {
  display: flex; gap: .6rem;
  margin: 1.5rem 0;
}
.res-stat {
  flex: 1;
  background: rgba(217, 184, 106, .07);
  border: 1px solid rgba(217, 184, 106, .22);
  border-radius: 14px;
  padding: .75rem .35rem;
}
.res-stat-v {
  font-family: var(--serif);
  font-weight: 700; font-size: 1.35rem;
  color: var(--cream);
  line-height: 1.1;
}
.res-stat-l {
  font-family: var(--ui);
  font-size: .6rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cream-mute);
  margin-top: .25rem;
}
.res-actions {
  display: flex; flex-direction: column; gap: .65rem;
}
