/* ===== Play with Blocks (Sandbox) - Styles ===== */

.color-picker {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch--active {
  border-color: var(--text-dark);
  transform: scale(1.2);
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

.sandbox-counter {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  min-height: 32px;
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.sandbox-counter .counter-num {
  font-size: 1.5rem;
  transition: color 0.2s ease;
}

.sandbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sandbox-grid {
  display: inline-grid;
  gap: 3px;
  background: rgba(0,0,0,0.03);
  border-radius: 12px;
  padding: 8px;
}

.sandbox-cell {
  border-radius: 8px;
  border: 2px dashed #ccc;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
  position: relative;
}

.sandbox-cell:hover {
  background: rgba(0,0,0,0.06);
  transform: scale(1.05);
}

.sandbox-cell--filled {
  border: 2px solid rgba(255,255,255,0.5);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.1);
}

.sandbox-cell--filled::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 12px;
  height: 8px;
  background: rgba(255,255,255,0.45);
  border-radius: 4px;
}

.sandbox-cell--filled:hover {
  transform: scale(1.05);
  opacity: 0.85;
}

.sandbox-recognition {
  text-align: center;
  min-height: 36px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  animation: fade-in 0.3s ease;
  padding: 0 20px;
}

.sandbox-recognition .recog-name {
  font-size: 1.5rem;
}

@media (max-width: 600px) {
  .color-swatch {
    width: 34px;
    height: 34px;
  }
}
