/* Grand Opening launch carousel.
   Full-screen, swipeable multi-card intro shown on the marketplace during the
   launch window (Oct 11-16). It sits above everything, plays the promo video on
   the middle slide and a synthesized applause/cheer on the finale, then fades
   away to reveal the marketplace already loading underneath. */

.go-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(125% 120% at 50% 0%, #1c2e52 0%, #101a30 52%, #070b14 100%);
  opacity: 0;
  transition: opacity 0.45s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
}

.go-overlay.go-show { opacity: 1; }
.go-overlay.go-hide { opacity: 0; pointer-events: none; }

/* Soft gold glow that drifts behind the content. */
.go-glow {
  position: absolute;
  inset: -30% -20% auto -20%;
  height: 70%;
  background:
    radial-gradient(50% 60% at 30% 30%, rgba(255, 200, 87, 0.30), transparent 70%),
    radial-gradient(45% 55% at 75% 20%, rgba(255, 156, 66, 0.22), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  animation: go-drift 12s ease-in-out infinite alternate;
}

@keyframes go-drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.go-skip {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  z-index: 5;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.go-skip:hover { background: rgba(255, 255, 255, 0.16); }

/* Horizontal paging viewport. */
.go-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.go-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.go-overlay.go-dragging .go-track { transition: none; }

.go-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 64px 22px 26px;
  text-align: center;
  box-sizing: border-box;
}

.go-kicker {
  letter-spacing: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #ffd27a;
  text-transform: uppercase;
}

.go-title {
  margin: 0;
  font-size: clamp(30px, 9vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  background: linear-gradient(90deg, #fff 0%, #ffe1a8 60%, #ffb347 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.go-subtitle {
  margin: 0;
  font-size: clamp(14px, 3.6vw, 18px);
  color: #cdd8ee;
  max-width: 620px;
}

.go-lead-card {
  width: min(560px, 92vw);
  margin-top: 6px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 12px;
}

.go-lead-row { display: grid; gap: 2px; }
.go-lead-role {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffd27a;
  font-weight: 700;
}
.go-lead-name { font-size: clamp(16px, 4.4vw, 21px); font-weight: 700; }
.go-present {
  margin-top: 4px;
  font-size: clamp(18px, 5vw, 26px);
  font-weight: 800;
  letter-spacing: 1px;
}

.go-video-wrap {
  width: min(560px, 92vw);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  background: #000;
}
.go-video { display: block; width: 100%; height: auto; max-height: 56vh; background: #000; }

.go-final-title { font-size: clamp(30px, 10vw, 58px); }
.go-final-emoji { font-size: clamp(44px, 14vw, 84px); line-height: 1; }

/* Scripture + mission card. */
.go-scripture {
  margin: 0;
  width: min(620px, 92vw);
  padding: 26px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 4px solid #ffc857;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  font-size: clamp(17px, 4.6vw, 24px);
  font-weight: 600;
  font-style: italic;
  line-height: 1.45;
  color: #f4f7ff;
  text-align: left;
}
.go-verse-ref {
  display: block;
  margin-top: 12px;
  font-size: clamp(13px, 3.6vw, 16px);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffd27a;
  text-transform: uppercase;
}
.go-mission {
  margin: 6px 0 0;
  max-width: 640px;
  font-size: clamp(16px, 4.4vw, 22px);
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1.35;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff 0%, #ffe1a8 60%, #ffb347 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Footer: dots + nav controls. */
.go-footer {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
}

.go-dots { display: flex; gap: 9px; }
.go-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  border: none; padding: 0; cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.go-dot.go-dot-active { background: #ffc857; transform: scale(1.35); }

.go-controls { display: flex; gap: 12px; align-items: center; }

.go-btn {
  min-width: 120px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.go-btn:active { transform: scale(0.96); }
.go-btn:hover { background: rgba(255, 255, 255, 0.16); }
.go-btn[disabled] { opacity: 0.35; cursor: default; }

.go-btn-primary {
  border: none;
  background: linear-gradient(90deg, #ffb347, #ffc857);
  color: #3a2400;
  box-shadow: 0 12px 30px rgba(255, 179, 71, 0.4);
}
.go-btn-primary:hover { background: linear-gradient(90deg, #ffc857, #ffd27a); }

/* Confetti shower on the finale. */
.go-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; }
.go-confetti i {
  position: absolute;
  top: -14px;
  width: 9px; height: 14px;
  border-radius: 2px;
  opacity: 0.95;
  animation: go-fall linear forwards;
}

@keyframes go-fall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(640deg); opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .go-overlay, .go-track { transition: none; }
  .go-glow { animation: none; }
  .go-confetti { display: none; }
}

body.go-locked { overflow: hidden; }
