/* ===== XXX Logo: Glitch + Neon Animation ===== */

.logo-xxx {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #eaeaea;
  text-decoration: none !important;
  -webkit-user-select: none;
  user-select: none;
  animation: logoAppear 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  transform-origin: top left;
  transform: scale(0);
}

/* ===== Age Modal Logo: Zoom In Animation ===== */

#ageModal .age-modal-logo .logo-xxx {
  animation: ageModalZoomIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  transform: scale(0.4);
}

/* Underline bar is hidden inside the age modal (that lockup is centred). */
#ageModal .age-modal-logo .logo-xxx::after {
  display: none;
}

@keyframes ageModalZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  60% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* The "XXX" portion gets the neon red treatment (dark theme; the light-theme
   override in styles.css swaps in a deeper red and drops the glow) */

.logo-xxx .logo-xxx-highlight {
  color: #ff2d3d;
  position: relative;
  display: inline-block;
  animation: xxxFlicker 3s ease-in-out forwards;
  text-shadow: 0 0 6px rgba(255, 35, 50, 0.7), 0 0 16px rgba(255, 35, 50, 0.5), 0 0 32px rgba(255, 35, 50, 0.3);
}

/* "Games" part stays clean white */

.logo-xxx .logo-games {
  color: #eaeaea;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-left: 0.1em;
}

/* Brand underline bar. Static on purpose: it used to start at width:0 and animate
   in via underlineReveal, which meant it was invisible whenever that animation
   didn't run. The red -> cyan gradient is the same signature as
   .hero-section-divider, so the lockup now carries the site palette, not just red. */

.logo-xxx::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff2d3d, #ff4455, #0dcaf0, transparent);
  box-shadow: 0 0 10px rgba(255, 35, 50, 0.6), 0 0 20px rgba(13, 202, 240, 0.3);
}

/* ===== Keyframes ===== */

/* Logo entrance */

@keyframes logoAppear {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  60% {
    opacity: 0.9;
    transform: scale(1.04);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* XXX neon red flicker */

@keyframes xxxFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 0 0 4px rgba(220, 53, 69, 0.6), 0 0 12px rgba(220, 53, 69, 0.4), 0 0 24px rgba(220, 53, 69, 0.2);
    opacity: 1;
  }
  20%, 24%, 55% {
    text-shadow: 0 0 2px rgba(220, 53, 69, 0.2);
    opacity: 0.85;
  }
}

/* ===== Responsive ===== */

@media (max-width: 767.98px) {
  .logo-xxx {
    font-size: 1.15rem;
  }
}

@media (max-width: 575.98px) {
  .logo-xxx {
    font-size: 1rem;
  }
}

