* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #020208;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Centered Pop-up Text Overlay */
.brand-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  text-align: center;
  width: 90%;
}

#brand-title {
  font-size: clamp(2.2rem, 6.5vw, 5rem);
  font-weight: 900;
  letter-spacing: 4px;
  display: inline-block;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Pop-up Entrance Effect */
.pop-up {
  animation: popup 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popup {
  0% {
    opacity: 0;
    transform: scale(0.2);
    filter: blur(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
  }
}

/* Colorful Animated Letter Styling */
.char {
  display: inline-block;
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
  background: linear-gradient(135deg, #00ffff, #ff007f, #7000ff, #00ff88);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: colorShift 5s ease infinite;
  filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.6));
  min-width: 0.35em;
}

.char.hidden {
  opacity: 0;
  transform: translateY(-15px) scale(0.3);
  filter: blur(8px) drop-shadow(0 0 0px transparent);
}

@keyframes colorShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
