/* Number Digits specific styles */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.placeholder.incorrect {
  color: #ff3b3b;
  border-color: #ff3b3b;
  animation: shake 0.5s ease-in-out;
  background-color: rgba(255, 59, 59, 0.1);
}

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

.placeholder.has-number {
  color: #2ecc71;
  border-color: #2ecc71;
  background-color: rgba(46, 204, 113, 0.1);
  transition: all 0.3s ease;
}

.placeholder.has-number.correct {
  animation: pulse 0.5s ease-in-out;
}

.btn-large {
  font-size: 1.2rem;
  padding: 0.75rem 2rem;
  margin-top: 1rem;
}

.btn-secondary .btn-icon {
  font-size: 1.2rem;
}

.game-board {
  background: var(--surface-2);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.placeholders {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.placeholder {
  width: 100px;
  height: 120px;
  border: 3px dashed var(--accent-2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  background: var(--surface-1);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* When a number is placed */
.placeholder.has-number {
  background: #e6ffe6;
  border: 3px solid #90EE90;
  box-shadow: 0 2px 8px rgba(0, 255, 0, 0.1);
  font-size: xxx-large;
}

/* When submission shows incorrect */
.placeholder.incorrect {
  background: #ffe6e6;
  border: 3px solid #ff9999;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.1);
  font-size: xxx-large;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.card {
  width: 70px;
  height: 90px;
  background: #ffd466;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(255, 212, 102, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 212, 102, 0.4);
}

.card:active {
  cursor: grabbing;
}

.controls {
  text-align: center;
  margin-top: 1rem;
}

button {
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  margin: 0 0.5rem;
  background-color: #60a5fa;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

button:disabled {
  background-color: #ccc;
}

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

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
}

.hidden {
  display: none;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .placeholder, .card {
    width: 60px;
    height: 80px;
    font-size: 1.5rem;
  }
}
