/* ============================================
   eResonate — Virtual Green Room demo
   ============================================ */

.nav-links a.active { color: var(--text); }

/* Demo notice bar (matches live.css) */
.demo-bar {
  margin-top: var(--nav-h);
  background: rgba(62, 224, 140, 0.08);
  border-bottom: 1px solid rgba(62, 224, 140, 0.25);
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  text-align: center;
}
.demo-pill {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--money);
  border: 1px solid rgba(62, 224, 140, 0.4);
  border-radius: 20px;
  padding: 0.15rem 0.7rem;
  white-space: nowrap;
}

/* ============================================ PASS GATE */
.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, rgba(168, 85, 247, 0.2), transparent 65%),
    rgba(4, 8, 18, 0.94);
  backdrop-filter: blur(10px);
  transition: opacity 0.6s ease;
}
.gate.closed { opacity: 0; pointer-events: none; }
.ticket {
  width: min(420px, 100%);
  background: linear-gradient(160deg, #101832, var(--bg-card) 60%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 0 80px rgba(168, 85, 247, 0.25), 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: ticketIn 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.2);
  position: relative;
  overflow: hidden;
}
@keyframes ticketIn {
  from { transform: translateY(40px) rotate(-2deg) scale(0.92); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.ticket::after { /* shine sweep */
  content: '';
  position: absolute;
  top: -60%; left: -80%;
  width: 50%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  transform: rotate(18deg);
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine {
  0%, 60% { left: -80%; }
  100% { left: 140%; }
}
.ticket-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.ticket-logo { height: 34px; }
.ticket-brand { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--logo-green); }
.ticket-brand span { color: var(--logo-blue); }
.ticket-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.6rem;
}
.ticket-artist { font-family: 'Outfit', sans-serif; font-size: 1.9rem; font-weight: 800; line-height: 1.15; }
.ticket-venue { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.3rem; }
.ticket-perf {
  margin: 1.4rem -2rem;
  border-top: 2px dashed rgba(255, 255, 255, 0.15);
  position: relative;
}
.ticket-perf::before, .ticket-perf::after {
  content: '';
  position: absolute;
  top: -11px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #070B18;
}
.ticket-perf::before { left: -11px; }
.ticket-perf::after { right: -11px; }
.ticket-price { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.ticket-price strong { color: var(--money); font-size: 1.1rem; }
.ticket-btn { width: 100%; justify-content: center; }
.ticket-note { font-size: 0.72rem; color: var(--text-dim); margin-top: 1rem; }

/* ============================================ ROOM */
.room-wrap { position: relative; padding-bottom: 5rem; }
.room-bg {
  position: absolute;
  inset: 0;
  background: url('images/greenroom-bg.jpg') center top / cover no-repeat fixed;
}
.room-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 24, 0.88) 0%, rgba(7, 11, 24, 0.82) 40%, rgba(7, 11, 24, 0.96) 100%),
    radial-gradient(ellipse 70% 45% at 60% 0%, rgba(168, 85, 247, 0.18), transparent 65%);
}
.room { position: relative; z-index: 1; padding-top: 2rem; }

.room-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.rh-left { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.room-head h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  font-weight: 800;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 16px var(--accent-glow);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}
.occupancy {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.occupancy span { color: var(--money); }

/* ============================================ EXPLORABLE ROOM */
.explore { margin-bottom: 1.75rem; perspective: 1000px; }
.explore-stage {
  position: relative;
  aspect-ratio: 16 / 7.5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-accent);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 70px rgba(168, 85, 247, 0.12);
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
  will-change: transform;
}
.explore-bg {
  position: absolute;
  inset: -10%;
  background: url('images/greenroom-bg.jpg') center 35% / cover no-repeat;
  filter: brightness(0.82) saturate(1.05);
  transition: transform 0.12s ease-out;
  will-change: transform;
  transform: scale(1.08);
}
.explore-haze {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(168, 85, 247, 0.16), transparent 65%),
    linear-gradient(0deg, rgba(7, 11, 24, 0.55), transparent 45%);
}
.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
}
.hs-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 18px var(--accent-glow);
  position: relative;
}
.hs-dot::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px solid rgba(168, 85, 247, 0.55);
  animation: hsPulse 2s ease-out infinite;
}
@keyframes hsPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}
.hs-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text);
  background: rgba(7, 11, 24, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.28rem 0.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.hotspot:hover .hs-label {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}
.explore-hint {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.6rem;
}
/* Flash highlight when a hotspot jumps to a panel */
.flash {
  animation: flashGlow 1.8s ease;
}
@keyframes flashGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(168, 85, 247, 0); }
  25% { box-shadow: 0 0 0 3px var(--accent), 0 0 60px rgba(168, 85, 247, 0.5); }
}

.room-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

/* Artist cam */
.artist-cam {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-accent);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(168, 85, 247, 0.12);
  background: #050A14;
}
.artist-cam video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cam-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.on-air {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--money);
  box-shadow: 0 0 10px var(--money);
  animation: livePulse 1.4s ease-in-out infinite;
}
.cam-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 2rem 1.1rem 0.9rem;
  background: linear-gradient(to top, rgba(3, 5, 12, 0.92) 30%, transparent);
}
.cam-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
}
.cam-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.95rem; }
.cam-sub { font-size: 0.75rem; color: var(--money); }

/* Fan strip */
.fan-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0.2rem;
  flex-wrap: wrap;
}
.fan-avatars { display: flex; }
.fan-av {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(168, 85, 247, 0.5);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  margin-right: -9px;
  animation: popIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
@keyframes popIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
.fan-count { font-size: 0.8rem; color: var(--text-muted); }
.fan-count span { color: var(--accent); font-weight: 700; }

/* Panels shared */
.qa-panel, .bs-chat, .merch-panel, .session-rev {
  background: rgba(13, 20, 40, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 1.2rem 0.6rem;
  flex-wrap: wrap;
}
.panel-head h2 { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700; }
.panel-hint { font-size: 0.68rem; color: var(--text-dim); }

/* Q&A */
.qa-panel { margin-top: 0.5rem; }
.qa-list { padding: 0.4rem 0.9rem; }
.qa-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  animation: msgIn 0.25s ease;
}
.qa-item:last-child { border-bottom: none; }
.qa-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
  flex-shrink: 0;
}
.qa-vote:hover { border-color: var(--border-accent); transform: translateY(-1px); }
.qa-vote.voted { border-color: var(--accent); color: var(--accent); }
.qa-q { flex: 1; line-height: 1.4; }
.qa-user { color: var(--text-dim); font-size: 0.72rem; margin-right: 0.4rem; }
.qa-item.answering {
  background: rgba(62, 224, 140, 0.07);
  border-radius: 10px;
  border-bottom-color: transparent;
}
.qa-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #06140D;
  background: var(--money);
  border-radius: 4px;
  padding: 0.12rem 0.4rem;
  flex-shrink: 0;
}
.qa-item.yours .qa-user { color: var(--accent); font-weight: 700; }
.qa-input {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem;
  border-top: 1px solid var(--border);
}
.qa-input input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  color: var(--text);
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  min-width: 0;
}
.qa-input input:focus { border-color: var(--accent); }
.qa-send { padding: 0.6rem 1rem; font-size: 0.78rem; white-space: nowrap; }

/* Backstage chat */
.bs-chat { display: flex; flex-direction: column; height: 360px; overflow: hidden; }
.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}
.chat-count { font-size: 0.68rem; color: var(--money); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.chat-feed {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
.chat-msg { font-size: 0.82rem; line-height: 1.45; animation: msgIn 0.25s ease; word-wrap: break-word; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-user { font-weight: 700; margin-right: 0.35rem; }
.chat-msg.artist {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
}
.chat-msg.artist .chat-user { color: var(--accent2); }
.chat-msg.you .chat-user { color: var(--accent); }
.chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem;
  border-top: 1px solid var(--border);
}
.chat-input-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  color: var(--text);
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  min-width: 0;
}
.chat-input-row input:focus { border-color: var(--accent); }
.chat-send { padding: 0.6rem 1.1rem; font-size: 0.82rem; }

/* Merch */
.merch-panel { margin-top: 1.25rem; }
.merch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem 1.2rem;
  border-top: 1px solid var(--border);
}
.mi-name { font-size: 0.85rem; font-weight: 600; }
.mi-stock { font-size: 0.7rem; color: var(--text-dim); }
.mi-stock .mi-left { color: var(--money); font-weight: 700; }
.mi-stock.low .mi-left { color: #FF7A5C; }
.mi-buy {
  background: rgba(62, 224, 140, 0.12);
  border: 1px solid rgba(62, 224, 140, 0.4);
  color: var(--money);
  font-weight: 700;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.mi-buy:hover { background: rgba(62, 224, 140, 0.22); }
.mi-buy.bought {
  background: var(--money);
  color: #06140D;
  pointer-events: none;
}
.mi-buy.soldout {
  background: transparent;
  border-color: var(--border);
  color: var(--text-dim);
  pointer-events: none;
}
.merch-note {
  font-size: 0.7rem;
  color: var(--text-dim);
  padding: 0.7rem 1.2rem 1rem;
}

/* Session revenue */
.session-rev {
  margin-top: 1.25rem;
  padding: 1.25rem 1.3rem;
  border-color: rgba(62, 224, 140, 0.3);
  background: linear-gradient(160deg, rgba(62, 224, 140, 0.08), rgba(13, 20, 40, 0.85) 60%);
}
.sr-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.sr-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--money);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.sr-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.3rem; }

/* Toasts */
.toast-stack {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: rgba(10, 16, 34, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(62, 224, 140, 0.35);
  border-radius: 10px;
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
  animation: toastIn 0.3s ease, toastOut 0.4s ease 3.2s forwards;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px); }
}

/* CTA */
.room-cta {
  margin-top: 4rem;
  text-align: center;
  padding: 3.5rem 2rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(13, 20, 40, 0.8) 70%);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
}
.room-cta h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.room-cta p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
}
.room-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1024px) {
  .room-grid { grid-template-columns: 1fr; }
  .room-bg { background-attachment: scroll; }
}
@media (max-width: 560px) {
  .qa-input { flex-direction: column; }
  .qa-send { width: 100%; justify-content: center; }
}

@media (max-width: 700px) {
  .explore-stage { aspect-ratio: 16 / 10; }
  .hs-label { font-size: 0.62rem; padding: 0.2rem 0.55rem; }
}

/* ============================================ ROAMING AVATARS (explore stage) */
.av-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.roam {
  position: absolute;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid rgba(168, 85, 247, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.58rem;
  color: var(--text);
  cursor: pointer;
  pointer-events: auto;
  transition: left 3s ease-in-out, top 3s ease-in-out;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}
.roam::after { /* ground shadow */
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  filter: blur(2px);
}
.roam .rv-inner { animation: avBob 2.6s ease-in-out infinite; }
@keyframes avBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.roam.band {
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: #fff;
  font-size: 0.7rem;
  box-shadow: 0 0 22px var(--accent-glow), 0 8px 16px rgba(0, 0, 0, 0.5);
}
.roam.greet { animation: avGreet 0.9s ease; }
@keyframes avGreet {
  0%, 100% { margin-top: -15px; }
  30% { margin-top: -24px; }
  55% { margin-top: -15px; }
  75% { margin-top: -20px; }
}
.roam.band.greet { animation: avGreetBand 0.9s ease; }
@keyframes avGreetBand {
  0%, 100% { margin-top: -20px; }
  30% { margin-top: -30px; }
  55% { margin-top: -20px; }
  75% { margin-top: -26px; }
}
.av-bubble {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  background: rgba(7, 11, 24, 0.9);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 3px;
  padding: 0.15rem 0.45rem;
  white-space: nowrap;
  animation: bubblePop 2.2s cubic-bezier(0.2, 0.9, 0.3, 1.3) forwards;
  pointer-events: none;
}
@keyframes bubblePop {
  0% { transform: translateX(-50%) scale(0); opacity: 0; }
  12% { transform: translateX(-50%) scale(1.1); opacity: 1; }
  20% { transform: translateX(-50%) scale(1); }
  80% { opacity: 1; }
  100% { transform: translateX(-50%) translateY(-6px) scale(0.95); opacity: 0; }
}
.selfie-flash {
  position: absolute;
  width: 90px; height: 90px;
  margin: -45px 0 0 -45px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 70%);
  animation: flashPop 0.5s ease-out forwards;
  pointer-events: none;
}
@keyframes flashPop {
  from { opacity: 1; transform: scale(0.4); }
  to { opacity: 0; transform: scale(1.3); }
}

/* ============================================ HUMAN AVATARS (overrides circle roamers) */
.roam {
  width: 34px;
  height: 58px;
  margin: -54px 0 0 -17px;
  border-radius: 0;
  background: none;
  border: none;
  box-shadow: none;
  display: block;
}
.roam::after { /* feet shadow */
  bottom: -3px;
  width: 60%;
  height: 5px;
}
.rv-inner {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: bottom center;
}
.rv-inner svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: avBob 2.6s ease-in-out infinite;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45));
}
.roam.flip .rv-inner svg { transform: scaleX(-1); }
.roam.band {
  width: 42px;
  height: 70px;
  margin: -66px 0 0 -21px;
  background: none;
  border: none;
  box-shadow: none;
}
.roam.band .rv-inner svg {
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.65)) drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5));
}
.roam.band::before {
  content: 'MT';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Outfit', sans-serif;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  padding: 0.1rem 0.4rem;
  box-shadow: 0 0 12px var(--accent-glow);
}
/* Greet bounce now lives on the inner wrapper (figures, not margins) */
.roam.greet, .roam.band.greet { animation: none; }
.roam.greet .rv-inner { animation: avGreetV2 0.9s ease; }
@keyframes avGreetV2 {
  0%, 100% { translate: 0 0; }
  30% { translate: 0 -12px; }
  55% { translate: 0 0; }
  75% { translate: 0 -6px; }
}
/* Walk cycle — legs scissor, arms counter-swing */
.roam .leg, .roam .arm { transform-box: view-box; }
.roam .leg-l { transform-origin: 16.4px 42px; }
.roam .leg-r { transform-origin: 23.6px 42px; }
.roam .arm-l { transform-origin: 10.5px 27px; }
.roam .arm-r { transform-origin: 29.5px 27px; }
.roam.walking .leg-l { animation: stepA 0.55s ease-in-out infinite; }
.roam.walking .leg-r { animation: stepB 0.55s ease-in-out infinite; }
.roam.walking .arm-l { animation: stepB 0.55s ease-in-out infinite; }
.roam.walking .arm-r { animation: stepA 0.55s ease-in-out infinite; }
@keyframes stepA {
  0%, 100% { transform: rotate(14deg); }
  50% { transform: rotate(-14deg); }
}
@keyframes stepB {
  0%, 100% { transform: rotate(-14deg); }
  50% { transform: rotate(14deg); }
}
.av-bubble { bottom: 105%; }

/* ============================================ RENDER-MATCHED AVATARS v3 */
.roam { width: 30px; height: 70px; margin: -68px 0 0 -15px; }
.roam.band { width: 36px; height: 84px; margin: -82px 0 0 -18px; }
.roam.band::before { content: none; }
.rv-name {
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(38, 38, 46, 0.92);
  border-radius: 8px;
  padding: 0.1rem 0.42rem;
  white-space: nowrap;
  pointer-events: none;
}
.roam.band .rv-name {
  border: 1px solid rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.35);
}
/* Walk-cycle origins for the new geometry (hips y=53, shoulders y=31) */
.roam .leg-l { transform-origin: 18.7px 53px; }
.roam .leg-r { transform-origin: 25.3px 53px; }
.roam .arm-l { transform-origin: 12.9px 31px; }
.roam .arm-r { transform-origin: 31.1px 31px; }
.roam.walking .leg-l, .roam.walking .leg-r,
.roam.walking .arm-l, .roam.walking .arm-r { animation-duration: 0.6s; }
.av-bubble { bottom: calc(100% + 16px); }
