.scanlines {
  position: relative;
  overflow: hidden;
}
.scanlines:before, .scanlines:after {
  display: block;
  pointer-events: none;
  content: "";
  position: absolute;
}
.scanlines:before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.2rem;
  z-index: 2147483649;
  opacity: 0.75;
}
.scanlines:after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147483648;
}
.screen.scanlines:before, .screen.scanlines:after {
  -webkit-animation: none;
          animation: none;
}
.screen > .contents {
  -webkit-animation: crt-power-off 0.55s forwards ease-in-out;
          animation: crt-power-off 0.55s forwards ease-in-out;
}

.screen.scanlines:before {
  background: rgba(0, 0, 0, 0.15);
  -webkit-animation: scan-moving 6s linear infinite;
          animation: scan-moving 6s linear infinite;
}
.screen.scanlines:after {
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.15) 51%);
  background-size: 100% 0.4rem;
  -webkit-animation: scan-crt 1s steps(60) infinite;
          animation: scan-crt 1s steps(60) infinite;
}
.screen > .contents {
  -webkit-animation: crt-power-on 1.5s forwards linear;
          animation: crt-power-on 1.5s forwards linear;
}

.vielogo-mobile, .vie {
    -webkit-animation: neon-turn-on 1.5s forwards linear;
            animation: neon-turn-on 1.5s forwards linear;
}

@keyframes neon-turn-on {
  /* start fully off */
  0% {
    color: rgba(182,255,249,0.03);
    text-shadow: none;
    filter: blur(1px) brightness(0.2);
    opacity: 0.04;
    transform: translateY(6px) scaleY(0.98);
  }

  /* Blink 1 */
  10% {
    opacity: 1;
    text-shadow: 0 0 6px rgba(182,255,249,0.5);
    filter: blur(0.8px) brightness(0.9);
    transform: translateY(0) scaleY(1);
  }
  20% {
    opacity: 0.2;
    text-shadow: none;
    filter: blur(2px) brightness(0.4);
    transform: translateY(2px);
  }

  /* Blink 2 */
  30% {
    opacity: 1;
    text-shadow: 0 0 8px rgba(182,255,249,0.7);
    filter: blur(0.5px) brightness(1.05);
  }
  40% {
    opacity: 0.25;
    text-shadow: none;
    filter: blur(2.5px) brightness(0.4);
    transform: translateY(3px) rotateZ(-0.2deg);
  }

  /* Blink 3 */
  50% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(182,255,249,0.8);
    filter: blur(0.4px) brightness(1.1);
  }
  55% {
    opacity: 0.3;
    text-shadow: none;
    filter: blur(2px) brightness(0.5);
  }

  /* Settle into full glow */
  70% {
    opacity: 1;
    text-shadow:
      0 0 2px rgba(255,255,255,0.9),
      0 0 8px rgba(182,255,249,0.8),
      0 0 18px rgba(0,246,255,0.6),
      0 0 36px rgba(0,246,255,0.35);
    filter: blur(0.2px) drop-shadow(0 0 8px rgba(0,246,255,0.35));
    transform: translateY(0) scaleY(1);
  }

  100% {
    opacity: 1;
    color: var(--neon-core);
    text-shadow:
      0 0 2px rgba(255,255,255,0.95),
      0 0 10px rgba(182,255,249,0.9),
      0 0 22px rgba(0,246,255,0.75),
      0 0 44px rgba(0,246,255,0.45);
    filter: drop-shadow(0 0 10px rgba(0,246,255,0.4));
    transform: translateY(0) scaleY(1);
  }
}

@-webkit-keyframes scan-moving {
  0% {
    transform: translate3d(0, 100vh, 0);
  }
}

@keyframes scan-moving {
  0% {
    transform: translate3d(0, 100vh, 0);
  }
}
@-webkit-keyframes scan-crt {
  0% {
    background-position: 0 50%;
  }
}
@keyframes scan-crt {
  0% {
    background-position: 0 50%;
  }
}
@-webkit-keyframes blink {
  to {
    visibility: hidden;
  }
}
@keyframes blink {
  to {
    visibility: hidden;
  }
}
@-webkit-keyframes crt-power-on {
  0% {
    /*transform: scale(1, 0.8) translate3d(0, 0, 0);*/
    filter: brightness(30);
    opacity: 1;
  }
  3.5% {
    /*transform: scale(1, 0.8) translate3d(0, 100%, 0);*/
  }
  3.6% {
    /*transform: scale(1, 0.8) translate3d(0, -100%, 0);*/
  }
  9% {
   /* transform: scale(1.3, 0.6) translate3d(0, 100%, 0);*/
  }
  11% {
    /*transform: scale(1, 1) translate3d(0, 0, 0);*/
    filter: contrast(0) brightness(0);
    opacity: 0;
  }
  100% {
    /*transform: scale(1, 1) translate3d(0, 0, 0);*/
    filter: contrast(1) brightness(1.2) saturate(1.3);
    opacity: 1;
  }
}
@keyframes crt-power-on {
  0% {
    /*transform: scale(1, 0.8) translate3d(0, 0, 0);*/
    filter: brightness(30);
    opacity: 1;
  }
  3.5% {
    /*transform: scale(1, 0.8) translate3d(0, 100%, 0);*/
  }
  3.6% {
    /*transform: scale(1, 0.8) translate3d(0, -100%, 0);*/
  }
  9% {
    /*transform: scale(1.3, 0.6) translate3d(0, 100%, 0);*/
  }
  11% {
    /*transform: scale(1, 1) translate3d(0, 0, 0);*/
    filter: contrast(0) brightness(0);
    opacity: 0;
  }
  100% {
    /*transform: scale(1, 1) translate3d(0, 0, 0);*/
    filter: contrast(1) brightness(1.2) saturate(1.3);
    opacity: 1;
  }
}

.screen {
  position: relative;
  padding-top: 75%;
  width: 100%;
  height: 0;
  box-sizing: content-box;
  -webkit-clip-path: url(#crtPath);
          clip-path: url(#crtPath);
  text-transform: uppercase;
}
.screen .contents {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}


.neon-button {
  padding: 12px 24px;
  font-size: 16px;
  color: #fff;
  background: #111;
  border: 1px solid var(--clr-main);
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;

  /* subtle always-on glow */
  box-shadow:
    0 0 3px var(--clr-main),       /* outward */
    inset 0 0 5px var(--clr-main);  /* inward */

    animation: subtlePulse .7s infinite alternate;
}

/* bigger glow animation on hover */
.neon-button:hover {
  animation: neonPulse 1s infinite alternate;
}

/* subtle pulsating glow */
@keyframes subtlePulse {
  0% {
    box-shadow:
      0 0 2px var(--clr-main),
      inset 0 0 3px var(--clr-main);
  }
  100% {
    box-shadow:
      0 0 10px var(--clr-main),
      inset 0 0 12px var(--clr-main);
  }
}

/* Neon pulse keyframes */
@keyframes neonPulse {
  0% {
    box-shadow:
      0 0 5px var(--clr-main),
      0 0 10px var(--clr-main),
      0 0 20px var(--clr-main),
      0 0 30px var(--clr-main);
  }
  100% {
    box-shadow:
      0 0 10px var(--clr-main),
      0 0 20px var(--clr-main),
      0 0 40px var(--clr-main),
      0 0 60px var(--clr-main);
  }
}
