body {
  margin: 0;
  background: black;
  overflow: hidden;
  color: white;
  font-family: monospace;
}

#game {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 800 800'%3E%3Cg fill-opacity='0.7'%3E%3Ccircle fill='%23000000' cx='400' cy='400' r='600'/%3E%3Ccircle fill='%231c002b' cx='400' cy='400' r='500'/%3E%3Ccircle fill='%231f0130' cx='400' cy='400' r='400'/%3E%3Ccircle fill='%23230835' cx='400' cy='400' r='300'/%3E%3Ccircle fill='%23290d3b' cx='400' cy='400' r='200'/%3E%3Ccircle fill='%232E1240' cx='400' cy='400' r='100'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  background-size: cover;
}

#trainer {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
#player {
  height: 130px;
  width: auto;
}
#typingOverlay {
  position: absolute;
  left: 50%;
  bottom: 170px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.2rem;
  font-family: monospace;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  pointer-events: none;
  min-width: 220px;
  text-align: center;
  letter-spacing: 0.06em;
}
.typing-overlay .correct {
  color: #7cff7c;
}
.typing-overlay .remaining {
  color: #ccc;
}
#hpProgress {
  width: 100%;
  height: 10px;
  background-color: green;
}

.help-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  text-decoration: none;
  font-size: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  z-index: 1001;
}

.help-button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.pokemon {
  position: absolute;
  width: 200px;
  height: 200px;
  text-align: center;
}

.pokemon img {
  pointer-events: none;
}

.pokeball {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(#ff4d4d 50%, #fff 50%);
  border: 4px solid #000;
  box-sizing: border-box;
  z-index: 9999;
}

.pokeball::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eee;
  border: 3px solid #000;
}

.pop {
  animation: pop 0.35s ease-out forwards;
}

@keyframes pop {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  60% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.correct {
  color: lime;
}

.remaining {
  color: white;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: var(--bg-color);
  color: var(--normal-text);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.modal-content h2 {
  margin-top: 0;
}

.modal-content button {
  margin: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: #4caf50;
  color: white;
}

.modal-content button:hover {
  background-color: #45a049;
}

#stopBtn {
  background-color: #f44336;
}

#stopBtn:hover {
  background-color: #da190b;
}
