/* Word Chain specific styles */
.btn-game {
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.btn-game:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.input-game {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  outline: none;
  background: rgba(255, 255, 255, 0.8);
}
.input-game:focus {
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.5);
}

.used-words {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2rem;
}

.used-words .chip {
  background: #eef2ff;
  color: #1e40af;
  border: 1px solid #c7d2fe;
  border-radius: 9999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
}

/* Timer styles */
.timer-track {
  position: relative;
  width: 100%;
  height: 10px;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}
.timer-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #3b82f6);
  border-radius: 9999px;
  transition: width 0.2s linear;
  box-shadow: 0 0 8px rgba(59,130,246,0.4);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 400ms ease-out; }

@keyframes popIn {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.pop { animation: popIn 350ms ease-out; }

@keyframes chipPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.chip-anim { animation: chipPop 220ms ease-out; }

@keyframes focusBounce {
  0% { box-shadow: 0 0 0 0 rgba(59,130,246,0.35); }
  70% { box-shadow: 0 0 0 6px rgba(59,130,246,0); }
  100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
}
.focus-bounce:focus { animation: focusBounce 900ms ease-out; }
