body {
  background: black;
  color: #ffffff;
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  padding: 2rem;
  white-space: pre-wrap;
  overflow: hidden;
}

.line {
  opacity: 1;
  animation: type 0.05s steps(1) forwards;
}

@keyframes type {
  to {
    opacity: 1;
  }
}

.glitch {
  text-shadow:
    0 0 2px #fff,
    0 0 10px #ffffff,
    0 0 4px #ffffff;
  animation: glitchPulse 1.6s infinite alternate;
}

@keyframes glitchPulse {
  0%   { text-shadow: 0 0 2px #fff, 0 0 10px #a9fff6, 0 0 4px #a9fff6; }
  50%  { text-shadow: 0 0 4px #0ff, 0 0 12px #5fffff, 0 0 6px #fff; }
  100% { text-shadow: 0 0 1px #fff, 0 0 8px #a9fff6, 0 0 3px #a9fff6; }
}
html {
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  max-width: 100vw;
  overflow-x: hidden;
}

#terminal {
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

#ritual-wrapper {
  margin-top: 3rem;
  text-align: left;
  opacity: 0;
  transition: opacity 2s ease;
  font-family: 'Courier New', Courier, monospace;
  color: #ffffff;
  width: 100%;
}

#ritual-wrapper.active {
  opacity: 1;
}

#ritualInput {
  background: transparent;
  border: none;
  border-bottom: 1px solid #fff;
  color: #ffffff;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  width: 100%;
  max-width: 500px;
  text-align: left;
  outline: none;
  caret-color: #ff00cc;
  margin-top: 0rem;
  display: block;
}

#ritual-response {
  margin-top: 1.5rem;
  font-style: italic;
  opacity: 0;
  transition: opacity 2s ease-in;
}

#ritual-response.visible {
  opacity: 1;
}