/* Общие стили */
body {
  background: #000;
  color: #00ff00;
  font-family: 'Press Start 2P', monospace;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.screen {
  width: 900px;
  padding: 30px;
  border: 20px solid #00ff00;
  background: #000;
  box-shadow: 0 0 20px 10px rgba(0, 255, 0, 0.5);
  text-align: center;
}

/* Стили заголовка */
h1 {
  font-size: 32px;
  color: #00ff00;
  text-shadow: 2px 2px 4px rgba(0, 255, 0, 0.6);
  margin: 20px 0;
}

nav a {
  color: #00ff00;
  text-decoration: none;
  margin: 0 15px;
  font-size: 18px;
  text-shadow: 1px 1px 3px rgba(0, 255, 0, 0.7);
}

nav a:hover {
  color: #ffffff;
}

/* Эффект загрузки */
.loading-effect {
  font-size: 24px;
  margin-top: 50px;
  line-height: 1.5;
}

.ready, .loading {
  animation: typewriter 3s steps(20) 1s infinite, blink-caret 0.75s step-end infinite;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
}

.ready {
  color: #00ff00;
}

.loading {
  color: #ffcc00;
}

/* Появление текста (эффект печатания) */
@keyframes typewriter {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes blink-caret {
  50% { border-color: transparent; }
}

/* Стилизация камней */
.falling-stones {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none; /* Чтобы камни не блокировали клики */
}

.stone {
  width: 20px;
  height: 20px;
  background-color: #8B4513; /* Цвет камня */
  position: absolute;
  animation: fall 5s infinite linear;
  z-index: 10;
}

/* Анимация падения камней */
@keyframes fall {
  0% {
    top: -20px; /* Камни начинаются сверху */
    left: calc(100% * random()); /* Случайное начало по горизонтали */
  }
  100% {
    top: 100%; /* Камни падают до низа */
    left: calc(100% * random());
  }
}
