body {
  background: radial-gradient(circle at top, #121212, #000);
  color: #fff;
  font-family: "Poppins", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  flex-direction: column;
  overflow: hidden;
}

h1 {
  font-size: 2.5rem;
  text-shadow: 0 0 15px #0ff;
  margin-bottom: 10px;
}

.subtext {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 20px;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-shadow: 0 0 8px cyan;
}

.text-box {
  border: 2px solid cyan;
  border-radius: 12px;
  padding: 20px;
  width: 80%;
  height: 120px;
  margin-bottom: 20px;
  background-color: rgba(0,0,0,0.6);
  position: relative;
}

#display-text {
  color: #ddd;
  letter-spacing: 1px;
}

#ghost-progress {
  position: absolute;
  bottom: 5px;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, cyan, purple);
  border-radius: 2px;
  width: 0%;
  transition: width 0.2s linear;
}

#typing-area {
  width: 80%;
  height: 100px;
  font-size: 1.1rem;
  border-radius: 10px;
  border: none;
  padding: 10px;
  outline: none;
  resize: none;
  background-color: rgba(255,255,255,0.1);
  color: #fff;
  text-shadow: 0 0 8px #0ff;
  box-shadow: 0 0 10px cyan;
}

.buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

button {
  background: linear-gradient(90deg, #00f5ff, #8a2be2);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 10px cyan;
  transition: 0.3s;
}

button:hover {
  box-shadow: 0 0 20px #0ff, 0 0 30px #8a2be2;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
