.app-trainer {
  max-width: 720px;
}

.board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.word-card {
  position: relative;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1f2937, #111827);
  border: 1px solid rgba(148, 163, 184, 0.4);
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease,
    background-color 0.2s ease,
    opacity 0.6s ease,
    scale 0.6s ease;
  user-select: none;
}

.word-card span {
  pointer-events: none;
}

.word-card:hover:not([data-is-animating="true"]) {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  border-color: #3b82f6;
}

.word-card.selected {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.7);
  background: linear-gradient(135deg, #064e3b, #022c22);
}

.word-card.matched {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.9);
  background: linear-gradient(135deg, #166534, #14532d);
  animation: matched-pulse 0.3s ease-in-out;
}

.word-card.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.85);
  background: linear-gradient(135deg, #7f1d1d, #450a0a);
  animation: error-shake 0.3s ease-in-out;
}

.word-card.fading-out {
  opacity: 0;
  scale: 0.95;
  cursor: default;
}

.controls {
  display: flex;
  justify-content: center;
}

@keyframes matched-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes error-shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}