/* ===== 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;
  user-select: none;
  animation: logoAppear 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
}

/* ===== 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);
}

#ageModal .age-modal-logo .logo-xxx .logo-sweep {
  display: none;
}

#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);
  }
}

/* Joystick icon pulse */

/* The "XXX" portion gets the neon red treatment */

.logo-xxx .logo-xxx-highlight {
  color: #dc3545;
  position: relative;
  display: inline-block;
  animation: xxxFlicker 3s ease-in-out infinite alternate;
  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);
}

/* "Games" part stays clean white */

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

/* Underline glow bar */

.logo-xxx::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #dc3545, #ff6b81, transparent);
  animation: underlineReveal 1.2s 0.6s ease forwards;
  box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
}

/* Secondary glow line that slides through */

.logo-xxx .logo-sweep {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.1), transparent);
  animation: sweepLine 1.8s 0.3s ease-in-out forwards;
  pointer-events: none;
}

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

/* Logo entrance */

@keyframes logoAppear {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Joystick icon spin + fade in */

/* Joystick gentle breathing pulse */

/* 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;
  }
}

/* Underline sweep reveal */

@keyframes underlineReveal {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

/* Glow sweep across the logo text */

@keyframes sweepLine {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

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

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

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

