:root {
  --bg: #0b0c10;
  --bg-2: #14151c;
  --card: #fbf7f0;
  --card-ink: #16130f;
  --muted: #6e675c;
  --line: rgba(22, 19, 15, 0.1);
  --like: #1f9e62;
  --like-bright: #25d07d;
  --nope: #e23b4a;
  --nope-bright: #ff4b5a;
  --gold: #e0b24d;
  --cream: #f7f2e8;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--cream);
  font-family: Outfit, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
body { min-height: 100dvh; }
.hidden { display: none !important; }

#app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(8px + var(--safe-top)) 0 calc(8px + var(--safe-bot));
  background:
    radial-gradient(900px 420px at 50% -8%, #1b2230 0%, transparent 62%),
    var(--bg);
}

/* ----- Top bar & tabs ----- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 16px 8px;
}
.topbar-right {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.brand { display: flex; align-items: center; gap: 8px; }
.mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #2a9a5f, #145c38);
  color: #e9f8ef; font-size: 14px;
  box-shadow: 0 6px 14px rgba(28, 122, 74, 0.35);
}
.brand h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.icon-btn {
  width: 42px; height: 42px; border-radius: 13px;
  border: 1px solid rgba(247, 242, 232, 0.12);
  background: var(--bg-2);
  color: var(--cream);
  display: grid; place-items: center;
  cursor: pointer;
}
.feed-tabs {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 2px 16px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.feed-tabs::-webkit-scrollbar { display: none; }
.feed-tabs button {
  flex: 0 0 auto;
  border: 1px solid rgba(247, 242, 232, 0.14);
  background: rgba(255,255,255,0.04);
  color: #d8dce6;
  border-radius: 999px;
  padding: 7px 13px;
  font: 600 13px/1 Outfit, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.feed-tabs button.active {
  background: var(--cream);
  color: var(--card-ink);
  border-color: transparent;
}
.feed-tabs button.hot.active {
  background: linear-gradient(90deg, #ff7a45, #ff4d6d);
  color: #fff;
}
.feed-tabs button.hot:not(.active) {
  border-color: rgba(255, 122, 69, 0.45);
  color: #ffc2a8;
}

/* ----- Full-bleed card stack ----- */
.stage {
  flex: 1;
  position: relative;
  min-height: 0;
  margin: 0 12px;
}
.deck, .empty { position: absolute; inset: 0; }
.deck { touch-action: none; }
.card {
  position: absolute;
  inset: 0;
  background: var(--card);
  color: var(--card-ink);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42);
  transform-origin: 50% 80%;
  user-select: none;
  -webkit-user-select: none;
}
.card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(22, 19, 15, 0.06);
}
.card-art {
  position: relative;
  height: 38%;
  min-height: 168px;
  flex: 0 0 auto;
  overflow: hidden;
}
.card-art svg { width: 100%; height: 100%; display: block; }
.card-art .art-emoji {
  position: absolute;
  right: 16px; bottom: 14px;
  width: 42px; height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  font-size: 22px;
  pointer-events: none;
}
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 14px;
  min-height: 0;
}
.card-top {
  display: flex; justify-content: flex-start; align-items: center; gap: 8px;
}
.chip {
  display: inline-flex; align-items: center;
  background: rgba(31, 158, 98, 0.12);
  color: #145c38;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.savings {
  display: block;
  width: fit-content;
  max-width: 100%;
  background: #f3e6b8;
  color: #5c4a0c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  padding: 5px 9px;
  border-radius: 10px;
  margin-top: 8px;
  white-space: normal;
  overflow: visible;
}
.tip-text {
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.03em;
  margin-top: 12px;
  flex: 1;
  overflow: auto;
}
.status-pill {
  display: inline-flex;
  width: max-content;
  margin-top: 8px;
  font-size: 11px;
  color: #7a3b12;
  background: #f6e1cc;
  padding: 3px 8px;
  border-radius: 999px;
}
.card-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 12px;
}
.meta { font-size: 12px; color: var(--muted); line-height: 1.35; }
.meta strong { color: var(--card-ink); font-weight: 600; }
.meta a { color: inherit; text-decoration: none; }
.remain-count {
  flex: 0 0 auto;
  text-align: center;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 8px 0 0;
  margin: 0;
}

/* Stamps */
.stamp {
  position: absolute;
  top: 22%;
  z-index: 3;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 34px;
  padding: 6px 12px;
  border: 4px solid;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  background: rgba(251, 247, 240, 0.72);
}
.stamp.like { left: 18px; color: var(--like); border-color: var(--like); transform: rotate(-18deg); }
.stamp.nope { right: 18px; color: var(--nope); border-color: var(--nope); transform: rotate(16deg); }

/* Thumbs + comment ON the card */
.card-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 8px 8px 2px;
  flex: 0 0 auto;
}
.thumb, .comment-btn {
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(22, 19, 15, 0.12);
  -webkit-tap-highlight-color: transparent;
  overflow: visible;
}
.thumb {
  width: 62px; height: 62px;
  border-radius: 50%;
}
.thumb.down { background: #2a1618; color: #ff8a93; }
.thumb.up { background: #13281d; color: #7eebc0; }
.comment-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #1a1814;
  color: var(--cream);
}
.thumb:active, .comment-btn:active { transform: scale(0.96); }

.empty {
  display: grid; place-items: center; text-align: center; padding: 24px;
  background: var(--bg-2); border-radius: 28px;
  border: 1px solid rgba(247, 242, 232, 0.08);
}
.empty h2 { font-family: Fraunces, serif; font-size: 32px; margin-bottom: 10px; }
.empty p { color: #9aa3b2; margin-bottom: 22px; max-width: 280px; }

/* ----- Onboarding ----- */
#onboarding.screen {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  height: 100dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  padding-bottom: var(--safe-bot);
}
.ob-hero {
  height: 6vh;
  min-height: 40px;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 20% 80%, #25d07d55, transparent 50%),
    radial-gradient(circle at 80% 20%, #ff4b5a44, transparent 46%),
    radial-gradient(circle at 60% 70%, #e0b24d33, transparent 50%),
    linear-gradient(180deg, #1a2230, var(--bg));
}
.ob-content { padding: 4px 20px 16px; flex: 1; display: flex; flex-direction: column; }
.ob-step { display: flex; flex-direction: column; flex: 1; }
.ob-kicker {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #8fe0b8; font-weight: 600; margin-bottom: 8px;
}
.ob-tagline {
  font-family: Fraunces, serif;
  font-size: 16px;
  font-weight: 500;
  color: #e0b24d;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.ob-content h1 {
  font-family: Fraunces, serif;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.ob-back {
  align-self: flex-start;
  border: none;
  background: transparent;
  color: #9aa3b2;
  font: 600 13px Outfit, sans-serif;
  padding: 0 0 12px;
  cursor: pointer;
}
.ob-lead, .sheet-lead, .ob-fine { color: #9aa3b2; font-size: 15px; line-height: 1.45; }
.ob-lead { margin-bottom: 12px; font-size: 14px; }
.ob-lead strong { color: #ffc2a8; font-weight: 600; }
.pick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.pick {
  text-align: left;
  border: 1px solid rgba(247, 242, 232, 0.12);
  background: var(--bg-2);
  color: var(--cream);
  border-radius: 16px;
  padding: 10px 12px 9px;
  cursor: pointer;
  font: 600 14px/1.2 Outfit, sans-serif;
}
.pick small { display: block; margin-top: 4px; font-weight: 400; color: #8b93a3; font-size: 11px; line-height: 1.3; overflow-wrap: normal; word-break: normal; hyphens: none; }
.pick .pick-ico { font-size: 20px; display: block; margin-bottom: 8px; }
.pick.on {
  background: #fbf7f0;
  color: var(--card-ink);
  border-color: transparent;
}
.pick.on small { color: #6e675c; }
.primary-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 15px 20px;
  font: 700 16px Outfit, sans-serif;
  background: var(--cream);
  color: var(--card-ink);
  cursor: pointer;
}
.primary-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.ghost-btn {
  width: 100%;
  border: none;
  background: transparent;
  color: #9aa3b2;
  font: 650 14px Outfit, sans-serif;
  padding: 12px;
  cursor: pointer;
  margin-top: 2px;
}
.ob-fine { text-align: center; margin-top: 12px; font-size: 12px; }
.ob-hint.flash { color: #e0b24d; }

/* ----- Sheets ----- */
.sheet { position: fixed; inset: 0; z-index: 30; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.sheet-panel {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(430px, 100%);
  background: var(--card);
  color: var(--card-ink);
  border-radius: 24px 24px 0 0;
  display: flex; flex-direction: column;
  padding-bottom: var(--safe-bot);
  animation: rise 280ms ease;
}
@keyframes rise { from { transform: translateX(-50%) translateY(28px); opacity: 0.5; } }
.sheet-handle {
  width: 40px; height: 4px; border-radius: 99px; background: #d4cdc0;
  margin: 10px auto 6px; flex: 0 0 auto;
}
.sheet-scroll { overflow: auto; padding: 6px 22px 16px; }
.sheet-panel h2 {
  font-family: Fraunces, serif;
  font-size: 28px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.sheet-cta { width: calc(100% - 44px); margin: 0 22px 16px; }
.settings-panel { max-height: 88dvh; }
.settings-panel .pick-grid { margin-top: 16px; }

/* Chat thread */
.thread-panel { height: min(86dvh, 740px); }
.thread-head { padding: 0 22px 10px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.thread-kicker {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700; color: #145c38; margin-bottom: 4px;
}
.thread-head h2 {
  font-size: 18px; line-height: 1.3; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.thread-source { font-size: 12px; color: #145c38; font-weight: 600; word-break: break-all; }
.thread-log {
  flex: 1;
  overflow: auto;
  padding: 14px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f3eee4;
}
.bubble {
  max-width: 86%;
  border-radius: 18px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
}
.bubble.sample {
  align-self: flex-start;
  background: #fff;
  color: var(--card-ink);
  border-bottom-left-radius: 6px;
}
.bubble.you {
  align-self: flex-end;
  background: #145c38;
  color: #f3faf6;
  border-bottom-right-radius: 6px;
}
.bubble .who {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; margin-bottom: 4px;
}
.bubble.you .who { color: #b7ebcd; }
.sample-tag {
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #efe4c4;
  color: #6a5410;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 700;
}
.bubble time { display: block; margin-top: 5px; font-size: 10px; color: #8a8378; }
.bubble.you time { color: #c9e6d6; }
.empty-thread { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 8px; }

.composer {
  flex: 0 0 auto;
  padding: 8px 14px 10px;
  border-top: 1px solid var(--line);
  background: var(--card);
}
.quick-row { margin-bottom: 8px; min-height: 34px; }
.saved-chip, .saved-editor button, .send-btn {
  border: none; cursor: pointer; font: 650 13px Outfit, sans-serif;
}
.saved-chip {
  background: #f3e6b8;
  color: #5c4a0c;
  border-radius: 999px;
  padding: 7px 12px;
}
.saved-editor {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f3e6b8; color: #5c4a0c;
  border-radius: 999px; padding: 4px 6px 4px 12px;
  font-size: 13px; font-weight: 650;
}
.saved-editor input {
  width: 72px; border: none; background: #fff; border-radius: 999px;
  padding: 6px 8px; font: inherit; color: var(--card-ink);
}
.saved-editor button, .send-btn {
  background: var(--card-ink); color: var(--cream);
  border-radius: 999px; padding: 7px 12px;
}
.composer-row { display: flex; gap: 8px; }
.composer-row input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 14px;
  font: 15px Outfit, sans-serif;
  background: #fff;
}

/* ZIP + privacy + personalize */
.zip-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #c9cfd8;
}
.zip-field.light { color: #3d3a35; margin-top: 16px; }
.zip-field input {
  border: 1px solid rgba(247, 242, 232, 0.16);
  background: var(--bg-2);
  color: var(--cream);
  border-radius: 14px;
  padding: 13px 14px;
  font: 600 20px/1 Outfit, sans-serif;
  letter-spacing: 0.12em;
  width: 100%;
}
.zip-field.light input {
  background: #fff;
  color: var(--card-ink);
  border: 1px solid var(--line);
  letter-spacing: 0.08em;
}
.ob-hint, .privacy-note, .ob-sub { font-size: 12px; line-height: 1.45; }
.ob-hint { color: #8b93a3; margin-bottom: 18px; }
.ob-sub {
  color: #c9cfd8;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 10px;
}
.privacy-note {
  color: #8b93a3;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(247, 242, 232, 0.08);
}
.privacy-note.ink {
  background: #efeae0;
  border-color: transparent;
  color: #5c574e;
}
.text-link {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--card-ink);
  border-radius: 14px;
  padding: 12px 14px;
  font: 650 14px Outfit, sans-serif;
  cursor: pointer;
  text-align: left;
}
.why-line {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}
.why-line strong { color: #3d3a35; font-weight: 650; }

/* Profile question cards */
.card.profile .card-art { height: 28%; min-height: 120px; }
.q-prompt {
  font-family: Fraunces, Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 8px 0 14px;
  flex: 1;
}
.q-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.q-opt {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--card-ink);
  border-radius: 14px;
  padding: 12px 14px;
  font: 600 15px Outfit, sans-serif;
  text-align: left;
  cursor: pointer;
}
.q-opt:active { background: #efeae0; }
.q-skip {
  border: none;
  background: transparent;
  color: var(--muted);
  font: 600 13px Outfit, sans-serif;
  padding: 8px;
  cursor: pointer;
}
.pers-block { margin: 0 0 18px; }
.pers-block h3 {
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 8px;
}
.pers-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pers-opts button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--card-ink);
  border-radius: 999px;
  padding: 8px 12px;
  font: 600 13px Outfit, sans-serif;
  cursor: pointer;
}
.pers-opts button.on {
  background: #145c38;
  color: #f3faf6;
  border-color: transparent;
}
.sheet-panel .pick {
  background: #fff;
  color: var(--card-ink);
  border-color: var(--line);
}
.sheet-panel .pick.on {
  background: #145c38;
  color: #f3faf6;
}
.sheet-panel .pick.on small { color: #c9e6d6; }
.zip-field input.invalid { border-color: #ff4b5a !important; }


/* ----- Points meter & badge (placeholder tier names, TBD) ----- */
.points-meter {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 6px;
  row-gap: 3px;
  min-width: 108px;
  max-width: 148px;
  border: 1px solid rgba(247, 242, 232, 0.12);
  background: rgba(255,255,255,0.04);
  color: var(--cream);
  border-radius: 14px;
  padding: 5px 8px 6px;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.points-badge {
  grid-row: 1 / span 2;
  align-self: center;
  width: 22px; height: 22px;
  color: #e0b24d;
  display: grid; place-items: center;
}
.points-badge svg { display: block; }
.points-copy {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.points-tier {
  font: 650 10px/1 Outfit, sans-serif;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.points-val {
  font: 700 10px/1 Outfit, sans-serif;
  color: #e0b24d;
  font-variant-numeric: tabular-nums;
}
.points-bar {
  grid-column: 2;
  display: block;
  height: 3px;
  border-radius: 99px;
  background: rgba(247,242,232,0.12);
  overflow: hidden;
}
.points-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #e0b24d, #25d07d);
  border-radius: inherit;
  transition: width 400ms ease;
}
.points-meter.pop { animation: points-pop 500ms ease; }
@keyframes points-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.points-toast {
  position: absolute;
  right: 50px;
  top: -6px;
  background: #e0b24d;
  color: #2a2108;
  font: 700 11px Outfit, sans-serif;
  border-radius: 999px;
  padding: 3px 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
}
.points-toast.show {
  opacity: 1;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.points-tiers {
  list-style: none;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.points-tiers li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.points-tiers li.earned { color: var(--card-ink); }
.points-tiers li.current {
  background: #145c38;
  color: #f3faf6;
  border-color: transparent;
}
.tier-ico { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; color: inherit; }
.tier-ico svg { display: block; }
.q-points {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}
.points-panel { max-height: 80dvh; }

/* ----- Glossary terms & Explain it simply ----- */
.term {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline dotted;
  text-decoration-color: rgba(22, 19, 15, 0.4);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.term:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}
.explain-link {
  align-self: flex-start;
  margin-top: 8px;
  border: none;
  background: none;
  padding: 0;
  font: 650 12px/1.3 Outfit, sans-serif;
  color: #8a6a1e;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  -webkit-tap-highlight-color: transparent;
}
.explain-panel { max-height: 86dvh; }
.explain-panel .sheet-scroll { padding-bottom: 8px; }
.explain-tip {
  font-family: Fraunces, Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.explain-panel h2 {
  font-size: 15px;
  font-family: Outfit, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a6a1e;
  margin: 0 0 8px;
}
.explain-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--card-ink);
  margin-bottom: 16px;
}
.explain-body p + p { margin-top: 10px; }
.term-pop {
  position: fixed;
  z-index: 60;
  max-width: 260px;
  background: #16130f;
  color: var(--cream);
  border-radius: 12px;
  padding: 10px 12px 11px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}
.term-pop-word {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.term-pop-def {
  font-size: 13px;
  line-height: 1.4;
  color: #f7f2e8;
}
