:root {
  --bg-color: #050505;
}
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  font-family: Courier New, Courier, monospace;
  user-select: none;
  -webkit-user-select: none;
}
.app-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  background: #000;
  overflow: hidden;
}
.vhs-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(#12101000 50%, #00000040 50%),
    linear-gradient(90deg, #ff00000f, #00ff0005, #0000ff0f);
  background-size: 100% 3px, 3px 100%;
  z-index: 100;
  mix-blend-mode: overlay;
  filter: contrast(1.2) brightness(1.1);
}
.vhs-overlay:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 60%, rgba(0, 0, 0, 0.6) 100%);
  mix-blend-mode: multiply;
}
.scanline {
  width: 100%;
  height: 5px;
  z-index: 101;
  background: #ffffff1a;
  position: absolute;
  bottom: 100%;
  animation: scanline 8s linear infinite;
  pointer-events: none;
  box-shadow: 0 0 10px #fff3;
}
@keyframes scanline {
  0% {
    top: -10%;
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.5;
  }
  to {
    top: 110%;
    opacity: 0;
  }
}
.app-container:after {
  content: " ";
  display: block;
  position: absolute;
  inset: 0;
  background: linear-gradient(#12101000 50%, #00000040 50%),
    linear-gradient(90deg, #ff00000f, #00ff0005, #0000ff0f);
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}
.menu-overlay {
  position: absolute;
  inset: 0;
  background: #0a0a0af2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  color: #fff;
  text-align: center;
}
.start-btn {
  padding: 15px 40px;
  background: #222;
  border: 2px solid #fff;
  color: #fff;
  font-family: Courier New, monospace;
  font-size: 1.5rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s;
  letter-spacing: 2px;
  box-shadow: 4px 4px #444;
}
.start-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px #444;
}
.start-btn:hover {
  background: #fff;
  color: #000;
}
.pause-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 300;
  background: #00000080;
  border: 2px solid white;
  color: #fff;
  font-family: monospace;
  padding: 8px 16px;
  font-size: 1.2rem;
  cursor: pointer;
  text-transform: uppercase;
  backdrop-filter: blur(2px);
}
.pause-btn:hover {
  background: #fff;
  color: #000;
}
.glitch-text {
  font-size: 4rem;
  font-weight: 700;
  position: relative;
  color: #fff;
  letter-spacing: 8px;
  margin-bottom: 40px;
  text-transform: uppercase;
}
.glitch-text:before,
.glitch-text:after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.glitch-text:before {
  left: 3px;
  text-shadow: -2px 0 #ff00c1;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 3s infinite linear alternate-reverse;
}
.glitch-text:after {
  left: -3px;
  text-shadow: -2px 0 #00fff9;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 2s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
  0% {
    clip: rect(15px, 9999px, 81px, 0);
  }
  5% {
    clip: rect(69px, 9999px, 83px, 0);
  }
  10% {
    clip: rect(4px, 9999px, 95px, 0);
  }
  15% {
    clip: rect(32px, 9999px, 2px, 0);
  }
  20% {
    clip: rect(54px, 9999px, 39px, 0);
  }
  to {
    clip: rect(79px, 9999px, 16px, 0);
  }
}
@keyframes glitch-anim2 {
  0% {
    clip: rect(82px, 9999px, 12px, 0);
  }
  5% {
    clip: rect(2px, 9999px, 34px, 0);
  }
  10% {
    clip: rect(56px, 9999px, 16px, 0);
  }
  15% {
    clip: rect(12px, 9999px, 67px, 0);
  }
  20% {
    clip: rect(34px, 9999px, 1px, 0);
  }
  to {
    clip: rect(45px, 9999px, 92px, 0);
  }
}
