/* Web adaptation of the game's cyan scanline / magenta energy accents.
   The original transparent logo and painted background remain unchanged. */
.hero h1 { position: relative; isolation: isolate; }
.hero h1::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url('/assets/logo.webp') center / 100% 100% no-repeat;
  clip-path: polygon(0 40%, 100% 40%, 100% 48%, 0 48%);
  opacity: 0; animation: logo-glitch 12s steps(1, end) infinite;
}
.hero h1::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  mask: url('/assets/logo.webp') center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 38%, #55efff88 47%, #e8ffffaa 50%, #ff458888 54%, transparent 63%);
  background-size: 300% 100%; opacity: 0;
  animation: logo-scan 12s ease-in-out infinite;
}
.hero-logo { animation: logo-energy 12s ease-in-out infinite; }
.scene-energy { position: absolute; z-index: -3; pointer-events: none; opacity: 0; overflow: visible; }
.fx-ready .scene-energy { opacity: 1; }
.scene-energy .beam-energy { animation: beacon-breathe 4.2s ease-in-out infinite; }
.scene-energy .blade-energy { animation: blade-breathe 2.7s ease-in-out infinite; }
.scene-energy .blade-glint { stroke-dasharray: .13 .87; stroke-dashoffset: 1; animation: blade-glint 3.5s linear infinite; }
.fx-paused .hero-logo, .fx-paused h1::before, .fx-paused h1::after, .fx-paused .scene-energy * { animation-play-state: paused; }
@keyframes logo-glitch {
  0%, 7%, 10%, 100% { opacity: 0; transform: translateX(0); }
  8% { opacity: .55; transform: translateX(-2px); }
  9% { opacity: .4; transform: translateX(2px); }
}
@keyframes logo-scan {
  0%, 3%, 20%, 100% { opacity: 0; background-position: 170% 50%; }
  5% { opacity: .35; background-position: 170% 50%; }
  15% { opacity: .35; background-position: -70% 50%; }
  19% { opacity: 0; background-position: -70% 50%; }
}
@keyframes logo-energy {
  0%, 5%, 18%, 55%, 70%, 100% { filter: drop-shadow(0 4px 14px #03050e); }
  10% { filter: drop-shadow(0 0 9px #2cdeff66) brightness(1.12); }
  62% { filter: drop-shadow(0 0 8px #ff387755) brightness(1.09); }
}
@keyframes beacon-breathe { 0%, 100% { opacity: .42; } 50% { opacity: .8; } }
@keyframes blade-breathe { 0%, 100% { opacity: .5; } 50% { opacity: .88; } }
@keyframes blade-glint { 0% { stroke-dashoffset: 1; opacity: 0; } 20% { opacity: .6; } 80% { opacity: .6; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-logo, .hero h1::before, .hero h1::after, .scene-energy * { animation: none !important; }
  .hero h1::before, .hero h1::after, .scene-energy .blade-glint { opacity: 0; }
  .scene-energy .beam-energy, .scene-energy .blade-energy { opacity: .35; }
}
