/* Typing Game styles */

.game-board {
  /* Make the board vertical like a falling-words game */
  height: calc(80vh);     /* larger field after removing bottom row */
  min-height: 480px;      /* larger minimum to fill available space */
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  position: relative;
  overflow: hidden;
}

/* Entities */
.entity {
  position: absolute;
  transform: translate(-50%, -50%);
  user-select: none;
  pointer-events: none;
}

.hero-entity .hero-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-entity .hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pokemon-entity .sprite {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
}

.pokemon-entity .name-label {
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.9);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  white-space: nowrap;
}

.typed-chars { color: #198754; font-weight: 600; }
.remaining-chars { color: #6c757d; }

/* Overlays */
.board-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.overlay-card {
  background: #fff;
  padding: 20px 24px;
  border-radius: 8px;
  min-width: 260px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Catch animation */
@keyframes caught-pop {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.7); opacity: 0; }
}
.caught-pop { animation: caught-pop 0.25s ease-out forwards; }
