body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Courier New", monospace;
  background-color: #1a1a1a;
  color: #4caf50;
}
#gameCanvas {
  display: block;
  touch-action: none;
}
#score,
#brandName {
  position: absolute;
  font-size: 20px;
  z-index: 10;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
#score {
  top: 20px;
  left: 20px;
  transition: transform 0.3s ease;
}
#score.updated {
  transform: scale(1.2);
}
#brandName {
  bottom: 20px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  animation: float 3s ease-in-out infinite;
}
#introScreen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(26, 26, 26, 0.9);
  z-index: 20;
}
#startButton {
  padding: 10px 20px;
  font-size: 24px;
  background-color: #4caf50;
  color: #1a1a1a;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
#startButton:hover {
  transform: scale(1.1);
}
.glitch {
  font-size: 48px;
  font-weight: bold;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  margin-bottom: 40px;
}
.glitch::before,
.glitch::after {
  content: "JNR-DEV";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.glitch::before {
  left: 2px;
  text-shadow: -2px 0 #ff00c1;
  clip: rect(24px, 550px, 90px, 0);
  animation: glitch-anim 3s infinite linear alternate-reverse;
}
.glitch::after {
  left: -2px;
  text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
  animation: glitch-anim2 2s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
  0% {
    clip: rect(10px, 9999px, 65px, 0);
  }
  20% {
    clip: rect(92px, 9999px, 99px, 0);
  }
  40% {
    clip: rect(64px, 9999px, 4px, 0);
  }
  60% {
    clip: rect(58px, 9999px, 32px, 0);
  }
  80% {
    clip: rect(83px, 9999px, 59px, 0);
  }
  100% {
    clip: rect(17px, 9999px, 78px, 0);
  }
}
@keyframes glitch-anim2 {
  0% {
    clip: rect(65px, 9999px, 200px, 0);
  }
  20% {
    clip: rect(13px, 9999px, 100px, 0);
  }
  40% {
    clip: rect(85px, 9999px, 41px, 0);
  }
  60% {
    clip: rect(20px, 9999px, 94px, 0);
  }
  80% {
    clip: rect(45px, 9999px, 54px, 0);
  }
  100% {
    clip: rect(76px, 9999px, 107px, 0);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes pulsate {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
.particle {
  position: absolute;
  pointer-events: none;
  animation: explode 0.5s ease-out forwards;
}
@keyframes explode {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
