:root {
  --bg: #fdf6fb;
  --primary: #ff8fb1;
  --secondary: #8fd3ff;
  --card: #ffffff;
  --text: #333;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

/* Floating Background */
.floating-bubbles {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.floating-bubbles span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  animation: floatUp linear infinite;
  bottom: -150px;
  filter: blur(2px);
}

@keyframes floatUp {
  from {
    transform: translateY(0) translateX(0);
  }
  to {
    transform: translateY(-120vh) translateX(30px);
  }
}

/* Countdown */
.countdown-banner {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
  text-align: center;
  padding: 18px;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 5;
}

/* Header */
.main-header {
  text-align: center;
  padding: 40px 20px;
  position: relative;
  z-index: 2;
}

.main-header h1 {
  font-size: 2.6rem;
  color: var(--primary);
  animation: fadeInDown 1s ease forwards;
}

/* Layout */
.registry-wrapper {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px 60px;
  position: relative;
  z-index: 2;
}

.registry-section {
  margin-bottom: 70px;
}

.registry-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.9rem;
  color: var(--secondary);
}

/* Grid */
.bubble-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
}

/* Card */
.bubble-card {
  background: var(--card);
  border-radius: 30px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: cardFadeIn 0.6s ease forwards;
}

.bubble-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.bubble-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
}

.bubble-title {
  margin-top: 12px;
  font-weight: 600;
}

/* Card Animation */
@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header Animation */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Event Section */
.event-section {
  background: white;
  padding: 70px 20px;
  position: relative;
  z-index: 2;
}

.event-card {
  max-width: 80%;
  margin: auto;
  text-align: center;
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  animation: fadeInDown 1s ease forwards;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.modal-box {
  background: white;
  padding: 25px;
  border-radius: 25px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  transform: scale(0.9);
  opacity: 0;
  animation: modalPop 0.25s ease forwards;
}

@keyframes modalPop {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-box img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 15px;
}

.btn {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn:hover {
  transform: scale(1.03);
}
/* =========================
   Welcome Overlay FIXED
========================= */

#welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff8fb1, #8fd3ff);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.welcome-box {
  background: white;
  padding: 50px 40px;
  border-radius: 25px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  animation: popIn 0.4s ease forwards;
}

.welcome-box h2 {
  margin-bottom: 20px;
}

.welcome-box p {
  margin-bottom: 12px;
}

#enter-site-btn {
  margin-top: 20px;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  background: #8fd3ff;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#enter-site-btn:hover {
  transform: scale(1.05);
}

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.fade-out {
  animation: fadeAway 0.5s ease forwards;
}

@keyframes fadeAway {
  to { opacity: 0; visibility: hidden; }
}
/* =========================
   CONFETTI LAYER (ABOVE POPUP)
========================= */

#confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999; /* Above everything */
}

.confetti-piece {
  position: absolute;
  opacity: 0.95;
  animation: confettiFall var(--fall-duration) ease-in forwards;
}

@keyframes confettiFall {

  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  80% {
    transform: translate(var(--drift-x), 90vh) rotate(540deg);
  }

  90% {
    transform: translate(var(--drift-x), 100vh) rotate(600deg);
  }

  100% {
    transform: translate(var(--drift-x), 95vh) rotate(720deg);
  }
}
.buy-btn { background: var(--secondary); color: white; }
.bought-btn { background: var(--primary); color: white; }
.close-btn { background: #ccc; }
