/* ==========================================================================
   Word Blaster — play area, falling words, and the lives display. Shared
   stat-tile/badge/button/submit-panel styling comes from base.css.
   ========================================================================== */

.tg-wb-play-area {
  position: relative;
  overflow: hidden;
  height: 420px;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-block: var(--space-5);
}

.tg-wb-word {
  position: absolute;
  top: -40px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: var(--font-size-md);
  font-weight: var(--weight-medium);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  white-space: nowrap;
}

.tg-wb-word--targeted {
  border-color: var(--tg-yellow);
  box-shadow: 0 0 0 3px var(--tg-yellow-wash);
}

.tg-wb-word--destroyed {
  animation: tg-wb-pop var(--duration-slow) var(--ease-standard) forwards;
}

@keyframes tg-wb-pop {
  to {
    transform: translateX(-50%) scale(1.6);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tg-wb-word--destroyed {
    animation: none;
    opacity: 0;
  }
}

.tg-wb-pause-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  background: rgba(247, 248, 243, 0.92);
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  color: var(--tg-deep-green);
}

.tg-wb-hud {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.tg-wb-lives {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.tg-wb-life-icon {
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--tg-aqua-green);
  display: inline-block;
}

.tg-wb-life-icon--lost {
  background: var(--color-border);
}

.tg-wb-buffer {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--font-size-lg);
  min-height: 1.6em;
  color: var(--tg-deep-green);
  letter-spacing: 0.05em;
}

.tg-wb-buffer--invalid {
  color: #c23b2d;
}
