/* Screen 11: Who's Your Vibe?
   Person first, then why you vibe, then shared context and real-world
   paths. The percentage supports the story; it is not the headline. */

.vb-scroll {
  position: absolute;
  top: 0; left: 0; right: 0;
  bottom: var(--nav-h);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.vb-scroll::-webkit-scrollbar { display: none; }
.vb-content {
  display: flex; flex-direction: column; gap: 16px;
  padding-top: 4px;
  padding-bottom: 40px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
[data-vb="how"] { color: var(--accent-light); }

/* ---------- Your DNA (compact) ---------- */
.vb-mine {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1d1530, #120e1c);
  border: 1px solid rgba(185, 139, 255, 0.3);
}
.vb-mine-title { margin: 4px 0 0; font-family: var(--font-display); font-size: 16px; font-weight: 800; text-transform: uppercase; }
.vb-mine ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.vb-mine li { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.vb-mine li b { font-size: 16px; font-weight: 800; color: var(--accent-light); font-variant-numeric: tabular-nums; }
.vb-mine li span { font-size: 10px; color: var(--muted); font-weight: 700; }

/* ---------- Intro ---------- */
.vb-intro { padding: 6px 4px 0; }
.vb-intro-title { margin: 0 0 6px; font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1.2; text-wrap: balance; }
.vb-intro p:last-child { margin: 0; font-size: 14px; color: var(--muted); max-width: 36ch; }

/* ---------- Categories + Surprise ---------- */
.vb-cats {
  display: flex; gap: 8px;
  overflow-x: auto;
  margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  padding-inline: max(16px, env(safe-area-inset-left, 0px));
  scrollbar-width: none;
}
.vb-cats::-webkit-scrollbar { display: none; }
.vb-cats .chip { flex: none; white-space: nowrap; }
.vb-surprise-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 0% 50%, rgba(157, 92, 255, 0.35), transparent 60%),
    var(--surface);
  border: 1px solid rgba(185, 139, 255, 0.45);
  text-align: left;
  transition: box-shadow 0.2s;
}
.vb-surprise-btn:hover { box-shadow: 0 0 22px rgba(157, 92, 255, 0.35); }
.vb-surprise-btn > svg { flex: none; width: 22px; height: 22px; color: var(--accent-light); }
.vb-surprise-btn > span { display: flex; flex-direction: column; gap: 2px; }
.vb-surprise-btn b { font-size: 15px; font-weight: 800; }
.vb-surprise-btn span span { font-size: 12px; color: var(--muted); }

/* ---------- Main recommendation ---------- */
.vb-stage { scroll-margin-top: 90px; }
.vb-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(185, 139, 255, 0.4);
  box-shadow: 0 0 34px rgba(157, 92, 255, 0.18);
  transition: opacity 0.26s, transform 0.26s;
}
.vb-card.leaving { opacity: 0; transform: translateX(-14px) scale(0.98); }
.vb-card.entering { animation: vb-in 0.35s ease; }
.vb-card.revealed { animation: vb-reveal 0.7s ease; }
@keyframes vb-in { from { opacity: 0; transform: translateX(14px); } }
@keyframes vb-reveal {
  0% { opacity: 0; transform: scale(0.96); box-shadow: 0 0 0 rgba(157, 92, 255, 0); }
  50% { opacity: 1; box-shadow: 0 0 60px rgba(157, 92, 255, 0.55); }
}
.vb-card.surprise { border-color: rgba(210, 182, 255, 0.6); }
.vb-photo { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; max-width: 100%; overflow: hidden; background: #0d0a14; text-align: left; }
.vb-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.vb-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent 30%, transparent 55%, rgba(18, 16, 25, 0.96)); pointer-events: none; }
.vb-cat-tag, .vb-surprise-tag, .vb-status { position: absolute; z-index: 1; top: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.vb-cat-tag, .vb-surprise-tag { left: 14px; background: rgba(8, 6, 14, 0.6); border: 1px solid rgba(185, 139, 255, 0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.vb-surprise-tag { background: rgba(157, 92, 255, 0.55); border-color: rgba(210, 182, 255, 0.6); }
.vb-surprise-tag svg, .vb-status svg { width: 13px; height: 13px; }
.vb-status { right: 14px; background: var(--accent); box-shadow: 0 0 14px var(--glow); }
.vb-id { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.vb-name { position: static; }
.vb-city { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #d9d5e3; font-weight: 600; }
.vb-city svg { width: 13px; height: 13px; color: var(--accent-light); }

.vb-card > .vb-match {
  position: relative; right: auto;
  display: flex; align-items: center; gap: 8px;
  width: calc(100% - 32px);
  margin: -2px 16px 0;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(185, 139, 255, 0.45);
  text-align: left;
}
.vb-match b { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.vb-match span { flex: 1; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-light); }
.vb-match svg { width: 16px; height: 16px; color: var(--accent-light); }

.vb-body { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.vb-block { display: flex; flex-direction: column; gap: 8px; }
.vb-surprise-box { padding: 12px 14px; border-radius: 16px; background: rgba(157, 92, 255, 0.12); border: 1px solid rgba(185, 139, 255, 0.35); }
.vb-surprise-box p { margin: 0; font-size: 13px; color: #d9d5e3; }
.vb-surprise-line { font-family: var(--font-display); font-size: 16px !important; font-weight: 800; color: var(--fg) !important; margin-bottom: 4px !important; }
.vb-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.vb-bars li { display: grid; grid-template-columns: 96px 1fr 38px; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: #d9d5e3; }
.vb-bars i { height: 6px; border-radius: 3px; background: #241f33; overflow: hidden; }
.vb-bars i b { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), #d2b6ff); box-shadow: 0 0 10px var(--glow); }
.vb-bars em { font-style: normal; font-weight: 800; color: var(--fg); text-align: right; font-variant-numeric: tabular-nums; }
.vb-crossed-line { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 13px; }
.vb-crossed-line > svg { width: 15px; height: 15px; color: var(--accent-light); }
.vb-crossed-line span { color: var(--muted); font-weight: 600; }
.vb-crossed .cp-note { margin: 0 !important; }
.vb-reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.vb-reasons li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: #d9d5e3; }
.vb-reasons svg { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--accent-light); }
.vb-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.vb-actions .btn { min-height: 48px; font-size: 14px; }

/* Surprise shuffle */
.vb-shuffle {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 40px 20px;
  border-radius: 28px;
  background: radial-gradient(60% 60% at 50% 40%, rgba(157, 92, 255, 0.3), transparent 70%), var(--surface);
  border: 1px solid rgba(185, 139, 255, 0.4);
}
.vb-shuffle img {
  width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-light);
  box-shadow: 0 0 0 8px rgba(157, 92, 255, 0.16), 0 0 40px var(--glow);
  animation: vb-pulse 0.5s ease-in-out infinite alternate;
}
@keyframes vb-pulse { to { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(157, 92, 255, 0.1), 0 0 60px var(--glow); } }
.vb-shuffle p { margin: 0; font-size: 14px; font-weight: 700; color: var(--accent-light); }

/* ---------- DNA comparison ---------- */
.vb-compare-head { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-light); }
.vb-compare ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.vb-compare li { display: grid; grid-template-columns: 36px 1fr 82px 1fr 36px; align-items: center; gap: 6px; font-size: 12px; }
.vb-compare li b { font-weight: 800; font-variant-numeric: tabular-nums; }
.vb-compare li b:last-child { text-align: right; }
.vb-compare em { font-style: normal; text-align: center; color: var(--muted); font-weight: 700; font-size: 11px; }
.vb-twin { height: 5px; border-radius: 3px; background: #241f33; overflow: hidden; display: flex; }
.vb-twin:first-of-type { justify-content: flex-end; }
.vb-twin i { display: block; height: 100%; background: var(--accent-light); border-radius: 3px; }
.vb-twin i.you { background: linear-gradient(270deg, #ff6fb5, var(--accent)); }

/* ---------- More your vibe ---------- */
.vb-mini {
  flex: none; width: 132px;
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 6px;
  padding: 8px 8px 12px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
}
.vb-mini img { width: 100%; height: 120px; border-radius: 14px; object-fit: cover; object-position: center 30%; }
.vb-mini-text { display: flex; align-items: baseline; justify-content: space-between; padding-inline: 4px; }
.vb-mini-text b { font-size: 15px; font-weight: 800; }
.vb-mini-text em { font-style: normal; font-size: 13px; font-weight: 800; color: var(--accent-light); }
.vb-mini-signal { padding-inline: 4px; font-size: 11px; color: var(--muted); font-weight: 700; }

/* ---------- Tonight's vibes ---------- */
.vb-tonight-sub { margin: 4px 0 10px; font-size: 13px; color: var(--muted); }
.vb-tonight ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vb-tonight li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.vb-tonight-person { display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; }
.vb-tonight-person img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(185, 139, 255, 0.4); }
.vb-tonight-person b { font-size: 14px; font-weight: 800; }
.vb-tonight-venue { font-size: 12px; font-weight: 700; color: #d9d5e3; border-bottom: 1px solid rgba(185, 139, 255, 0.4); }
.vb-going { font-size: 11px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.vb-going.same { color: var(--accent-light); }

.vb-privacy { padding: 4px 4px 0; }

/* ---------- Breakdown sheet ---------- */
.vb-breakdown { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 10px; text-align: center; }
.vb-breakdown .iv-pair > :first-child { margin-left: 0; object-fit: cover; }
.vb-breakdown .iv-conn-stats { text-align: left; }
.vb-strongest { margin: 0; font-size: 14px; font-weight: 700; color: var(--accent-light); }
.vb-breakdown .btn { align-self: stretch; }
.vb-how-list { margin: 0 0 6px; padding-left: 18px; font-size: 14px; color: #d9d5e3; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
  .vb-card, .vb-card.entering, .vb-card.revealed, .vb-shuffle img { animation: none; transition: none; }
}
