/* ── Overlay ── */
#vh-welcome-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: transparent;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}
#vh-welcome-overlay.vh-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
#vh-welcome-overlay.vh-closing {
  visibility: visible;
  opacity: 0;
  pointer-events: none;
}

/* ── Card ── */
#vh-welcome-card {
  background: transparent;
  border-radius: 20px;
  width: 90%;
  max-width: 360px;
  padding-bottom: 24px;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  transform: translateY(28px) scale(.9);
  opacity: 0;
  transition: transform .56s cubic-bezier(.2,.75,.2,1), opacity .44s ease;
}
#vh-welcome-overlay.vh-open #vh-welcome-card {
  transform: translateY(0) scale(1);
  opacity: 1;
  animation: vhCloudIn .85s cubic-bezier(.2,.8,.2,1);
}
#vh-welcome-overlay.vh-closing #vh-welcome-card {
  transform: translateY(-6px) scale(.86);
  opacity: 0;
  filter: blur(5px);
  animation: vhCloudOut .58s ease-in forwards;
}

#vh-welcome-card::before,
#vh-welcome-card::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
}
#vh-welcome-card::before {
  width: 160px;
  height: 56px;
  left: -18px;
  top: 58%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.85) 0%, rgba(255,255,255,.45) 45%, rgba(255,255,255,0) 100%);
}
#vh-welcome-card::after {
  width: 180px;
  height: 62px;
  right: -26px;
  top: 64%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.82) 0%, rgba(255,255,255,.4) 45%, rgba(255,255,255,0) 100%);
}
#vh-welcome-overlay.vh-open #vh-welcome-card::before,
#vh-welcome-overlay.vh-open #vh-welcome-card::after {
  opacity: 1;
  animation: vhCloudFloat 2.2s ease-in-out infinite;
}
#vh-welcome-overlay.vh-open #vh-welcome-card::after {
  animation-delay: .22s;
}
#vh-welcome-overlay.vh-closing #vh-welcome-card::before,
#vh-welcome-overlay.vh-closing #vh-welcome-card::after {
  animation: vhCloudVapor .45s ease-out forwards;
}

@keyframes vhCloudIn {
  0%   { transform: translateY(68px) scale(.78); opacity: 0; filter: blur(9px); }
  60%  { transform: translateY(-4px) scale(1.02); opacity: 1; filter: blur(0); }
  100% { transform: translateY(0) scale(1); opacity: 1; filter: blur(0); }
}
@keyframes vhCloudOut {
  0%   { transform: translateY(0) scale(1); opacity: 1; filter: blur(0); }
  100% { transform: translateY(-10px) scale(.82); opacity: 0; filter: blur(7px); }
}
@keyframes vhCloudFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-3px) scale(1.03); }
}
@keyframes vhCloudVapor {
  0%   { opacity: .95; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.22); filter: blur(8px); }
}

/* ── Top bar ── */
.vh-popup-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 14px 0;
}
.vh-lang-switcher { display: none; }
.vh-lang-btn {
  background: none;
  border: 2px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  padding: 2px;
  opacity: 0.45;
  transition: opacity .2s, border-color .2s;
}
.vh-lang-btn.active { border-color: #D4AF37; opacity: 1; }
.vh-lang-btn img {
  width: 28px; height: 20px;
  object-fit: cover; display: block; border-radius: 2px;
}
#vh-close-btn {
  background: none; border: none;
  font-size: 20px; cursor: pointer;
  color: #999; line-height: 1; padding: 0 0 0 8px;
}
#vh-close-btn:hover { color: #333; }

/* ── Avatar ── */
.vh-avatar-wrap { padding: 16px 24px 8px; text-align: center; position: relative; }
#vh-avatar {
  width: 100%; max-height: 300px;
  object-fit: contain; display: inline-block;
  border-radius: 12px; transition: box-shadow .3s, filter .2s;
}
#vh-avatar.vh-playing {
  animation: vhPulse 1.6s ease-in-out infinite;
}
@keyframes vhPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(212,175,55,.45); }
  50%      { box-shadow: 0 0 0 14px rgba(212,175,55,0); }
}

/* ── Controls ── */
.vh-controls { text-align: center; margin-top: 12px; }
#vh-play-btn {
  background: #D4AF37; border: none; border-radius: 50%;
  width: 52px; height: 52px; font-size: 20px; cursor: pointer;
  color: #fff; display: inline-flex;
  align-items: center; justify-content: center;
  transition: background .2s;
}
#vh-play-btn:hover { background: #b8962e; }

/* ── FAB ── */
#vh-welcome-fab {
  display: none;
  position: fixed;
  bottom: max(6px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 50%;
  background: rgba(30,58,95,0.09);
  border: 1px solid #d9d4cc;
  color: #1e3a5f;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  align-items: center;
  justify-content: center;
  gap: 0;
}
#vh-welcome-fab.vh-fab-visible { display: flex; }
.vh-fab-ico { width:22px; height:22px; line-height:1; opacity:.95; color:#1e3a5f; stroke:currentColor; }
.vh-fab-txt { display: none; }
