/* Screen 3: Venue Detail */

.venue-scroll {
  position: absolute;
  top: 0; left: 0; right: 0;
  bottom: var(--nav-h);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.venue-scroll::-webkit-scrollbar { display: none; }

/* ---------- Top bar: back + save float over the hero, turn solid on scroll ---------- */
.vd-topbar {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 4;
  padding-top: calc(env(safe-area-inset-top, 0px) + var(--status-h) + 8px);
  padding-bottom: 10px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}
.vd-topbar.solid {
  background: rgba(5, 4, 7, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.vd-topbar-title {
  flex: 1; min-width: 0;
  text-align: center;
  font-weight: 800; font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.25s;
}
.vd-topbar.solid .vd-topbar-title { opacity: 1; }
.vd-round {
  flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(8, 6, 14, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.vd-round svg { width: 19px; height: 19px; }
.vd-save.on { color: var(--accent-light); border-color: rgba(185, 139, 255, 0.5); }
.vd-save.on svg path { fill: currentColor; }

/* ---------- Hero ---------- */
.vd-hero {
  position: relative;
  height: calc(var(--status-h) + env(safe-area-inset-top, 0px) + 380px);
  overflow: hidden;
  background: #0d0a14;
  isolation: isolate;
}
.vd-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.vd-hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(5, 4, 7, 0.55), transparent 28%, transparent 50%, var(--bg) 98%);
}
.vd-hero-text {
  position: absolute; left: 0; right: 0; bottom: 6px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; gap: 6px;
}
.vd-eyebrow {
  margin: 0;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-light);
}
.vd-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px; font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.vd-place { margin: 0; display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; color: #d9d5e3; }
.vd-place svg { width: 15px; height: 15px; color: var(--accent-light); }

/* ---------- Body ---------- */
.vd-body {
  display: flex; flex-direction: column; gap: 14px;
  padding-top: 14px;
  padding-bottom: 110px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.vd-label {
  margin: 0;
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-light);
}
.vd-label.muted { color: var(--muted); }
.vd-label svg { width: 14px; height: 14px; }
.vd-card {
  padding: 16px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.vd-section-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.vd-section-head h2 { margin: 0; font-size: 17px; font-weight: 800; }

/* ---------- Live status ---------- */
.vd-live {
  padding: 18px 18px 14px;
  border-radius: 24px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(157, 92, 255, 0.26), transparent 60%),
    var(--surface);
  border: 1px solid rgba(185, 139, 255, 0.4);
  box-shadow: 0 0 30px rgba(157, 92, 255, 0.18);
  display: flex; flex-direction: column; gap: 16px;
}
.vd-live-main { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.vd-live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(157, 92, 255, 0.2);
  border: 1px solid rgba(185, 139, 255, 0.5);
  font-size: 11px; font-weight: 800; letter-spacing: 0.18em;
}
.vd-live-pill i, .vd-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 10px var(--accent);
  animation: blink 1.6s ease-in-out infinite;
}
.vd-energy {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 24px; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.vd-active { margin: 0; font-size: 15px; color: #d9d5e3; font-weight: 600; }
.vd-active b { font-size: 17px; color: var(--fg); font-variant-numeric: tabular-nums; }
.vd-trend { margin: 2px 0 0; display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); font-weight: 600; }
.vd-trend svg { flex: none; width: 16px; height: 16px; color: var(--accent-light); }
.vd-trend b { color: var(--accent-light); font-weight: 800; }

.vd-chart { display: flex; align-items: flex-end; gap: 6px; height: 74px; }
.vd-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; }
.vd-bar i {
  display: block; width: 100%;
  border-radius: 6px 6px 3px 3px;
  background: rgba(157, 92, 255, 0.4);
}
.vd-bar.now i { background: linear-gradient(to top, var(--accent), #d2b6ff); box-shadow: 0 0 14px var(--accent); }
.vd-bar.later i { background: transparent; border: 1px dashed rgba(185, 139, 255, 0.45); }
.vd-bar em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.vd-bar.now em { color: var(--fg); }

/* ---------- Vibe Match ---------- */
.vd-match {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 18px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.vd-match-ring {
  flex: none;
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(closest-side, var(--surface) 80%, transparent 82%),
    conic-gradient(from -90deg, #d2b6ff, var(--accent) calc(var(--p) * 1%), #2a2440 0);
  box-shadow: 0 0 26px rgba(157, 92, 255, 0.35);
}
.vd-match-ring b { font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.vd-match-ring small { font-size: 13px; margin-left: 1px; }
.vd-match-text { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.vd-match-note { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.3; }
.vd-match-source { margin: 0; font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- Quick info chips ---------- */
.vd-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vd-chip {
  min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.vd-chip.wide { grid-column: span 2; }
.vd-chip span { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.vd-chip b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- I'm Going ---------- */
.vd-primary { display: grid; }
.vd-primary .vd-going-slot { display: grid; }
.vd-primary .btn { min-height: 56px; font-size: 16px; border-radius: 18px; }

/* ---------- People Here Tonight ---------- */
.vd-people-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vd-faces { display: flex; }
.vd-faces span {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  border: 2px solid var(--surface);
  margin-left: -10px;
}
.vd-faces span:first-child { margin-left: 0; }
.vd-faces span.more { background: #241f33; color: var(--accent-light); font-size: 11px; width: auto; min-width: 36px; padding: 0 8px; border-radius: 18px; }
.vd-people-count { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.vd-people-count b { color: var(--fg); font-size: 16px; }
.vd-people-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line);
}
.vd-people-foot p { margin: 0; font-size: 14px; color: #d9d5e3; }
.vd-people-foot b { color: var(--accent-light); }
.vd-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; color: var(--accent-light); white-space: nowrap; }
.vd-link svg { width: 14px; height: 14px; }

/* ---------- Live from the venue ---------- */
.vd-moments .vd-section-head { margin-bottom: 10px; }
.vd-moment-row {
  display: flex; gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  padding-inline: max(16px, env(safe-area-inset-left, 0px));
  scroll-padding-inline: 16px;
  scrollbar-width: none;
}
.vd-moment-row::-webkit-scrollbar { display: none; }
.vd-moment {
  position: relative;
  flex: none;
  width: 118px; height: 176px;
  border-radius: 18px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #0d0a14;
  border: 1px solid var(--line);
}
.vd-moment video, .vd-moment img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vd-moment.mine { border-color: rgba(185, 139, 255, 0.6); box-shadow: 0 0 16px rgba(157, 92, 255, 0.35); }
.vd-moment::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), transparent 30%, transparent 60%, rgba(0,0,0,0.75));
}
.vd-moment-time, .vd-moment-label, .vd-moment-play { position: absolute; z-index: 1; }
.vd-moment-time {
  top: 8px; left: 8px;
  padding: 3px 7px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  font-size: 10px; font-weight: 800;
}
.vd-moment-play {
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.vd-moment-play svg { width: 14px; height: 14px; }
.vd-moment-label { left: 10px; right: 10px; bottom: 9px; font-size: 12px; font-weight: 800; text-align: left; }

/* ---------- Tonight (event) ---------- */
.vd-event {
  background: linear-gradient(150deg, rgba(157, 92, 255, 0.16), var(--surface) 55%);
  border-color: rgba(185, 139, 255, 0.28);
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.vd-event-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px; font-weight: 800;
  text-transform: uppercase;
}
.vd-event-meta { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vd-event-meta li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #d9d5e3; }
.vd-event-meta svg { width: 16px; height: 16px; color: var(--accent-light); }
.vd-interested-slot { display: grid; }
.vd-interested {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid var(--accent);
  color: var(--accent-light);
  font-size: 14px; font-weight: 800;
  transition: background 0.2s, box-shadow 0.2s;
}
.vd-interested svg { width: 15px; height: 15px; }
.vd-interested.on { background: var(--accent-soft); color: var(--fg); box-shadow: 0 0 16px rgba(157, 92, 255, 0.3); }

/* ---------- Reward preview ---------- */
.vd-reward {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(255, 181, 71, 0.22);
}
.vd-reward-icon {
  flex: none;
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(255, 181, 71, 0.12);
  color: var(--amber);
}
.vd-reward-icon svg { width: 24px; height: 24px; }
.vd-reward .vd-label { color: var(--amber); }
.vd-reward-text { margin: 4px 0 0; font-size: 14px; color: #d9d5e3; }
.vd-reward-text b { color: var(--fg); }

/* ---------- Sponsored offer (deliberately quiet) ---------- */
.vd-offer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px dashed #3a3350;
}
.vd-offer-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vd-offer-title { margin: 2px 0 0; font-size: 15px; font-weight: 800; }
.vd-offer-sponsor { margin: 0; font-size: 12px; color: var(--muted); }
.vd-offer-btn {
  flex: none;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px; font-weight: 800;
}

/* ---------- Venue information ---------- */
.vd-info ul { list-style: none; margin: 0; padding: 0; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.vd-info li {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.vd-info li:last-child { border-bottom: 0; }
.vd-info-icon { flex: none; color: var(--accent-light); display: grid; }
.vd-info-icon svg { width: 18px; height: 18px; }
.vd-info-label { flex: 1; font-size: 14px; color: var(--muted); font-weight: 600; }
.vd-info-value { text-align: right; font-size: 14px; font-weight: 800; display: flex; flex-direction: column; align-items: flex-end; }
.vd-info-value small { font-size: 11px; color: var(--muted); font-weight: 600; }

/* ---------- Sticky I'm Going (appears after the main button scrolls away) ---------- */
.vd-sticky {
  position: absolute; left: 0; right: 0;
  bottom: var(--nav-h);
  z-index: 4;
  padding-block: 10px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(8, 6, 12, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s, opacity 0.25s;
}
.vd-sticky.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.vd-sticky-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vd-sticky-text b { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-sticky-text span { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-sticky .vd-going-slot { flex: none; display: grid; }
.btn-compact { min-height: 44px; padding: 0 16px; font-size: 14px; border-radius: 14px; }

/* ---------- Offer sheet ---------- */
.offer-sheet { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.offer-title { margin: 4px 0 0; font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1.2; padding-right: 40px; }
.offer-sponsor { margin: 0; font-size: 13px; color: var(--muted); }
.offer-details { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.offer-details li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.offer-details svg { width: 16px; height: 16px; color: var(--accent-light); }
.offer-note { margin: 0 0 8px; font-size: 12px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .vd-live-pill i, .vd-live-dot { animation: none; }
  .vd-sticky, .vd-topbar, .vd-topbar-title { transition: none; }
}

/* the reward card opens Rewards */
.vd-reward-link { width: 100%; text-align: left; }
.vd-reward-link > div { flex: 1; min-width: 0; }
.vd-reward-chevron { flex: none; display: grid; color: var(--muted); }
.vd-reward-chevron svg { width: 16px; height: 16px; }

/* Bottle Pool card (Screen 9 data) */
.vd-pool { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border-color: rgba(185, 139, 255, 0.3); }
.vd-pool-top { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.vd-pool-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: var(--accent-light); }
.vd-pool-tag svg { width: 13px; height: 13px; }
.vd-pool-title { margin: 0; font-size: 17px; font-weight: 800; }
.vd-pool .rw-progress { width: 100%; }
.vd-pool-meta { margin: 0 0 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.vd-pool-meta b { color: var(--fg); }

/* People Here Tonight row is a button: opens who you know there */
button.vd-people-row { width: 100%; text-align: left; border-radius: 14px; }
button.vd-people-row:active { background: rgba(157, 92, 255, 0.08); }
.vd-people-count svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--muted); }
button.vd-people-row .vd-faces { min-width: 0; overflow: hidden; }
button.vd-people-row .vd-people-count { flex: none; white-space: nowrap; }
