#title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-weight: 900;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.05;
  color: var(--title-color);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 1px 0 var(--title-outline),
               0 2px 0 var(--title-outline),
               0 4px 6px rgba(0, 0, 0, 0.55);
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.35));
  animation: none !important;
  transform: none !important;
  padding-bottom: 24px;     
  max-width: 90%;
  margin-inline: auto;
  word-break: break-word;   
  text-align: center;
}

.menu-shield {
  position: relative;
  display: inline-block;        
  transform-origin: top center;  
  animation:
    menu-sway 3.6s ease-in-out infinite,
    menu-flicker 1.9s ease-in-out infinite;
}

#title .title-char {
  display: inline-block;
  transform-origin: bottom center;
  backface-visibility: hidden;
}

#title .title-char.enter {
  animation: enterArc 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 110ms);
}

@keyframes enterArc {
  0% {
    transform: translate3d(-40px, 40px, 0) rotate(-6deg) scale(0.92);
    filter: blur(1.5px) brightness(0.9);
    opacity: 0;
  }
  60% {
    transform: translate3d(4px, -4px, 0) rotate(1deg) scale(1.01);
    filter: none;
    opacity: 1;
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
    opacity: 1;
  }
}

@keyframes menu-sway {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(2deg) translateY(-4px);
  }
}

@keyframes menu-flicker {
  0%,
  100% {
    filter: brightness(1);
  }
  20% {
    filter: brightness(1.06);
  }
  55% {
    filter: brightness(0.96);
  }
  70% {
    filter: brightness(1.03);
  }
}
