/* --- Global Variables & Theme --- */
:root {
  --pink-soft: #ff9ec2;
  --pink-dark: #d85a8a;
  --pink-cloud: #ffeaf2;
  --white: #ffffff;
  --shadow-kawaii: 0 12px 30px rgba(255, 158, 194, 0.25);
}

body {
  font-family: 'Fredoka', sans-serif;
  background-color: #fff5f8;
  color: #4a4a4a;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* --- Fullscreen Click-to-Start Overlay --- */
#start-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 240, 245, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#start-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.overlay-card {
  background: var(--white);
  border: 4px solid var(--pink-soft);
  border-radius: 30px;
  padding: 2.5rem 3rem;
  text-align: center;
  box-shadow: 0 15px 35px rgba(255, 158, 194, 0.35);
  max-width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.overlay-card h2 {
  font-family: 'Sniglet', cursive;
  color: var(--pink-dark);
  font-size: 2.2rem;
  margin: 0;
}

/* Progress bar styling */
.progress-bar-container {
  width: 100%;
  max-width: 260px;
  height: 12px;
  background: var(--pink-cloud);
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--pink-soft);
  transition: opacity 0.3s ease;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff9ec2, #b59bd8);
  border-radius: 10px;
  transition: width 0.2s ease-out;
}

.enter-btn-bubble {
  display: inline-block;
  background: #cccccc;
  color: #ffffff;
  font-family: 'Sniglet', cursive;
  font-size: 1.4rem;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  cursor: not-allowed;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.enter-btn-bubble.ready {
  background: var(--pink-soft);
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(255, 158, 194, 0.4);
  animation: pulseBounce 2s infinite ease-in-out;
}

.enter-btn-bubble.ready:hover {
  transform: scale(1.08);
  background: var(--pink-dark);
}

@keyframes pulseBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* Container wrapper for the page bounce */
.bounce-wrapper {
  animation: kawaiiLandingBounce 1.1s cubic-bezier(0.28, 0.84, 0.42, 1) forwards;
  position: relative;
}

@keyframes kawaiiLandingBounce {
  0% {
    opacity: 0;
    transform: translateY(-80px) scaleY(1.1);
  }
  50% {
    opacity: 1;
    transform: translateY(15px) scaleY(0.92) scaleX(1.05);
  }
  70% {
    transform: translateY(-8px) scaleY(1.03) scaleX(0.98);
  }
  85% {
    transform: translateY(3px) scaleY(0.99) scaleX(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Sparkle layer placed behind content elements */
#sparkle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* --- Navigation Bar --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--white);
  border-bottom: 3px solid var(--pink-cloud);
  box-shadow: 0 4px 15px rgba(255, 158, 194, 0.15);
  position: relative;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--pink-soft);
  object-fit: cover;
}

.logo-text {
  font-family: 'Sniglet', cursive;
  font-size: 1.5rem;
  color: var(--pink-dark);
}

.btn-join {
  background: var(--pink-soft);
  color: var(--white);
  font-family: 'Sniglet', cursive;
  font-size: 1.1rem;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 158, 194, 0.4);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-join:hover {
  transform: scale(1.08);
  background: var(--pink-dark);
}

/* Kawaii Music & General Action Buttons */
.music-btn {
  background: #ffffff;
  color: var(--pink-dark);
  border: 2px solid var(--pink-soft);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(255, 158, 194, 0.2);
  transition: transform 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
}

.music-btn:hover {
  transform: scale(1.05);
  background-color: var(--pink-cloud);
}

/* Super Cute Kawaii Dropdown Menu */
.kawaii-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #ffffff;
  min-width: 190px;
  border: 3px solid var(--pink-soft);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(255, 158, 194, 0.3);
  z-index: 1000;
  padding: 8px 0;
  animation: dropdownPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  transform-origin: top right;
}

@keyframes dropdownPop {
  0% { opacity: 0; transform: scale(0.8) translateY(-10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.dropdown-content a {
  color: var(--pink-dark);
  padding: 10px 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.15s ease, padding-left 0.15s ease;
}

.dropdown-content a:hover {
  background: var(--pink-cloud);
  padding-left: 22px;
}

.kawaii-dropdown.active .dropdown-content {
  display: block;
}

/* --- Hero & Banner --- */
.hero {
  text-align: center;
  padding: 3rem 1rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.banner-img-container {
  position: relative;
  z-index: 10;
  width: 100%;
  border-radius: 25px;
  overflow: hidden;
  border: 4px solid var(--pink-soft);
  box-shadow: var(--shadow-kawaii);
  margin-bottom: 1.5rem;
  background: var(--white);
}

.banner-img-container img {
  width: 100%;
  height: auto;
  display: block;
}

.hero p {
  font-family: 'Nunito', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #666;
  margin-top: 0.5rem;
}

/* Glow Visualizer element positioned directly behind the banner */
.banner-glow-visualizer {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-radius: 35px;
  background: linear-gradient(45deg, #ff9ec2, #b59bd8, #ffc2d6, #ffeaf2);
  background-size: 300% 300%;
  filter: blur(20px);
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.1s ease-out, filter 0.1s ease-out;
}

.banner-glow-visualizer.active {
  opacity: 0.8;
  animation: gentleGlowPulse 2.5s infinite alternate ease-in-out;
}

@keyframes gentleGlowPulse {
  0% { transform: scale(1); filter: blur(18px); }
  100% { transform: scale(1.05); filter: blur(30px); }
}

/* --- Bot Banner Section --- */
.bot-banner {
  max-width: 900px;
  margin: 1rem auto 3rem;
  background: var(--white);
  border: 4px solid var(--pink-soft);
  border-radius: 35px;
  padding: 2.5rem;
  box-shadow: var(--shadow-kawaii);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bot-header-tag {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pink-dark);
  background: var(--pink-cloud);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--pink-soft);
  display: inline-block;
  margin-bottom: 0.8rem;
}

.bot-title {
  font-family: 'Sniglet', cursive;
  font-size: 2.2rem;
  color: var(--pink-dark);
  margin: 0 0 0.4rem 0;
}

.staff-credit {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #b59bd8;
  margin-bottom: 1.2rem;
}

.bot-subtitle {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #666;
  line-height: 1.6;
  max-width: 750px;
  margin: 0 auto;
}

/* --- Live Ms Birdy Atmospheric Section --- */
.live-watcher-section {
  max-width: 900px;
  margin: 2.5rem auto 1rem;
  padding: 0 1.5rem;
}

.watcher-card {
  background: #ffffff;
  border: 4px solid var(--pink-soft);
  border-radius: 25px;
  padding: 1.8rem 2.2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 10px 30px rgba(255, 158, 194, 0.25);
  position: relative;
  overflow: hidden;
}

.birdy-avatar-container {
  position: relative;
  flex-shrink: 0;
}

.birdy-avatar-pulse {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  border: 3px solid var(--pink-soft);
  object-fit: cover;
  animation: birdyBounce 2.5s infinite ease-in-out;
}

@keyframes birdyBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.live-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: #4ade80;
  border: 3px solid #ffffff;
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.watcher-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}

.watcher-tag {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pink-dark);
  background: var(--pink-cloud);
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
  width: fit-content;
  border: 1px solid var(--pink-soft);
}

.watcher-title {
  font-family: 'Sniglet', cursive;
  color: var(--pink-dark);
  font-size: 1.35rem;
  margin: 0;
}

.watcher-status-ticker {
  position: relative;
  height: 28px;
  overflow: hidden;
}

.ticker-item {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  font-family: 'Nunito', sans-serif;
  color: #666;
  font-size: 1.05rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.ticker-item.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Features Grid Section --- */
.features-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.section-title {
  font-family: 'Sniglet', cursive;
  font-size: 2.2rem;
  color: var(--pink-dark);
  text-align: center;
  margin-bottom: 2.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: 30px;
  box-shadow: var(--shadow-kawaii);
  border: 3px solid var(--pink-cloud);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.2s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--pink-soft);
  box-shadow: 0 18px 35px rgba(255, 140, 182, 0.35);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  background: var(--pink-cloud);
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  border: 2px solid var(--pink-soft);
  transition: transform 0.3s ease;
}

.card:hover .card-icon {
  transform: rotate(10deg) scale(1.15);
}

.card h3 {
  font-family: 'Sniglet', cursive;
  font-size: 1.4rem;
  color: var(--pink-dark);
  margin-bottom: 0.6rem;
}

.card p {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* --- Sparkle Particles Animation --- */
.sparkle-particle {
  position: absolute;
  pointer-events: none;
  font-size: 2.5rem;
  user-select: none;
  animation: popStarUltraWide 2s cubic-bezier(0.08, 0.82, 0.17, 1) forwards;
}

@keyframes popStarUltraWide {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translate(calc(-50% + var(--tx) * 0.25), calc(-50% + var(--ty) * 0.25)) scale(1.8) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty) + 60px)) scale(0.2) rotate(720deg);
  }
}

/* --- Footer --- */
footer {
  background: var(--white);
  border-top: 3px solid var(--pink-cloud);
  text-align: center;
  padding: 3.5rem 1rem;
  box-shadow: 0 -5px 20px rgba(255, 158, 194, 0.1);
}

footer h2 {
  font-family: 'Sniglet', cursive;
  color: var(--pink-dark);
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

.footer-quote {
  font-family: 'Nunito', sans-serif;
  font-style: italic;
  font-weight: 700;
  color: #888;
  margin-top: 1.5rem;
}

@media (max-width: 650px) {
  .watcher-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
  }
  .watcher-content {
    align-items: center;
  }
}