.panel.header.neon-header,
.main-header.neon-header {
  background-color: #271336;
  background-image:
    radial-gradient(circle at 6px 5px, #fff5fd 0 1px, #ff83dc 1.5px, transparent 4px),
    radial-gradient(circle at 6px 5px, #fffce5 0 1px, #ffcb65 1.5px, transparent 4px),
    linear-gradient(90deg, #ff17a3, #ff772d, #fff12f, #30ffd9, #9e55ff, #ff17a3),
    linear-gradient(110deg, #291055, #8c125c 56%, #301944);
  background-repeat: repeat-x, repeat-x, no-repeat, no-repeat;
  background-size: 32px 10px, 32px 10px, 250% 6px, 100% 100%;
  background-position: 0 0, 16px 0, 0 100%, center;
  box-shadow: 0 3px 18px #ff169391;
  animation: neon-header-flow 3s ease-in-out infinite alternate;
}

.buttonjoin > .neon-button {
  position: relative;
}

.neon-button::after {
  position: absolute;
  inset: 0;
  border: 2px solid #ffb4dc;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 37%, #fff9 50%, transparent 63%) 100% 0 / 250% 100% no-repeat;
  box-shadow: inset 0 0 12px #ff79ba, 0 0 18px #ff239b;
  opacity: .65;
  pointer-events: none;
  content: "";
  animation: neon-button-sweep 3s ease-in-out infinite;
}

.neon-button::before {
  position: absolute;
  inset: -2px;
  border: 2px solid currentColor;
  border-radius: inherit;
  color: #ff46bd;
  box-shadow: 0 0 14px currentColor;
  opacity: 0;
  pointer-events: none;
  content: "";
  animation: neon-ring 3s ease-out infinite;
}

.buttonjoin + .buttonjoin > .neon-button::before {
  color: #62ffee;
  animation-delay: -1.5s;
}

.buttonjoin + .buttonjoin > .neon-button::after {
  border-color: #93ffed;
  box-shadow: inset 0 0 12px #60dacf, 0 0 18px #25ffdc;
  animation-delay: -1.5s;
}

.float-menu::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: inherit;
  background: repeating-linear-gradient(90deg, #ff17a3, #ffcf48, #30ffd9, #a94aff, #ff17a3 160px) 0 0 / 320px 100%;
  box-shadow: 0 0 14px #ff56b7;
  pointer-events: none;
  content: "";
  animation: neon-menu-flow 3s linear infinite;
}

.float-menu a:nth-child(even) {
  --neon-icon-color: #39ffe4;
  --neon-icon-delay: -1.3s;
}

.float-menu a:not(.tada):not(:hover) img {
  animation: neon-icon-glow 2.6s ease-in-out infinite var(--neon-icon-delay, 0s);
}

@keyframes neon-header-flow {
  to { background-position: 32px 0, -16px 0, 100% 100%, center; }
}

@keyframes neon-button-sweep {
  0% { background-position: 100% 0; opacity: .55; }
  35% { opacity: 1; }
  70%, 100% { background-position: 0 0; opacity: .55; }
}

@keyframes neon-ring {
  0% { opacity: .85; transform: scale(1); }
  60%, 100% { opacity: 0; transform: scale(1.08, 1.3); }
}

@keyframes neon-menu-flow {
  to { background-position: 320px 0; }
}

@keyframes neon-icon-glow {
  0%, 100% { filter: brightness(0) invert(1) drop-shadow(0 0 1px #fff); }
  50% { filter: brightness(0) invert(1) drop-shadow(0 0 6px var(--neon-icon-color, #ff54bc)); }
}

@media (prefers-reduced-motion: reduce) {
  .panel.header.neon-header,
  .main-header.neon-header,
  .neon-button::before,
  .neon-button::after,
  .float-menu::before,
  .float-menu a:not(.tada):not(:hover) img {
    animation: none;
  }
}
