* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

canvas {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

/* Фаза 1 — одна буква во весь экран */
#big-letter {
  font-family: 'Courier New', Courier, monospace;
  font-size: 50vw;
  font-weight: bold;
  color: #00ff41;
  text-shadow: 0 0 20px #00ff41, 0 0 60px #00ff41;
  line-height: 1;
  display: none;
  opacity: 0;
  transition: opacity 0.15s;
}

#big-letter.show {
  display: block;
  opacity: 1;
}

/* Фаза 2 — полная строка побуквенно */
#type-wrap {
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 2vw;
}

#type-wrap.show {
  display: flex;
}

#text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12vw;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 10px #00ff41, 0 0 30px #00ff41, 0 0 60px #00ff41;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

#cursor {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12vw;
  font-weight: bold;
  color: #00ff41;
  animation: blink 0.6s step-end infinite;
  flex-shrink: 0;
}

#cursor.done {
  display: none;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
