* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #151526;
  color: #9ad1ff;
  font-family: 'Courier New', monospace;
  font-size: clamp(9px, 1.5vw, 13px);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

#matrix-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15;
}

#terminal {
  position: relative;
  z-index: 1;
  padding: 20px;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.line {
  white-space: pre;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  line-height: 1.7;
}

.line.visible {
  opacity: 1;
  transform: translateY(0);
}

.line.separator {
  color: #5a7fa8;
}

.ok {
  color: #9ad1ff;
  font-weight: bold;
}

.title {
  color: #9ad1ff;
  font-weight: bold;
  font-size: 1em;
}

.copyright {
  color: #5a7fa8;
}

.access-granted {
  color: #9ad1ff;
  font-weight: bold;
  font-size: 1.1em;
  text-shadow: 0 0 10px #9ad1ff, 0 0 20px #9ad1ff, 0 0 40px #9ad1ff;
  animation: glow-pulse 0.5s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from { text-shadow: 0 0 10px #9ad1ff, 0 0 20px #9ad1ff; }
  to { text-shadow: 0 0 15px #9ad1ff, 0 0 30px #9ad1ff, 0 0 50px #9ad1ff; }
}

.ready {
  color: #7fb2e0;
}

#terminal::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.1) 2px,
    rgba(0, 0, 0, 0.1) 4px
  );
  z-index: 2;
}

#cursor {
  display: inline-block;
  width: 10px;
  height: 1.2em;
  background: #9ad1ff;
  vertical-align: text-bottom;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}
