:root {
  --primary-color: #00ff00;
  --secondary-color: #ff00ff;
  --tertiary-color: #0000ff;
  --background-color: #111;
  --text-color: #fff;
}

body {
  font-family: 'Courier New', monospace;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#game-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.8);
  border: 2px solid var(--primary-color);
  position: relative;
}

#game-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
}

#stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 18px;
  text-transform: uppercase;
}

#story {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
  position: relative;
}

#story::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 0%,
    transparent 45%,
    rgba(255, 0, 0, 0.5) 45%,
    rgba(255, 0, 0, 0.5) 55%,
    transparent 55%,
    transparent 100%
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

.choice {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  background-color: var(--background-color);
  border: 1px solid var(--primary-color);
  color: var(--text-color);
  font-family: inherit;
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.choice:hover {
  background-color: var(--primary-color);
  color: var(--background-color);
}

.choice::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: all 0.6s;
}

.choice:hover::before {
  left: 100%;
}

@keyframes glitch {
  0% {
    text-shadow: 0.05em 0 0 var(--primary-color), -0.05em -0.025em 0 var(--secondary-color),
      -0.025em 0.05em 0 var(--tertiary-color);
  }
  14% {
    text-shadow: 0.05em 0 0 var(--primary-color), -0.05em -0.025em 0 var(--secondary-color),
      -0.025em 0.05em 0 var(--tertiary-color);
  }
  15% {
    text-shadow: -0.05em -0.025em 0 var(--primary-color), 0.025em 0.025em 0 var(--secondary-color),
      -0.05em -0.05em 0 var(--tertiary-color);
  }
  49% {
    text-shadow: -0.05em -0.025em 0 var(--primary-color), 0.025em 0.025em 0 var(--secondary-color),
      -0.05em -0.05em 0 var(--tertiary-color);
  }
  50% {
    text-shadow: 0.025em 0.05em 0 var(--primary-color), 0.05em 0 0 var(--secondary-color),
      0 -0.05em 0 var(--tertiary-color);
  }
  99% {
    text-shadow: 0.025em 0.05em 0 var(--primary-color), 0.05em 0 0 var(--secondary-color),
      0 -0.05em 0 var(--tertiary-color);
  }
  100% {
    text-shadow: -0.025em 0 0 var(--primary-color), -0.025em -0.025em 0 var(--secondary-color),
      -0.025em -0.05em 0 var(--tertiary-color);
  }
}

#story, #stats, .choice {
  animation: glitch 1s infinite;
}

#inventory {
  margin-top: 20px;
  border-top: 1px solid var(--primary-color);
  padding-top: 10px;
}

#inventory h3 {
  color: var(--secondary-color);
  text-transform: uppercase;
}

#inventory-list {
  list-style-type: none;
  padding: 0;
}

#inventory-list li {
  margin-bottom: 5px;
  color: var(--tertiary-color);
}