/* GENERAL STYLES */
body {
  background: radial-gradient(circle at top, #111 0%, #050505 100%);
  color: white;
  font-family: monospace;
  margin: 0;
  overflow-x: hidden;
}

/* subtle screen flicker overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.02);
  pointer-events: none;
  animation: screenFlicker 6s infinite;
}

/* CONTAINER */
.container {
  max-width: 700px;
  margin: auto;
  padding: 20px;
  position: relative;
}

/* PANEL */
.panel {
  width: 90%;
  border: 2px solid #888;
  display: block;
  margin: 30px auto;
  transition: transform 0.2s ease;
}

/* panel hover effect */
.panel:hover {
  transform: scale(1.01) rotate(-0.3deg);
}

/* tilted panel */
.tilted-panel {
  transform: rotate(-1deg);
  box-shadow: 0 0 15px #000;
}

/* DIALOGUE BOX */
.dialogue {
  margin-top: 20px;
  line-height: 1.7;
  font-size: 18px;
  background: linear-gradient(to bottom, #111, #0a0a0a);
  padding: 15px;
  border-left: 4px solid #222;
  border-radius: 6px;
  box-shadow: 0 0 10px #000;
}

/* CAIN - pastel yellow */
.cain {
  color: #f2d983;
  margin-left: 0;
  transition: text-shadow 0.2s ease;
}

/* CAIN hover */
.cain:hover {
  text-shadow: 0 0 6px #f2d983;
}

/* ABEL (gradient text) */
.abel {
  display: block;
  background: linear-gradient(to right, #d7af7b, #998176);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: flicker 2s infinite alternate, jitter 0.3s infinite;
  margin-left: 15px;
}

/* NEXT BUTTON */
.next {
  display: block;
  margin-top: 25px;
  color: #aaa;
  text-decoration: none;
  font-size: 20px;
  transition: all 0.2s ease;
}

/* NEXT hover */
.next:hover {
  color: white;
  letter-spacing: 2px;
}

/* FLICKER ANIMATION */
@keyframes flicker {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
  100% { filter: brightness(0.9); }
}

/* JITTER ANIMATION */
@keyframes jitter {
  0% { transform: translate(0px, 0px); }
  25% { transform: translate(0.5px, -0.5px); }
  50% { transform: translate(-0.5px, 0.5px); }
  75% { transform: translate(0.5px, 0.5px); }
  100% { transform: translate(0px, 0px); }
}

/* SCREEN FLICKER */
@keyframes screenFlicker {
  0% { opacity: 0.02; }
  50% { opacity: 0.04; }
  100% { opacity: 0.02; }
}