/* ==========================================================================
   Lyric.Bingo V2 — Live appearance enhancement layer (v1)
   Loaded after beatdesk-v2.css — unmistakable visual polish
   ========================================================================== */

/* ── Ambient animated mesh on all V2 pages ── */
body.lb-v2-active::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 12% 8%, rgba(255, 45, 214, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 88% 12%, rgba(24, 227, 255, 0.22), transparent 52%),
    radial-gradient(ellipse 40% 35% at 50% 95%, rgba(186, 255, 46, 0.12), transparent 50%);
  animation: v2EnhMesh 14s ease-in-out infinite alternate;
}

body.lb-v2-active:has(.v2-venue-stage)::before,
body.lb-v2-active:has(.v2-launch-site)::before,
body.lb-v2-active:has(.v2-auth-premium)::before {
  animation-duration: 10s;
}

@keyframes v2EnhMesh {
  0% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  50% { transform: translate(2%, -1.5%) scale(1.04); opacity: 1; }
  100% { transform: translate(-1.5%, 2%) scale(1.02); opacity: 0.9; }
}

#lb-v2-root {
  position: relative;
  z-index: 1;
}

/* ── Landing: hero glow + animated headline ── */
.lb-v2 .v2-launch-site {
  position: relative;
}

.lb-v2 .v2-launch-site::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  mix-blend-mode: overlay;
}

.lb-v2 .v2-launch-copy h1,
.lb-v2 .v2-auth-story h1 {
  background: linear-gradient(
    105deg,
    #fff 0%,
    #ffb7ec 28%,
    #73f7ff 52%,
    #baff2e 78%,
    #fff 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  animation: v2EnhHeadline 6s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 40px rgba(255, 46, 203, 0.25));
}

@keyframes v2EnhHeadline {
  0% { background-position: 0% center; }
  100% { background-position: 100% center; }
}

.lb-v2 .v2-launch-nav {
  background: rgba(5, 4, 12, 0.72) !important;
  border-bottom-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.lb-v2 .v2-launch-btn:not(.secondary):not(.ghost) {
  box-shadow:
    0 14px 36px rgba(255, 46, 203, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.lb-v2 .v2-browser-mock {
  box-shadow:
    0 40px 110px rgba(0, 0, 0, 0.55),
    0 0 100px rgba(255, 46, 203, 0.22),
    0 0 60px rgba(24, 227, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.lb-v2 .v2-feature-tile:hover,
.lb-v2 .v2-price-card:hover,
.lb-v2 .v2-testimonials article:hover {
  box-shadow:
    0 32px 90px rgba(24, 227, 255, 0.18),
    0 0 0 1px rgba(186, 255, 46, 0.2) !important;
}

.lb-v2 .v2-launch-stats {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35) !important;
}

.lb-v2 .v2-launch-stats strong {
  background: linear-gradient(90deg, #fff, #73f7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Auth: glass card glow ── */
.lb-v2 .v2-auth-glass {
  box-shadow:
    0 42px 110px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(255, 46, 203, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.lb-v2 .v2-auth-glass .v2-launch-btn,
.lb-v2 .v2-auth-glass button[type="submit"] {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #ff2ecb, #714cff 52%, #18e3ff) !important;
  color: #fff !important;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(255, 46, 203, 0.35) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.lb-v2 .v2-auth-glass button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(24, 227, 255, 0.35) !important;
}

/* ── Dashboard / shell: sidebar + cards ── */
.lb-v2 .v2-side {
  border-right-color: rgba(36, 242, 213, 0.18) !important;
  box-shadow: inset -1px 0 0 rgba(255, 46, 203, 0.08), 4px 0 40px rgba(0, 0, 0, 0.25);
}

.lb-v2 .v2-nav .on {
  box-shadow: 0 0 28px rgba(36, 242, 213, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.lb-v2 .v2-hero {
  box-shadow:
    0 30px 80px -52px #000,
    0 0 80px rgba(157, 78, 221, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.lb-v2 .v2-card {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.lb-v2 .v2-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.55) !important;
  box-shadow:
    0 30px 80px -40px #000,
    0 0 40px rgba(157, 78, 221, 0.2) !important;
}

.lb-v2 .v2-btn.primary {
  box-shadow: 0 16px 40px rgba(255, 45, 149, 0.35) !important;
}

.lb-v2 .v2-db-action:hover,
.lb-v2 .v2-db-metric {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lb-v2 .v2-db-metric strong {
  background: linear-gradient(90deg, #fff 40%, #73f7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Venue / TV display: game-show punch ── */
.v2-venue-stage {
  --venue-glow: rgba(255, 45, 214, 0.35);
}

.v2-venue-stage .v2-venue-copy,
.v2-venue-stage .v2-venue-room {
  text-shadow:
    0 0 40px var(--venue-glow),
    0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

.v2-venue-stage .v2-qr-frame img {
  animation: v2EnhQrGlow 2.5s ease-in-out infinite !important;
}

@keyframes v2EnhQrGlow {
  0%, 100% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.1), 0 0 40px rgba(21, 206, 255, 0.35); }
  50% { box-shadow: 0 0 0 12px rgba(255, 47, 208, 0.15), 0 0 60px rgba(255, 47, 208, 0.4); }
}

.v2-venue-stage .v2-show-sponsors {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
}

/* ── Branded loader (V2) ── */
.lb-v2 .v2-branded-loader,
.lb-v2 .v2-clean-loader {
  background:
    radial-gradient(ellipse 60% 45% at 50% 28%, rgba(88, 28, 135, 0.1), transparent 55%),
    #05040b !important;
}

/* ── Scroll reveal (pairs with beatdesk-motion.js) ── */
.lb-v2 .bd-motion-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lb-v2 .bd-motion-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.lb-v2 .v2-launch-section:nth-child(even) .bd-motion-reveal {
  transition-delay: 0.06s;
}

/* ── FAQ polish ── */
.lb-v2 .v2-faq details {
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lb-v2 .v2-faq details[open] {
  background: rgba(255, 46, 203, 0.06) !important;
}

.lb-v2 .v2-faq summary::after {
  content: "+";
  float: right;
  font-size: 1.25rem;
  color: #baff2e;
  transition: transform 0.2s ease;
}

.lb-v2 .v2-faq details[open] summary::after {
  content: "−";
}

/* ── UX: clickable shortcut cards (home) ── */
.lb-v2 a.v2-quick-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lb-v2 a.v2-quick-card h3 {
  font-family: var(--v2-display);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.05;
  margin: 12px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.lb-v2 a.v2-quick-card:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 242, 213, 0.4) !important;
}

.lb-v2 .v2-quick-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--v2-muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lb-v2 a.v2-quick-card:hover .v2-quick-arrow {
  color: #fff;
  border-color: rgba(36, 242, 213, 0.5);
  background: rgba(36, 242, 213, 0.1);
}

/* ── UX: focus rings (keyboard) ── */
.lb-v2 a:focus-visible,
.lb-v2 button:focus-visible,
.lb-v2 input:focus-visible,
.lb-v2 select:focus-visible,
.lb-v2 summary:focus-visible {
  outline: 2px solid rgba(36, 242, 213, 0.75);
  outline-offset: 2px;
}

/* ── UX: auth form consistency ── */
.lb-v2 .v2-auth-glass .v2-launch-btn.wide {
  margin-top: 4px;
}

.lb-v2 .v2-auth-foot {
  font-size: 14px;
  line-height: 1.5;
}

/* ── UX: landing nav active states ── */
.lb-v2 .v2-launch-links a:hover,
.lb-v2 .v2-launch-actions a:not(.v2-launch-btn):hover {
  color: #fff;
}

/* ── UX: toned headline shimmer (professional) ── */
.lb-v2 .v2-launch-copy h1,
.lb-v2 .v2-auth-story h1 {
  animation-duration: 10s;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  body.lb-v2-active::before,
  .lb-v2 .v2-launch-copy h1,
  .lb-v2 .v2-auth-story h1,
  .lb-v2 .v2-launch-btn:not(.secondary):not(.ghost),
  .v2-venue-stage .v2-qr-frame img,
  .lb-v2 .v2-loader-balls span {
    animation: none !important;
  }

  .lb-v2 .bd-motion-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
